Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Landslyde on August 07, 2018, 10:56:47 am

Title: How can I programmatically resize a wxFrame?
Post by: Landslyde on August 07, 2018, 10:56:47 am
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);
and
Code
wxFrameBase->SetClientSize(1200,900);
but that doesn't work. I get an error:
Code
1071|error: expected unqualified-id before ‘->’ token|

I know I'll get rocks thrown at me, but I can't figure this out.
Title: Re: How can I programmatically resize a wxFrame?
Post by: stahta01 on August 07, 2018, 11:10:26 am
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/ (https://forums.wxwidgets.org/)

Tim S.

Title: Re: How can I programmatically resize a wxFrame?
Post by: Landslyde on August 07, 2018, 11:26:34 am
Will do. Thanks.