Re: [ROOT] Grayout instead of UnmapWindow()

From: Rudi Lutter (Rudi.Lutter@Physik.uni-muenchen.de)
Date: Tue Aug 28 2001 - 16:35:03 MEST


On Tuesday 28 August 2001 16:04, Thomas Bretz wrote:
>Hello,
>
>I was searching for a possibility to disable (grayout) GUI controls
>(libe: TGLabel, TGTextButton, TGGroupFrame) to display graphically, that
>the GUI element cannot be used at the moment. The only possibility I
>found was UnmapWindow() which completely removes the control (or make it
>unvisible). Is there something else I missed?
>
>Thanks,
>Thomas.

Hi Thomas,

use method TGButton::SetState(kButtonDisabled / kButtonEngaged). Background and foreground colors change correspondingly.
I see no reason to deactivate a frame.

Rudi

-- 
------------------------------------------------
 Rudi Lutter
------------------------------------------------
 Email: Rudi.Lutter@Physik.Uni-Muenchen.DE
 WWW:   www.bl.physik.tu-muenchen.de/~rudi
 Tel:   (+49) 89 289 14256
 Fax:   (+49) 89 289 14280
------------------------------------------------
 Accelerator Lab of the Munich Universities
 Beschleunigerlabor der LMU und TU Muenchen
 Am Coulombwall 6, D-85748 GARCHING, Germany
------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET