On Monday 12 February 2007 08:52, Ed Leafe wrote: > 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
You may be right - I'm asking to much of dDialog. I was thinking about what I was attempting to get (a single value) from the user. It was almost a yes/no question. I didn't really think about what I had to display to get that answer from the user. Don't get me wrong my dialog is working - so in one sense I succeeded. It just doesn't look right. But lots of the what I need is already there. Esc works, return val, etc.. Those things would have to be added to dForm. So in your opinion it would be best if I just inherited from dForm rather than from dDialog. Right? -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
