[ROOT] TGListBox::Selected()

From: cstrato (aon.912121399@aon.at)
Date: Sat Jul 19 2003 - 19:01:42 MEST


Dear Rooters

I would like to enable a button only, when I select an item in
TGListBox, but disable the button when deselecting all items
by clicking in the white space.
Sorrowly, the signal TGListBox::Selected() is only emitted,
when an item is selected. Is there a way to deselect the button?

I am not sure but maybe adding the following in TGListBox::
ProcessMessage() could help:
   if(entry)
      ......
      Selected((Int_t) parm1);
   else
      Selected((Int_t) -1);

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:13 MET