Uwe Grauer wrote:
> Paul McNett wrote:
>> dabo Commit
>> Revision 5037
>> Date: 2009-02-07 11:09:01 -0800 (Sat, 07 Feb 2009)
>> Author: Paul
>> Trac: http://trac.dabodev.com/changeset/5037
>>
>> Changed:
>> U   trunk/dabo/ui/uiwx/dFormMixin.py
>>
>> Log:
>> Moved the saving of size and position to the close event handler instead of 
>> doing it in resize and move. Thanks Jacek!
> 
> This might break what i do with some of my forms.
> 
> Maybe you remember the talks about modal forms.
> Sometimes i do the following:
> - i have running a browser form where i can search for records
> - i call a form for editing, but want to behave this as a dialog
> When the editform gets displayed the calling form gets unvisible.
> When the user resizes and/or moves the editform, the calling browser is
> set to the size/position of the editform before the editform gets closed
> and the calling form gets displayed again.
> 
> Will the changes you did still allow what i described above?

I think in concert with the other changes of the past couple days, it should 
work. We 
used to restore the size/position in the Activate cycle, but now it happens in 
the 
construction cycle. We used to save size/position when the form was moved or 
resized, 
but now we save it when the form is closed.

So, if you instantiate a form it'll restore size and position. If you make it 
invisible, it won't save the size and position. But when you close it, it will.

Let me know if you have trouble!

Paul


_______________________________________________
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]

Reply via email to