Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: nishalns on June 08, 2013, 06:18:30 am

Title: Adding code inside the code auto-generated by wxsmith
Post by: nishalns on June 08, 2013, 06:18:30 am
I have created a custom wxWidget in wxsmith and I would like to add it to my window. For this I think I should write the code for adding this widget inside the code auto-generated by code::blocks, i.e., the code between "//(*" and "//*)". Can I do this? Will it affect my application adversely?
Title: Re: Adding code inside the code auto-generated by wxsmith
Post by: oBFusCATed on June 08, 2013, 10:28:23 am
Use a Custom widget or if it is derived from something available - use it and change the "Class name" in the properties.
Title: Re: Adding code inside the code auto-generated by wxsmith
Post by: nishalns on June 10, 2013, 01:23:49 pm
Use a Custom widget or if it is derived from something available - use it and change the "Class name" in the properties.
Actually, I'm not adding only one copy of the component, but I am adding an array of this component to the panel. The size of the array is indefinite. Hence, I don't think I can use custom widget.

I think i'll need to use a loop to add these into the panel.