News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How can I programmatically resize a wxFrame?

Started by Landslyde, August 07, 2018, 10:56:47 AM

Previous topic - Next topic

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
wxFrame->SetSize(1200,900);
and
wxFrameBase->SetClientSize(1200,900);
but that doesn't work. I get an error:
1071|error: expected unqualified-id before '->' token|

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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]