User forums > General (but related to Code::Blocks)
Adding code inside the code auto-generated by wxsmith
(1/1)
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.
nishalns:
--- 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.
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version