RE: gui classes usage

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Mon, 29 Sep 2008 18:34:29 +0200


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?

--
Best regards,
 Anton Received on Mon Sep 29 2008 - 18:34:35 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 30 2008 - 23:50:01 CEST