Re[2]: Change in wxPersistentRegisterAndRestore behaviour with wxAui
Vadim Zeitlin <[email protected]> Sat, 8 Nov 2025 17:51:05 +0100
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
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 strips can
jb> of course be adjusted by the user, the desired behaviour is that the
jb> 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 the
jb> bottom).
This can't be a wxFrame or I'm completely missing something here.
jb> When the app closes, I call GetSize on each of the wxFrames & save the
jb> width. When it starts up, I call SetSize (as described in my previous
jb> mail) on them, specifying the previously saved 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
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaQ90+QAKCRAG6kHeT2we hkmzAJ4pQZv9X7+LPYKGE8YcLZW/TW4AZgCgnpB+S6QzBzDnk7D+esZv1o5i5sk= =cqbD -----END PGP SIGNATURE-----