Użytkownik Paul McNett napisał:
> dabo Commit
> Revision 5023
> Date: 2009-02-06 12:42:03 -0800 (Fri, 06 Feb 2009)
> Author: Paul
> Trac: http://trac.dabodev.com/changeset/5023
>
> Changed:
> U trunk/dabo/ui/uiwx/dFormMixin.py
>
> Log:
> Reworked the restoration of form size, position, and state, inspired by the
> patch submitted by Jacek Ka?\197?\130ucki.
>
> We don't need to wait until the form is activated anymore, as Name will have
> been set somewhere in the initProperties() cycle. This change results in a
> much smoother form instantiation, as the form isn't shown first in the
> default position, only to jump to the saved position.
>
> I wrote this change on Mac, where it seems to be working sanely. I'll now
> test on Linux and Windows.
>
I think, you can safely remove saveSizeAndPosition call from __onMove
and __onResize events
and place it in __onClose event. I tested it under Windows and works fine.
It also omits redundant call saveSizeAndPosition method after restoring
window position.
Reason why restoring MDI window size doesn't work, is that you sets its
size conditionally:
if self.BorderResizable:
self.Size = (width, height)
I don't know what does property BorderResizable mean, but I can resize
window with mouse
when his value is False. If so, it should be able to set window size
within the code.
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]