Code::Blocks Forums

User forums => Help => Topic started by: claudio on October 31, 2009, 11:52:52 am

Title: [CB + wxSmith] delete functions when I delete graphical objects
Post by: claudio on October 31, 2009, 11:52:52 am
Is it possibile to delete all the functions related to a specific object when I delete if from wxSmith?

Example:
I have a button with the related function for the onclick event. If I delete on wxSmith the button I'd like the function automatically deleted, so I can't mess up with nosense event from nonexisting objects.

Thank you.
Title: Re: [CB + wxSmith] delete functions when I delete graphical objects
Post by: MortenMacFly on November 01, 2009, 07:41:07 pm
Is it possibile to delete all the functions related to a specific object when I delete if from wxSmith?
No. This would be dangerous as you would probably loose important code fragments (imagine you've modified a handler function to be used from other code, too etc). This is not supported therefore.
Title: Re: [CB + wxSmith] delete functions when I delete graphical objects
Post by: claudio on November 01, 2009, 11:58:43 pm
Thanks for the answer.

Maybe it can ask, or maybe just comment those lines.