Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: lesnewell on February 15, 2007, 05:48:51 pm
-
Would it be possible to add a 'class name' option to the properties editor? This would default to the control's normal class name. It would work in exactly the same way as the custom control's class name. A lot of the time I am using classes that are derived from standard controls but with slightly different functionality. At the moment each one needs to be defined as a custom control.
Say for example I have a control called wxMyListBox that descends from wxListBox. I could place a list box and change the class name to wxMyListBox and it would show up correctly in wxSmith. The code however would then be generated using my class. As long as I don't change my control's constructor it should work perfectly
Thanks for a great CB plugin.
Les
-
That will be good idea. The same idea was used in wxDevCpp and I use it a lot.
-
Your wish is my commad ;) Shouldn't be hard to implement, I'l do it today / tomorrow, just need to finish menus first :)
BYO
-
That are great news. :D I think, when this is implemented I can switch from wxGlade to wxSmith
-
That is great! Thanks.
Les
-
The first version of menu was baggy. Would be grate to have a tutorial how we can add custom component in to the wxSmith, if you have that option.
-
The first version of menu was baggy
What exactly do you mean ? Which rev ?
-
I've not tested yet the wxSmith menu.
-
Found few bugs in menu support (f.ex. can not create sub-meuns with sub-menus). Bug fixes tomorrow :)
-
Good works... :)
-
Good works... :)
I assume this is for menus :) nice to hear that :). But how about 'class name' ? (It's called 'Custom class' in resource browser). Does it work as it should ? (I've never used this technique so I've implemented as I would like it to work ;) ).
BYO
-
Sorry I didn't get back to you earlier but I have been away for a couple of days. The custom class works well. It will make my life a lot easier. Thanks!
Just a suggestion - Instead of having a box for 'Custom class', why not have a box called 'Class name'. it would normally hold the class name of that control (e.g wxListBox) but you could change it to something else if you want, e.g. wxCheckListBox. At the moment the custom control now has 'Class name' and 'Custom class'.
Les