Jacek Kałucki wrote:
> Sorry Paul, but i have a bad news to you.
> Everything with position restoration works fine till main form has no 
> toolbar.
> When main form ShowToolBar is set to true, MDI child window position
> and even size isn't resored properly.
> Coordinates are saved correctly but looks as
>         self.Size = (width, height)
> and
>         self.Position = (left, top)
> calls in restoreSizeAndPosition method doesn't work as it should.
> It's strange but under debugger (I use Eclipse Pydev) size of frame
> is restored properly, only position isn't.
> But when I run pure application from command line, nothing works as 
> expected.

We were still creating the toolbar in the Activate handler. It used to occur 
before 
the restoration of form size but when I moved the restoration to __init__, it 
started 
occurring after. And there appears to be a "feature" of MDI forms where all the 
child 
forms get sized to maximum just by attaching a toolbar.

And although I haven't tested it with versions of Dabo before the save/restore 
fixes 
this last week, I suspect the position problem (restored position being offset 
by 
(mainform.ToolBar.Height * 5) has been there all along.

Try r5050.

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