On Feb 11, 2011, at 2:07 PM, Ricardo Araoz wrote:
> Yes, I tried placing fitToSizer(extraWdith=200) in the afterInitAll()
> method and it works as expected, but there is a catch though.
> When I place fitToSizer() in afterInit() if the user has modified the
> form's geometry it will adopt the last used size and position, but if it
> is the first time it has been run then the form will default to it's
> sizer's requirements. OTOH if I place it in afterInitAll() it will
> *always* adopt the sizer's requirements no matter what daboprefs might say.
Well, that's kind of what 'fitToSizer()' means: fit the form to the
sizer, not to default settings. When you have it in afterInit(), it fires
before the call to restoreSizeAndPosition(), so the latter call "wins". When
you have it in afterInitAll(), it gets called after, so it wins.
So I'm not really sure what you're going for: do you want it fit to the
sizer's requirements, or to the user's last setting?
-- 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]