Hi Marco,
On Tue, 2003-02-25 at 10:16, Marco Calvi wrote:
> Dear ROOTers,
>
> I am using TGListTree inside a TGMainFrame. It works but it is not
> syncronize... example:
> when I double-click on a folder it does not show the sub-folders since I do
> a refresh.
> Any suggestion is welcomed
>
> piece of code:
> ....
> MagnetsTree = new TGListTree(this,30,600,kDoubleBorder,GetWhitePixel()); /*
> "this" is the TGMainFrame */
> MagnetsTree->AddItem(NULL,"ANSALDO",pictures->GetPicture("ofolder_s.xpm"),pi
> ctures->GetPicture("folder_t.xpm"));
> ...
>
Try adding:
fClient->NeedRedraw(MagnetsTree);
where fClient is a pointer to the TGClient object.
> further questions:
> is it correct to use NULL has the parent point of the first level items?
> Associate or not the object to the mainframe does not change things..!?
>
yes the top level items have a parent = 0.
Cheers, Fons.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET