Re: Menu.Append/AppendSubMenu question

"'raf' via wx-users" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Thu, Mar 06, 2025 at 04:25:32PM +0100, Vadim Zeitlin <[email protected]> wrote:

> On Thu, 6 Mar 2025 13:38:22 +1100 'raf' via wx-users wrote:
> 
> r> > r> How do I pass it the Id? I also at some point saw
> r> > r> deprecation warnings for NewId().
> r> > 
> r> >  This function is not formally deprecated at C++ level, but it's indeed not
> r> > recommended to use it because it allocates ID from 2 disjoint ranges which
> r> > can be unexpected. wxIdManager::ReserveId() can be used instead.
> r> 
> r> The documentation says that NewIdRef() is a replacement.
> r> Is that correct?
> 
>  This must be a Python-specific function because there is nothing like this
> in the C++ API, so I don't know, sorry.
> 
>  In any case, you can continue using NewId() or, alternatively, create a
> menu item with wxID_ANY and then ask for the ID allocated to it.
> 
>  Regards,
> VZ
> 
> -- 
> TT-Solutions: wxWidgets consultancy and technical support
>               https://www.tt-solutions.com/

Thanks.

cheers,
raf

-- 
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/Z8pBx8g2zoBayqqT%40raf.org.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.