Re[2]: Menu.Append/AppendSubMenu question

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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 corredt?

 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/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZ8m+bAAKCRAG6kHeT2we
hrA7AJkBnOVuxzq44aGeP7jdRJMvbydtCgCgh2Vgw8uXu1bHEUJ/ppNSSj5y6uw=
=IPvU
-----END PGP SIGNATURE-----
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.