News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Adding code inside the code auto-generated by wxsmith

Started by nishalns, June 08, 2013, 06:18:30 AM

Previous topic - Next topic

nishalns

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?

oBFusCATed

Use a Custom widget or if it is derived from something available - use it and change the "Class name" in the properties.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

nishalns

#2
Quote from: 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.
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.