aui LoadPerspective with a new window
Riccardo Cohen
rcohen at articque.com
Wed Feb 13 23:48:24 PST 2008
Well I made some tests : if you don't restore the dock_size(...) parts,
then you have all pane at good place but not in good size. I don't have
the time to reproduce it in small sample, but look at the pane
information saved alone : there is no size except floating size, how AUI
could know what size the docks are ?
pane info :
name=view_book;caption=;state=768;dir=5;layer=0;row=0;pos=0;
prop=100000;bestw=200;besth=200;minw=200;minh=200;maxw=-1;maxh=-1;
floatx=-1;floaty=-1;floatw=-1;floath=-1
dock dimensions :
dock_size(4,0,2)=302
and actually if you remove dock_size before loadperspective, the dock
loose their original size
Leslie Newell wrote:
> I am not sure why you would want to save the dock info. This is
> recreated when you update() anyway. The panes contain their position,
> layer, visible/invisible status etc. I have certainly not found any
> problem with just loading the panes. I can position/dock the panes
> anywhere I like. When I close my app (saving the panes) the restart it
> (creating the panes then loading the panes) the panes appear in exactly
> the same state as when I closed.
>
> I don't understand why AUI insists on saving the whole manager state
> even when the data is likely to be regenerated shortly after. IMHO it
> should only save what it actually needs to recreate the layout.
>
> Les
>
> Riccardo Cohen wrote:
>> yes but the dock_size are not restored in your code, because you
>> restore individual panes only. I tried my method :
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
--
Très cordialement,
Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
More information about the wx-users
mailing list