Hi,
I am putting together a little gui - and maybe trying to do something impossible.
The attached testTheGui.C makes a TGMainFrame that contains a horizontally arranged TGCompositeFrame. The composite frame contain a TGListBox and a TGTextButton. Note that they are both set with kLHintsExpandX. This is nice because if I drag the main windows size, things rescale dynamically.
However, I don’t want the TGListBox and TGTextButton to have the same width, it makes sense for the TGListBox to use up most of the available width. I know I can set the widths manually if I don’t use kLHintsExpandX - however, I then lose the ability to scale things dynamically when the window size is dragged. This is demonstrated in testTheGui2.C
Is it possible to set things up such that the TGListBox uses (say) 90% of the available width and things scale dynamically as the window size is dragged?
By the way - in testTheGui2, I am confused that I cannot set the button width using Resize(w,h)
I am using root trunk 5.27/01 on OS X 10.6 with gcc 4.2.1
thanks!
Peter
testTheGui2.C (1.47 KB)
testTheGui.C (1.44 KB)