On Feb 12, 2007, at 11:30 AM, johnf wrote:

> The grid on the form is dynamic.  It gets the number of columns,  
> headings,
> data source from a meta table.  So the grid can have 1-5 columns.   
> So is
> there a way I can determine the width of the largest object on the  
> form?
> Then I could set the width of the dialog.

        It sounds like you're trying to do way too much with a dialog. Due  
to the way wxPython works, dialogs don't have the same functionality  
as forms do. You can't treat them as modal forms.

        But if you insist, I suppose that you could drill down through the  
dialog by checking the Children property of each level, and recursing  
through that to determine the sizes of all the objects in the dialog.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to