what number is safe to be used for Id?
you see, most of time I use -1 for id which means id is generated
automatically
also there is some fixed id like id for about dialog, or else
but sometimes we need the id number, like when we create shortcut for
menu
item
So, what range of number is safe? I see the docs and some of them use
number
> 100
is that ok?
what number is forbidden?
Regards
Hendra
on 2010-03-22 02:53
on 2010-03-23 21:41
On 22/03/2010 01:52, hendra kusuma wrote: > what number is safe to be used for Id? > you see, most of time I use -1 for id which means id is generated > automatically > also there is some fixed id like id for about dialog, or else > but sometimes we need the id number, like when we create shortcut for > menu item Any value < 65336 is permitted, in theory. Use Wx::ID_ANY / -1 wherever possible, but otherwise I think values > 3,000 are almost all open for user use. Some classes (eg Wx::Event) also have methods to give unreserved ids. alex
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.