On Nov 18, 2010, at 6:00 AM, Fraser Burns wrote:

> I added an example to the wiki but I couldn't decide whether this 
> example was better under dPanel or dSizer or ?

        ...or both? ;-)

        One thing I noticed on that is that you add the controls to the panel's 
sizer, then call the panel's layout() method, then add the panel to the form, 
then call the form's layout() method. While this won't hurt anything, it's 
helpful to know that calling the form's layout is usually all you need. It will 
cascade down to all of its sizer's contained controls and their sizers, and 
essentially layout everything. 

        There are times you would call the layout() method of an inner sizer, 
but those are mostly for performance-based reasons.



-- Ed Leafe



_______________________________________________
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]

Reply via email to