Author Topic: Adding code inside the code auto-generated by wxsmith  (Read 6215 times)

Offline nishalns

  • Multiple posting newcomer
  • *
  • Posts: 22
Adding code inside the code auto-generated by wxsmith
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12001
    • Travis build status
Re: Adding code inside the code auto-generated by wxsmith
« Reply #1 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.
(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!]

Offline nishalns

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Adding code inside the code auto-generated by wxsmith
« Reply #2 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.
« Last Edit: July 17, 2013, 06:14:20 am by nishalns »