Re: Re[2]: gui classes usage

From: Bertrand Bellenot <bertrand.bellenot_at_cern.ch>
Date: Tue, 30 Sep 2008 20:54:32 +0200


Hi Anton,

> But 2) don't works - just try to run attached macro.
> (I use root 5.20 on windows)

Add "gSystem->ProcessEvents();" just after "gClient->NeedRedraw(fStatusBar);"

> Does buttons widgets are the only ones allowed to be "disabled"?
No, there are a few other ones e.g. TGComboBox, TGTextEntry, ... (look for SetEnabled() methods)

Cheers, Bertrand.

Hello Bertrand,

  thank you for advices.

  1. - works fine.

  But 2) don't works - just try to run attached macro.   (I use root 5.20 on windows)

  Does buttons widgets are the only ones allowed to be "disabled"?

Anton

Monday, September 29, 2008, 7:34:29 PM, you wrote:
> Hi Anton,

> 1) You have several options: at construction time, add kFixedSize flag as
> shown below:
> new TGLabel(p, text, GetDefaultGC()(), GetDefaultFontStruct(),
> kChildFrame | kFixedSize);
> or after its creation, you can change its attributes as shown below:
> label->ChangeOptions(label->GetOptions() | kFixedSize);

2) gClient->>NeedRedraw(fStatusBar);

> 3) There is no option (yet) to disable sliders...

> Cheers,
> Bertrand.

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch
> [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Anton Korneev
> Sent: 29 September 2008 18:11
> To: roottalk (Mailing list discussing all aspects of the ROOT system)
> Subject: [ROOT] gui classes usage

> Hello,

> I have two questions on ROOT GUI classes:
> 1. how to specify fixed width of TGLabel?

> 2. how to notify widget, what its content should be
> repainted? I mean the case:

> fStatusBar->SetText("Processing...");
> fStatusBar-> ???

> [... some long operation]

> 3. how to switch TGHSlider to "disabled" state?
Received on Tue Sep 30 2008 - 20:54:38 CEST

This archive was generated by hypermail 2.2.0 : Wed Oct 01 2008 - 17:50:02 CEST