Author Topic: [CB + wxSmith] delete functions when I delete graphical objects  (Read 3441 times)

Offline claudio

  • Single posting newcomer
  • *
  • Posts: 4
[CB + wxSmith] delete functions when I delete graphical objects
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: [CB + wxSmith] delete functions when I delete graphical objects
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline claudio

  • Single posting newcomer
  • *
  • Posts: 4
Re: [CB + wxSmith] delete functions when I delete graphical objects
« Reply #2 on: November 01, 2009, 11:58:43 pm »
Thanks for the answer.

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