Basic element questions

1 view
Skip to first unread message

jfberge

unread,
Sep 2, 2008, 5:49:22 PM9/2/08
to EEGUI
For some reason, I'm just not getting how to use the menu system. How
does one organize menu elements? My inclination is to create a holder,
add controls to it, and add the holder to the Desktop, like adding
buttons to a div and positioning the div in a web page. Do
guiWindowHandle objects act as divs? I can add things to them, but I
can't position them on the Desktop (they always appear at 0,0).

I can add guiButtons to the Desktop and position them. I can also
position them within a guiWindowHandle object I place them in, just
can't position that window on the desktop.

In short, what's the hierarchy for the system? Do I add everyting to
the desktop, or is there some sort of tree of elements I should be
creating, and what class of elements belong at what level in the tree?
Also, how should I position elements? I currently use the Position
property and do the math for layout myself.

jfberge

unread,
Sep 3, 2008, 12:03:12 PM9/3/08
to EEGUI
Aha. Using Desktop.AddChild instead of Desktop.Children.Add made the
difference. I'm guessing some layout logic isn't being performed with
Add.
Reply all
Reply to author
Forward
0 new messages