Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: crackerizer on July 29, 2007, 10:38:23 AM

Title: Autocode generator replace all of my written code
Post by: crackerizer on July 29, 2007, 10:38:23 AM
Hello all,
I'm new to CB and trying to use it as my IDE for a new project. But i have a problem.
Everytime i add a frame or a panel with wxsmith(or trying to change a frame's property). The codes i wrote are gone!
Is this a bug or it's normal?  :?

Thank you.
Title: Re: Autocode generator replace all of my written code
Post by: raph on July 29, 2007, 10:53:16 AM
wxSmith will generate it's code between the

//(*What(YourClass)
//*)

markers.
For example initializing code will go between

//(*Initialize(YourClass)
//*)

You have to write your code outside of these markers or wxSmith will overwrite it.
Title: Re: Autocode generator replace all of my written code
Post by: crackerizer on July 29, 2007, 10:55:42 AM
raph, thank you very much. I'll move my code out of those scope.  :D