TGListBox, TGFileDialog

Michael Heldmann (heldmann@bigfoot.com)
Thu, 27 May 1999 16:54:00 +0200


Hello !
I'm trying to use the GUI-Classes in macros but i didn't find any
examples.
I tried to

lb=new TGListBox(gClient.GetRoot(), 83)
lb.AddEntry("test1", 101)
lb.Draw()

the ListBox didn't show up, why ?
from this naiv approach you can see that i really didn't get the point
of how to use that sutff.

for a TGFileDialog I tried

fi=new TGFileInfo()
fd=new TGFileDialog(gClient.GetRoot(), gClient.GetRoot(), kFDOpen, &fi)

from this i get a segmentation violation.

I would really appriciate anybody helping such a dump newbie like me.
Thanks
Michael Heldmann