Re: Change in wxPersistentRegisterAndRestore behaviour with wxAui

jon bird <[email protected]> Fri, 7 Nov 2025 16:06:44 +0000
Newsgroups gmane.comp.lib.wxwindows.general
Organization OnAStickSoftware
Message-ID <[email protected]>
On Fri, 7 Nov 2025 16:35:17 +0100
Vadim Zeitlin <[email protected]> wrote:

> On Fri, 7 Nov 2025 15:13:26 +0000 jon bird wrote:
> 
> jb> 
> jb> At this point, it's more just a query on why the behavior has
> jb> changed rather than highlighting a bug or problem.  
> 
>  Sorry for not saying it explicitly, but there has been no intentional
> change to this behaviour.
> 
> jb> Regardless, I've spent about an hour or so fiddling around with
> jb> the auidemo sample and not really got anywhere.  
> 
>  If it's simpler to reproduce in the minimal sample, this would work
> too. But I'd need to have _something_ to work with, i.e. see this
> change in behaviour by being able to run some code which works
> differently now from how it worked before.
> 
>  Regards,
> VZ
> 

Right, ok please ignore pretty much everything I've said. Transpires
I'd forgotten that I'd actually implemented a wxPersistentObject
instance which handles the preservation of the window (which just
happens to be in an wxAui pane). So it's nothing to do with wxAUI
(apologies for that).

The problem therefore appears to be around why that wxPersistentObject
isn't restoring the window (in this case) width properly. All it's doing
is making a call to:

SetSize(wxDefaultCoord,wxDefaultCoord,Width,wxDefaultCoord);

and is still being triggered correctly however for some reason the size
change is being ignored.

I'll need to dig a bit further into this, in the meantime thanks for
the assistance and apologies again for the confusion.

Rgs,

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/20251107160644.000051ff%40onasticksoftware.co.uk.