Page 1 of 1

Custom Control Events in wxCrafter 2.7

Posted: Mon Jan 29, 2018 6:32 pm
by rbsullivanjr
Greetings,

I am using wxCrafter 2.7 on Windows 10.

I have created a custom control based on wxPanel with several controls within it: wxTextCtrl, wxListCtrl, wxStaticText, etc. This control has a custom event, as shown in the CustomControlEvents.JPG attachment.
CustomControlEvents.JPG
I have created a dialog box with this custom control in it, as shown in the DialogWithCustomControl.JPG attachment. I have attached a handler to the event emitted by the custom control, called OnFileSelected. So far so good.
DialogWithCustomControl.JPG
The problem is that when I save the wxCrafter project for the dialog, exit wxCrafter, then reenter wxCrafter and load the project for the dialog, the event handler is gone, as shown in the MissingEventHandler.JPG attachment.
MissingEventHandler.JPG
Is this a bug, or am I doing something wrong?

Re: Custom Control Events in wxCrafter 2.7

Posted: Mon Jan 29, 2018 7:39 pm
by eranif
Thanks for reporting this!
This is indeed a bug :)
I committed a fix and this should be available in the coming CodeLite weekly build

Re: Custom Control Events in wxCrafter 2.7

Posted: Mon Jan 29, 2018 7:59 pm
by rbsullivanjr
Excellent! Thanks for the quick response.