Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Commit 6241 candidate to be partly reverted ?
Jenna:
Because nobody has answered in one of the both threads below, I start a new one.
The bug described in the second thread (changing all default ID's of local declared controls to wxID_ANY) can be quite confusing and might not be recognized at first sight.
What's more it forces the developer to touch all ID's of local stored controls, that have events (annoying and time consuming).
http://forums.codeblocks.org/index.php/topic,12345.msg94192.html#msg94192
http://forums.codeblocks.org/index.php/topic,14003.msg94191.html#msg94191
thomas:
That is about wxSmith only, right? So should Byo not be the one who decides, since he's probably the one who knows best?
EDIT: Though I see that he's not been reading the forum for 7 months :(
MortenMacFly:
--- Quote from: jens on January 11, 2011, 05:49:21 pm ---Because nobody has answered in one of the both threads below, I start a new one.
--- End quote ---
I wanted to try this myself because I had the same case as Loaden described many times in other projects. That's why I thought it is useful. However, for menus I usually define my own ID's and do not let them have auto-generated. If I got you right that this would be changed on the fly which is of course not what's intended. However, if I set an ID to be a member I usually explicitly want to use the ID. If it is not set to "member" then I personally do not use it at all. That's why the concept of Loaden's patch works well for me.
However, I see the point when it would not work and in fact changing "is member" multiple times is not what I did and if it causes hassle that that's not what we want.
So I would agree to filter by type, but would suggest to leave the types as an option, including "all" and "none". That would provide most flexibility, but also causes most change (I know).
MortenMacFly:
--- Quote from: thomas on January 11, 2011, 08:17:13 pm ---That is about wxSmith only, right? So should Byo not be the one who decides, since he's probably the one who knows best?
--- End quote ---
Yes, but Byo has literally retired since ages, so I'm afraid the decision is up to us.
Jenna:
For menuitems and at least tools in a toolbar it makes no sense to keep them as member, because the menubar or the toolbar owns them after they have been added to it.
And there is no need to use "own" Id's for them (even if I also prefer to have meaningful names), but it's not up to an IDE to force the user to use a special programming style.
Navigation
[0] Message Index
[#] Next page
Go to full version