Hello Bertrand,
thank you for advices.
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?
This archive was generated by hypermail 2.2.0 : Tue Sep 30 2008 - 23:50:01 CEST