Changing a control's parent

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
softport
Experienced Solver
Experienced Solver
Posts: 61
Joined: Sat Jan 28, 2012 3:55 pm
Location: Houston TX
Contact:

Changing a control's parent

Post by softport »

Hello, I am adding a notebook to my form, and would like to move
some of the form's controls into it. Is there a way to do this?

I have tried cutting and pasting a control into the notebook, but
this doesn't work. Have also tried changing the parent field in the
Create GUI controls section of the code, but that didn't work either.

thanks!
Windows XP, wxDev-C++ 7.4.2.259, wxWidgets 2.8.12, MingW
jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Changing a control's parent

Post by jgrzybowski »

wxNotebook is a container for pages. You need to put inside of your wxNotebook some wxNotebookPage. Inside of wxNotebookPage you can put some controls.
Regards
Jarek
Post Reply