User forums > Using Code::Blocks
C::B with wxsmith, newbie question
(1/1)
Kamesh:
Hi all,
I am sorry to pose this rather simple question. I created a wxsmith frame and added simple code manually to one button. Later when I added one more button to the frame the code I wrote for the first button disappeared (I think the code got over written)!! How do I retain the code I typed earlier when I make changes to the frame when adding/modifying any frame. Thank you for your answers.
byo:
Some parts (but only parts) of source code files is automatically regenerated from scratch when anything changes in the resource. You can easily find such blocks since they start with //(* comment and end with //*) comments. Everything in such block is rewritten.
Now if you want to do something with items created, you can either do it right after the //*) comment (preffered) or by using "Extra code" property - code entered in this property will be added just after the widget is created.
Regards
BYO
Kamesh:
Thank you BYO. Will check.
Navigation
[0] Message Index
Go to full version