User forums > Using Code::Blocks
How can I programmatically resize a wxFrame?
(1/1)
Landslyde:
i have a form set up that uses wxDEFAULT_DIALOG_STYLE. Given certain conditions, I want its width to grow from 780 to 1200. I've tried
--- Code: ---wxFrame->SetSize(1200,900);
--- End code ---
and
--- Code: ---wxFrameBase->SetClientSize(1200,900);
--- End code ---
but that doesn't work. I get an error:
--- Code: ---1071|error: expected unqualified-id before ‘->’ token|
--- End code ---
I know I'll get rocks thrown at me, but I can't figure this out.
stahta01:
You need to use the object name instead of the class name is my guess.
But, it is a off topic question for this site; that is best asked on https://forums.wxwidgets.org/
Tim S.
Landslyde:
Will do. Thanks.
Navigation
[0] Message Index
Go to full version