[feedback] Latest rev.

Post here wxCrafter related issues / features / bugs
DavidGH
CodeLite Plugin
Posts: 585
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: [feedback] Latest rev.

Post by DavidGH » Tue Nov 06, 2012 11:24 pm

DavidGH wrote:Out of interest, did you try the 'subclass' method? I've always found it sufficient for my dialogs, and wxCrafter does import it without difficulty.
Well to be honest I never tried. I chose the way as described above because I found an explanation in the wxwidgets forum / WiKi that time I needed it. As it was/is working I never touched it since. Maybe I'll try sub-classing. But this project has no high priority for me - its just a private tool that shall work and not be perfect.

Getting a little off-topic now, but where can I read about sub-classing in XRC files? Is this do-able in wxCrafter? (I think so - if you mean the custom controls, right?) I am trying to get the wording right... what is what...?!
It's discussed, though not in enormous detail, in the xrc overview. Unfortunately the 'derived dialog' section of the 'xrc' sample (one of the ones that comes with the wx source) doesn't actually use it. Perhaps none of its features require RTTI; in that case you don't need to do anything different at XRC level, just LoadDialog() using a wxNoBorderDialog pointer.

To subclass with wxCrafter, just fill in the derived classname in the 'Subclass' > 'Class Name' field of the Properties section.

SlimFast
CodeLite Enthusiast
Posts: 43
Joined: Fri Jun 17, 2011 9:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [feedback] Latest rev.

Post by SlimFast » Wed Nov 07, 2012 6:51 pm

OK - thank both of you for your comments...

Post Reply