[ROOT] TGButton::SetState

From: cstrato (aon.912121399@aon.at)
Date: Tue Aug 12 2003 - 17:44:20 MEST


Dear Rooters

Is it possible to force the call to TGButton::SetState(), e.g.
TGButton::SetState(EButtonState state, Bool_t force = kTRUE)
   if (force || (state != fState)) {
   }
(Note that I did not test if this would work)

The reason is the following:
I have TGTextButtons to create/delete frames and to draw/clear
histogramms from these frames. Suppose that I have a frame
with a hist where the Clear button is enabled, and a second frame
which is still empty so that the Clear button is disabled when I
switch to the second frame.
When I delete the second frame, the first frame comes to front,
and thus the Clear button should now be enabled. Sorrowly,
this is not possible but the button remains disabled.

Thank you in advance

Best regards
Christian
_._._._._._._._._._._._._._._._
C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
V.i.e.n.n.a       A.u.s.t.r.i.a
_._._._._._._._._._._._._._._._



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET