forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TGuiBldEditor.cxx
559 lines (456 loc) · 19.3 KB
/
TGuiBldEditor.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
// @(#)root/guibuilder:$Id$
// Author: Valeriy Onuchin 12/09/04
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
// //
// TGuiBldEditor - the property editor //
// //
//////////////////////////////////////////////////////////////////////////
#include "TGuiBldEditor.h"
#include "TRootGuiBuilder.h"
#include "TGuiBldHintsEditor.h"
#include "TGuiBldNameFrame.h"
#include "TGuiBldGeometryFrame.h"
#include "TGResourcePool.h"
#include "TGTab.h"
#include "TGLabel.h"
#include "TGButtonGroup.h"
#include "TGNumberEntry.h"
#include "TG3DLine.h"
#include "TGColorSelect.h"
#include "TGColorDialog.h"
#include "TGCanvas.h"
#include "TGListTree.h"
#include "TGuiBldDragManager.h"
#include "TMethod.h"
#include "TGMsgBox.h"
#include "TGIcon.h"
#include "TGFrame.h"
#include "TGSplitter.h"
#include "TGTableLayout.h"
ClassImp(TGuiBldEditor)
////////////////////////////////////////////////////////////////////////////////
class TGuiBldBorderFrame : public TGVerticalFrame {
private:
enum EBldBorderFrameMode {
kBldBorderNone, kBldBorderSunken,
kBldBorderPlain, kBldBorderRaised,
kBldBorderDouble };
private:
TGuiBldEditor *fEditor;
TGFrame *fSelected;
TGButtonGroup *fBtnGroup;
TGColorSelect *fBgndFrame;
public:
TGuiBldBorderFrame(const TGWindow *p, TGuiBldEditor *editor);
virtual ~TGuiBldBorderFrame() { }
void ChangeSelected(TGFrame*);
};
//______________________________________________________________________________
TGuiBldBorderFrame::TGuiBldBorderFrame(const TGWindow *p, TGuiBldEditor *editor) :
TGVerticalFrame(p, 1, 1)
{
// Constructor.
fEditor = editor;
fEditDisabled = 1;
fBgndFrame = 0;
SetCleanup(kDeepCleanup);
fBtnGroup = new TGButtonGroup(this, "Border Mode");
TGRadioButton *frame299 = new TGRadioButton(fBtnGroup," Sunken",kBldBorderSunken);
frame299->SetToolTipText("Set a sunken border of the frame");
TGRadioButton *frame302 = new TGRadioButton(fBtnGroup," None",kBldBorderPlain);
frame302->SetToolTipText("Set no border of the frame");
TGRadioButton *frame305 = new TGRadioButton(fBtnGroup," Raised",kBldBorderRaised);
frame305->SetToolTipText("Set a raised border of the frame");
frame305->SetState(kButtonDown);
TGCheckButton *check = new TGCheckButton(fBtnGroup," Double",kBldBorderDouble);
check->SetToolTipText("Set double border of the frame");
//TQObject::Disconnect(check);
fBtnGroup->SetRadioButtonExclusive(kTRUE);
AddFrame(fBtnGroup, new TGLayoutHints(kLHintsCenterX | kLHintsTop));
fBtnGroup->Connect("Pressed(Int_t)", "TGuiBldEditor", fEditor, "UpdateBorder(Int_t)");
check->Connect("Pressed()", "TGuiBldEditor", fEditor, "UpdateBorder(=4)");
check->Connect("Released()", "TGuiBldEditor", fEditor, "UpdateBorder(=5)");
TGCompositeFrame *f = new TGGroupFrame(this, "Palette");
TGHorizontalFrame *hf = new TGHorizontalFrame(f ,1, 1);
fBgndFrame = new TGColorSelect(hf, 0, 1);
fBgndFrame->SetEditDisabled();
fBgndFrame->SetColor(GetDefaultFrameBackground());
fBgndFrame->Connect("ColorSelected(Pixel_t)", "TGuiBldEditor", fEditor,
"UpdateBackground(Pixel_t)");
hf->AddFrame(fBgndFrame, new TGLayoutHints(kLHintsTop | kLHintsLeft, 2, 2, 2, 2));
hf->AddFrame(new TGLabel(hf, "Backgrnd"), new TGLayoutHints(kLHintsTop |
kLHintsLeft, 2, 2, 2, 2));
f->AddFrame(hf, new TGLayoutHints(kLHintsCenterX | kLHintsTop, 2, 2, 2, 2));
AddFrame(f, new TGLayoutHints(kLHintsCenterX | kLHintsTop));
}
//______________________________________________________________________________
void TGuiBldBorderFrame::ChangeSelected(TGFrame *frame)
{
// Perform actions when selected frame was changed.
fSelected = frame;
if (!frame) {
return;
}
UInt_t opt = fSelected->GetOptions();
fBtnGroup->SetButton(kBldBorderDouble, opt & kDoubleBorder);
fBtnGroup->SetButton(kBldBorderSunken, opt & kSunkenFrame);
fBtnGroup->SetButton(kBldBorderRaised, opt & kRaisedFrame);
fBtnGroup->SetButton(kBldBorderPlain, !(opt & kRaisedFrame) && !(opt & kSunkenFrame));
if (fBgndFrame) {
TQObject::Disconnect(fBgndFrame);
fBgndFrame->SetColor(fSelected->GetBackground());
fBgndFrame->Connect("ColorSelected(Pixel_t)", "TGuiBldEditor", fEditor, "UpdateBackground(Pixel_t)");
}
}
////////////////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
TGuiBldEditor::TGuiBldEditor(const TGWindow *p) : TGVerticalFrame(p, 1, 1)
{
// Constructor.
TGHorizontalFrame *hf;
TGVerticalFrame *vf;
fSelected = 0;
SetCleanup(kDeepCleanup);
fNameFrame = new TGuiBldNameFrame(this, this);
AddFrame(fNameFrame, new TGLayoutHints(kLHintsNormal | kLHintsExpandX,5,5,2,2));
TGHSplitter *splitter = new TGHSplitter(this,100,5);
AddFrame(splitter, new TGLayoutHints(kLHintsTop | kLHintsExpandX,0,0,5,5));
splitter->SetFrame(fNameFrame, kTRUE);
//------------frame with layout switch
hf = new TGHorizontalFrame(this);
hf->AddFrame(new TGLabel(hf, "Composite Frame Layout"),
new TGLayoutHints(kLHintsLeft | kLHintsTop, 2, 2, 2, 2));
hf->AddFrame(new TGHorizontal3DLine(hf), new TGLayoutHints(kLHintsTop |
kLHintsExpandX, 2, 2, 2, 2));
AddFrame(hf, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 2, 2, 2));
vf = new TGVerticalFrame(this);
fLayoutLabel = new TGLabel(vf, "Automatic Layout Disabled");
vf->AddFrame(fLayoutLabel, new TGLayoutHints(kLHintsCenterX | kLHintsTop,
2, 2, 2, 2));
fLayoutButton = new TGTextButton(vf," Enable layout ");
fLayoutButton->SetEnabled(kFALSE);
vf->AddFrame(fLayoutButton, new TGLayoutHints(kLHintsCenterX | kLHintsTop,
2, 2, 2, 2));
AddFrame(vf, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 2, 2, 2));
AddFrame(new TGHorizontal3DLine(this), new TGLayoutHints(kLHintsTop |
kLHintsExpandX, 2, 2, 2, 2));
fLayoutButton->Connect("Clicked()", "TGuiBldEditor", this, "SwitchLayout()");
fLayoutButton->SetToolTipText("If layout is on, all the frame \nelements get layouted automatically.");
//-----------------------------
fTab = new TGTab(this, 80, 40);
AddFrame(fTab, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 2, 2, 2, 2));
fTablay = fTab->AddTab("Layout");
TGCompositeFrame *tabcont = fTab->AddTab("Style");
fLayoutId = 1; // 2nd tab
fTab->Connect("Selected(Int_t)", "TGuiBldEditor", this, "TabSelected(Int_t)");
fHintsFrame = new TGuiBldHintsEditor(fTablay, this);
fTablay->AddFrame(fHintsFrame, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY,
2, 2, 2, 2));
fGeomFrame = new TGuiBldGeometryFrame(fTablay, this);
fTablay->AddFrame(fGeomFrame, new TGLayoutHints(kLHintsTop | kLHintsExpandX,
2, 2, 2, 2));
//----------------Position X,Y boxes---------------
fPositionFrame = new TGGroupFrame(fTablay, "Position");
hf = new TGHorizontalFrame(fPositionFrame);
vf = new TGVerticalFrame(hf);
vf->SetLayoutManager(new TGTableLayout(vf, 2, 2));
vf->AddFrame(new TGLabel(vf, " X "), new TGTableLayoutHints(0, 1, 0, 1,
kLHintsCenterY | kLHintsLeft, 2, 2, 2, 2));
fXpos = new TGNumberEntry(vf, 0.0, 4, -1, (TGNumberFormat::EStyle)5);
vf->AddFrame(fXpos, new TGTableLayoutHints(1, 2, 0, 1, kLHintsCenterY |
kLHintsLeft, 2, 2, 2, 2));
vf->AddFrame(new TGLabel(vf, " Y "), new TGTableLayoutHints(0, 1, 1, 2,
kLHintsCenterY | kLHintsLeft, 2, 2, 2, 2));
fYpos = new TGNumberEntry(vf, 0.0, 4, -1, (TGNumberFormat::EStyle)5);
vf->AddFrame(fYpos, new TGTableLayoutHints(1, 2, 1, 2, kLHintsCenterY |
kLHintsLeft, 2, 2, 2, 2));
hf->AddFrame(vf, new TGLayoutHints(kLHintsCenterX | kLHintsCenterY));
vf = new TGVerticalFrame(hf);
vf->SetLayoutManager(new TGTableLayout(vf, 3, 3));
TGTextButton *fTextButton6366 = new TGTextButton(vf, "^", -1,
TGButton::GetDefaultGC()(),
TGTextButton::GetDefaultFontStruct(),
kRaisedFrame | kDoubleBorder | kFixedSize);
fTextButton6366->Resize(20,20);
vf->AddFrame(fTextButton6366, new TGTableLayoutHints(1, 2, 0, 1,
kLHintsLeft | kLHintsTop, 1, 1, 1, 1));
TGTextButton *fTextButton6367 = new TGTextButton(vf, "v", -1,
TGButton::GetDefaultGC()(),
TGTextButton::GetDefaultFontStruct(),
kRaisedFrame | kDoubleBorder | kFixedSize);
fTextButton6367->Resize(20,20);
vf->AddFrame(fTextButton6367, new TGTableLayoutHints(1, 2, 2, 3,
kLHintsLeft | kLHintsTop, 1, 1, 1, 1));
TGTextButton *fTextButton6364 = new TGTextButton(vf, "<", -1,
TGButton::GetDefaultGC()(),
TGTextButton::GetDefaultFontStruct(),
kRaisedFrame | kDoubleBorder | kFixedSize);
fTextButton6364->Resize(20,20);
vf->AddFrame(fTextButton6364, new TGTableLayoutHints(0, 1, 1, 2,
kLHintsLeft | kLHintsTop, 1, 1, 1, 1));
TGTextButton *fTextButton6365 = new TGTextButton(vf, ">", -1,
TGButton::GetDefaultGC()(),
TGTextButton::GetDefaultFontStruct(),
kRaisedFrame | kDoubleBorder | kFixedSize);
fTextButton6365->Resize(20,20);
vf->AddFrame(fTextButton6365, new TGTableLayoutHints(2, 3, 1, 2,
kLHintsLeft | kLHintsTop, 1, 1, 1, 1));
hf->AddFrame(vf, new TGLayoutHints(kLHintsCenterX | kLHintsCenterY));
fPositionFrame->AddFrame(hf, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
fTablay->AddFrame(fPositionFrame, new TGLayoutHints(kLHintsTop | kLHintsExpandX));
fXpos->Connect("ValueSet(Long_t)", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
fYpos->Connect("ValueSet(Long_t)", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
fTextButton6364->Connect("Clicked()", "TGNumberEntry", fXpos, "IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
fTextButton6364->Connect("Clicked()", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
fTextButton6365->Connect("Clicked()", "TGNumberEntry", fXpos, "IncreaseNumber()");
fTextButton6365->Connect("Clicked()", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
fTextButton6366->Connect("Clicked()", "TGNumberEntry", fYpos, "IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
fTextButton6366->Connect("Clicked()", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
fTextButton6367->Connect("Clicked()", "TGNumberEntry", fYpos, "IncreaseNumber()");
fTextButton6367->Connect("Clicked()", "TGuiBldHintsEditor", fHintsFrame, "SetPosition()");
//----------------------------------------------------
fBorderFrame = new TGuiBldBorderFrame(tabcont, this);
tabcont->AddFrame(fBorderFrame, new TGLayoutHints(kLHintsExpandX, 2, 2, 2, 2));
MapSubwindows();
SetWindowName("Frame Property Editor");
SetEditDisabled(1);
fEmbedded = kFALSE;
}
//______________________________________________________________________________
TGuiBldEditor::~TGuiBldEditor()
{
// Destructor.
}
//______________________________________________________________________________
void TGuiBldEditor::RemoveFrame(TGFrame *frame)
{
// Remove a frame.
fNameFrame->RemoveFrame(frame);
}
//______________________________________________________________________________
void TGuiBldEditor::TabSelected(Int_t id)
{
// Handle selected.
if (id == fLayoutId) {
//printf("%d\n", fSelected);
}
}
//______________________________________________________________________________
void TGuiBldEditor::Hide()
{
// Hide editor.
UnmapWindow();
}
//______________________________________________________________________________
void TGuiBldEditor::ChangeSelected(TGFrame *frame)
{
// Change selected frame.
TGTabElement *tab = fTab->GetTabTab(fLayoutId);
if (!frame) {
fNameFrame->ChangeSelected(0);
//fTab->SetTab(0);
if (tab) {
tab->SetEnabled(kFALSE);
fClient->NeedRedraw(tab);
}
return;
}
fSelected = frame;
TGWindow *parent = (TGWindow*)fSelected->GetParent();
fNameFrame->ChangeSelected(fSelected);
Bool_t enable_layout = kFALSE;
enable_layout |= parent && !(parent->GetEditDisabled() & kEditDisableLayout);
enable_layout |= !(fSelected->GetEditDisabled() & kEditDisableLayout);
enable_layout |= parent && (parent->InheritsFrom(TGCompositeFrame::Class()) &&
!((TGCompositeFrame*)parent)->IsLayoutBroken());
enable_layout |= (fSelected->InheritsFrom(TGCompositeFrame::Class()) &&
!((TGCompositeFrame*)fSelected)->IsLayoutBroken());
if (enable_layout) {
fHintsFrame->ChangeSelected(fSelected);
if (tab) {
tab->SetEnabled(kTRUE);
fClient->NeedRedraw(tab);
}
} else {
fHintsFrame->ChangeSelected(0);
if (tab) {
fTab->SetTab(0);
tab->SetEnabled(kFALSE);
fClient->NeedRedraw(tab);
}
}
if ((frame->InheritsFrom(TGHorizontalFrame::Class())) ||
(frame->InheritsFrom(TGVerticalFrame::Class())) ||
(frame->InheritsFrom(TGGroupFrame::Class())) ) {
fLayoutButton->SetEnabled(kTRUE);
if (fSelected->IsLayoutBroken()) {
fLayoutButton->SetText(" Enable layout ");
fLayoutLabel->SetText("Automatic layout disabled");
if (fTablay) {
fTablay->ShowFrame(fGeomFrame);
fTablay->ShowFrame(fPositionFrame);
fTablay->HideFrame(fHintsFrame);
}
} else {
fLayoutButton->SetText(" Disable layout ");
fLayoutLabel->SetText("Automatic layout enabled");
if (fTablay) {
fTablay->HideFrame(fGeomFrame);
fTablay->HideFrame(fPositionFrame);
fTablay->ShowFrame(fHintsFrame);
}
}
}
else {
fLayoutButton->SetEnabled(kFALSE);
TGFrame *parentf = (TGFrame*)frame->GetParent();
if (parentf->IsLayoutBroken()) {
fLayoutButton->SetText(" Enable layout ");
fLayoutLabel->SetText("Automatic layout disabled");
fTablay->ShowFrame(fGeomFrame);
fTablay->ShowFrame(fPositionFrame);
fTablay->HideFrame(fHintsFrame);
} else {
fLayoutButton->SetText(" Disable layout ");
fLayoutLabel->SetText("Automatic layout enabled");
fTablay->HideFrame(fGeomFrame);
fTablay->HideFrame(fPositionFrame);
fTablay->ShowFrame(fHintsFrame);
}
}
fYpos->SetIntNumber(frame->GetY());
fXpos->SetIntNumber(frame->GetX());
if (fBorderFrame) fBorderFrame->ChangeSelected(fSelected);
if (fGeomFrame) fGeomFrame->ChangeSelected(fSelected);
Emit("ChangeSelected(TGFrame*)", (long)fSelected);
MapRaised();
}
//______________________________________________________________________________
void TGuiBldEditor::UpdateSelected(TGFrame *frame)
{
// Update selected frame.
Emit("UpdateSelected(TGFrame*)", (long)frame);
}
//______________________________________________________________________________
void TGuiBldEditor::UpdateBorder(Int_t b)
{
// Update border of selected frame.
if (!fSelected) return;
UInt_t opt = fSelected->GetOptions();
switch (b) {
case 1:
opt &= ~kRaisedFrame;
opt |= kSunkenFrame;
break;
case 2:
opt &= ~kSunkenFrame;
opt &= ~kRaisedFrame;
break;
case 3:
opt &= ~kSunkenFrame;
opt |= kRaisedFrame;
break;
case 4:
opt |= kDoubleBorder;
break;
case 5:
opt &= ~kDoubleBorder;
break;
default:
return;
}
fSelected->ChangeOptions(opt);
fClient->NeedRedraw(fSelected, kTRUE);
}
//______________________________________________________________________________
void TGuiBldEditor::UpdateBackground(Pixel_t col)
{
// Update background.
if (!fSelected) return;
fSelected->SetBackgroundColor(col);
fClient->NeedRedraw(fSelected, kTRUE);
}
//______________________________________________________________________________
void TGuiBldEditor::UpdateForeground(Pixel_t col)
{
// Update foreground.
if (!fSelected) return;
fSelected->SetForegroundColor(col);
fClient->NeedRedraw(fSelected, kTRUE);
}
//______________________________________________________________________________
void TGuiBldEditor::Reset()
{
// Reset the editor.
fSelected = 0;
fNameFrame->Reset();
TGTabElement *tab = fTab->GetTabTab(fLayoutId);
if (tab) {
fTab->SetTab(0);
tab->SetEnabled(kFALSE);
}
}
//______________________________________________________________________________
void TGuiBldEditor::SwitchLayout()
{
// Popup dialog to set layout of editted frame off. If layout is on, all
// the elements in the frame get layouted automatically.
if (!fSelected) {
fLayoutButton->SetText(" Enable layout ");
fLayoutButton->SetEnabled(kFALSE);
fLayoutLabel->SetText("Automatic layout disabled");
if (fTablay) {
fTablay->ShowFrame(fGeomFrame);
fTablay->ShowFrame(fPositionFrame);
fTablay->HideFrame(fHintsFrame);
}
return;
}
TRootGuiBuilder *builder = (TRootGuiBuilder*)TRootGuiBuilder::Instance();
TGFrame *frame = fSelected;
TGCompositeFrame *cf = fNameFrame->GetMdi(frame);
if (cf == 0)
return;
if (frame->IsLayoutBroken()) {
Int_t retval;
builder->GetManager()->SetEditable(kFALSE);
new TGMsgBox(gClient->GetDefaultRoot(), builder, "Layout change",
"Enabling layout will automatically align and resize all the icons. \n Do you really want to layout them?",
kMBIconExclamation, kMBOk | kMBCancel, &retval);
cf->SetEditable(kTRUE);
// hack against selecting the message box itself
builder->GetManager()->SelectFrame(frame);
frame->SetEditable(kTRUE);
if (retval == kMBOk) {
frame->SetLayoutBroken(kFALSE);
frame->Layout();
fLayoutButton->SetText(" Disable layout ");
fLayoutLabel->SetText("Automatic layout enabled");
if (fTablay) {
fTablay->HideFrame(fGeomFrame);
fTablay->HideFrame(fPositionFrame);
fTablay->ShowFrame(fHintsFrame);
fTablay->Resize(fHintsFrame->GetWidth(),fHintsFrame->GetHeight());
}
}
} else {
//set layout off - without dialog, because nothing "bad" can happen
frame->SetLayoutBroken(kTRUE);
fLayoutButton->SetText(" Enable layout ");
fLayoutLabel->SetText("Automatic layout disabled");
if (fTablay) {
fTablay->ShowFrame(fGeomFrame);
fTablay->ShowFrame(fPositionFrame);
fTablay->HideFrame(fHintsFrame);
}
}
fClient->NeedRedraw(frame, kTRUE);
if (fTablay) fClient->NeedRedraw(fTablay, kTRUE);
}