Re: Change in wxPersistentRegisterAndRestore behaviour with wxAui

jon bird <[email protected]> Sat, 8 Nov 2025 19:03:52 +0000
Newsgroups gmane.comp.lib.wxwindows.general
Organization OnAStickSoftware
Message-ID <[email protected]>
On Sat, 8 Nov 2025 17:51:05 +0100
Vadim Zeitlin <[email protected]> wrote:

> On Sat, 8 Nov 2025 16:30:22 +0000 jon bird wrote:
> 
> jb> Take a look at this picture:
> jb> 
> jb> https://www.onasticksoftware.co.uk/images/playout4_2018-09-07_10-02-09.png
> jb> 
> jb> There are 3 aui panels, those 2 strips of buttons on each side &
> jb> everything else in the middle one. The width of those button
> jb> strips can of course be adjusted by the user, the desired
> jb> behaviour is that the width is then preserved between sessions. 
> jb> 
> jb> Those button strips are pretty simple - literally a wxFrame with a
> jb> wxBoxSizer holding the buttons (and a wxGridSizer for the two at
> jb> the bottom).  
> 
>  This can't be a wxFrame or I'm completely missing something here.
> 
No, it's me, I'm still on something - wxPanel not wxFrame (it's been a
long week).


> jb> When the app closes, I call GetSize on each of the wxFrames &
> jb> save the width. When it starts up, I call SetSize (as described
> jb> in my previous mail) on them, specifying the previously saved
> jb> width.  
> 
>  FWIW the usual way of restoring AUI layout was to save and then
> reload a "perspective", which is just a simple string. In 3.3 there
> is a new and much more flexible mechanism using wxAuiSerializer and
> wxAuiDeserializer. Nevertheless calling SetSize() should still work.
> I still don't understand what do you call it on, however.
> 
>  Regards,
> VZ
> 
I'll take a look at those tomorrow.

Thanks and again, apologies for the confusion.

Jon.

-- 
-- 
== jon bird - software engineer
== <reply to address _may_ be invalid, real mail below>
== <reduce rsi, stop using the shift key>
== posted as: news 'at' onasticksoftware 'dot' co 'dot' uk

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/20251108190352.3f401bf3%40lapdog.onasticksoftware.net.