Your issue may come from using fixed sizes and positions. Better create one or several wxsizers and let them do the windows layouts.
The layout may be something like
Code: Select all
main Frame
_____________ _____________
| panel | | glcanvas |
| | | |
___________________________
| static text |
|__________________________|
then use two wxBozSizer's:
a) sizerH horizontal, handling panel and glcanvas (there's no obvious profit in putting a glcanvas as child of a panel)
b) sizerV vertical: handles sizerH and the static text
If the panel has several controls, then use another sizer for them.