How do I keep the textctrl from resizing to fill the entire frame? I just want a small text box for user's to enter data, but every time I add a textctrl it fills the whole frame.
If you go to the Inspector, you need to go the the Properties Tab and set the AutoLayout property to true. The textcontrol can be left false.
Now let's say that you had a scrolled window in your main frame window and you want to put a textcontrol box in the scrolled window, then you would have both the main frame and the scrolled windows AutoLayout properties set to True.
This should solve your problem.
use wxpanel. Place wxpanel first in the frame, then place whatever control you want on the top of it. Use sizers if you want more flexibility
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.