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
Experienced Solver
Experienced Solver
Posts: 61
Joined: Sat Jan 28, 2012 3:55 pm
Location: Houston TX

Changing a control's parent

Post by softport » Thu Feb 21, 2013 7:23 am

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.

Windows XP, wxDev-C++, wxWidgets 2.8.12, MingW

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 » Thu Feb 21, 2013 10:38 pm

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

Post Reply