Dear Rooters To get the id of TGButtons, I have always used: if (id == -1) { TGButton *btn = (TGButton*)gTQSender; id = btn->WidgetId(); } This has always worked, but I can only find TGButton Ids. Now I would like to find the Ids of either TGButton or TGListBox. Since both inherit from TGWidget I wanted to do: if (id == -1) { TGWidget *wdg = (TGWidget*)gTQSender; id = wdg->WidgetId(); } Sorrowly, this is not possible, since the return id is always zero. Do you know how I can get the WidgetId from different widgets such as TGButton, TGListBox, etc? My system: root 4.00/00 from 9. Jan 2004 on MacOS X 10.3.1 Thank you in advance for your help. Best regards Christian -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- C.h.r.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 : Sun Jan 02 2005 - 05:50:05 MET