Re: [ROOT] TGListBox::Selected()

From: Valeriy Onuchin (Valeri.Onoutchine@cern.ch)
Date: Sat Jul 19 2003 - 19:42:19 MEST


 Hi Christian,
this question is not clear for me. Check HTML listbox 
("Modified within the last:") in
http://carrot.cern.ch/CarrotExamples/FormTest.C
it has an empty entry for deselecting items. Is this effect what
you talking about? 

Thanks. Regards. Valeriy


> 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