Custom Control Events in wxCrafter 2.7

Post here wxCrafter related issues / features / bugs
rbsullivanjr
CodeLite Curious
Posts: 2
Joined: Mon Jan 29, 2018 5:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

Custom Control Events in wxCrafter 2.7

Post by rbsullivanjr » Mon Jan 29, 2018 6:32 pm

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?
You do not have the required permissions to view the files attached to this post.

User avatar
eranif
CodeLite Plugin
Posts: 5927
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Custom Control Events in wxCrafter 2.7

Post by eranif » Mon Jan 29, 2018 7:39 pm

Thanks for reporting this!
This is indeed a bug :)
I committed a fix and this should be available in the coming CodeLite weekly build
Make sure you have read the HOW TO POST thread

rbsullivanjr
CodeLite Curious
Posts: 2
Joined: Mon Jan 29, 2018 5:40 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Custom Control Events in wxCrafter 2.7

Post by rbsullivanjr » Mon Jan 29, 2018 7:59 pm

Excellent! Thanks for the quick response.

Post Reply