Ed Leafe wrote: > On Sep 30, 2009, at 5:13 AM, Ricardo Aráoz wrote: > >> I have a dropdown list on the left (where you choose field names) and >> according to the field chosen I'd like to show on the right several >> predefined controls which, to make things harder, may have different >> space requirements (though I guess that would be handled automatically >> by the sizer). How should I go about this? > > > Generally, a paged control is best for displaying different controls > in the same screen area. Since you want to control which controls are > visible programmatically, the dPageFrameNoTabs (probably our clunkiest- > named class) is your best choice.
I agree with the paged control approach for this case, however I've had good luck with toggling the visibility of individual sizers, too. Could be more flexible if you want 1 or more of these sizers visible alongside each other. When a sizer.Visible=False, it takes up zero space in the parent sizer, while maintaining its position in the parent sizer. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
