On Monday 12 February 2007 08:05, Ed Leafe wrote:
> On Feb 12, 2007, at 10:43 AM, johnf wrote:
> > When "AutoSize" is set to True I don't see a difference.
>
>       Because you've already run the dialog, and Dabo remembers the size
> from the last time.
>
> > But that is a guess.  What I want is to have the "AutoSize" to
> > determine the
> > width of the Grid after it is populated and adjust.
> > What I think might be happening is the "AutoSize" is determining
> > the size of
> > the last hSizer I added to provide the width setting.  It seems I
> > can always
> > see the buttons I've added along the bottom of the form.
>
>       You might also try setting the dialog's SaveRestorePosition property
> to False.
>
>       The ability for all controls to remember their size is a cool thing
> to have in Dabo, but it can be a pain when you're trying to play
> around with various layouts, since you can never be sure if the
> result you see is from your code or from the saved info.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com

At this point I'm pretty sure the "AutoSize" is fitting the last hSizer which 
contains 3 buttons.  I added a large spacer between the buttons and the 
dialog AutoSize's to fit the buttons.  Making the spacer smaller causes the 
dialog to AutoSize to fit the smaller buttons.  

So at this point I have Turned off:
SaveRestorePosition = False
AutoSize = False

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.

-- 
John Fabiani

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

Reply via email to