HOW do i remove sizer line? Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
ding
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Jan 04, 2006 7:55 am
Location: Singapore

HOW do i remove sizer line?

Post by ding » Thu Mar 09, 2006 3:00 pm

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
i wanted to remove this 2 line but fail
At wxform what properties to i do to remove this line?

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol » Thu Mar 09, 2006 8:18 pm

Can you re phrase your question, I don't understand what you are asking.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!

ding
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Jan 04, 2006 7:55 am
Location: Singapore

Re: HOW do i remove sizer line?

Post by ding » Fri Mar 10, 2006 12:51 am

ding wrote:GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);

i wanted to remove this 2 line but fail
At wxform what properties to i do to remove this line?

Everytime when a boxsizer is included in wxform, code will be automatically type into the .cpp form. After the 2nd sizer is being added,
GetSizer()->SetSizeHints(this);//remove this
GetSizer()->Fit(this);

it will set code to honour minimum size
and fit dialog to content

I wonder if there is properties under the properties table to remove this code, because i don want it to fit minmum size. i want it to be flexible and able to adjust.

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol » Fri Mar 10, 2006 1:32 am

Oh, you are talking about an IDE. I need to know what development environment you are using. Is it wxDevCpp, CodeBlocks, DialogBlocks, XRCed, etc.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!

ding
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Jan 04, 2006 7:55 am
Location: Singapore

Post by ding » Fri Mar 10, 2006 3:21 am

wxdevcpp, but I think there probably no way cause i have search for it under the properties window. Thanks anyway.

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol » Fri Mar 10, 2006 5:56 am

Well, try to override it.

try this:

Code: Select all

GetSizer->SetSizeHints( (wxFrame*)NULL );
It should be like it was never included.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: HOW do i remove sizer line?

Post by tbreina » Fri Mar 10, 2006 8:01 am

ding wrote:GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
i wanted to remove this 2 line but fail
At wxform what properties to i do to remove this line?
You can remove the sizer to remove the lines, but I'm not sure I understand the overall goal here. Can you explain why you are trying to remove the lines? What's the primary objective you wish to accomplish by removing the two lines?

-Tony
Everybody's got something to hide except for me and my monkey.

ding
Experienced Solver
Experienced Solver
Posts: 70
Joined: Wed Jan 04, 2006 7:55 am
Location: Singapore

Post by ding » Fri Mar 10, 2006 2:48 pm

Actaully there is no goal, it just for trying it out.

I read from this post

http://forums.wxwidgets.org/viewtopic.p ... nd&start=0

delphi seen like it have a lot of component, very favourable, but it actually take ages to load.

1)So what is actually Delphi?

Any download for that software?

3)Is it better than wxwidget?
What is the difference between the number Delphi 7 and 8?

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Post by tbreina » Fri Mar 10, 2006 5:24 pm

1)So what is actually Delphi?

Any download for that software?
Delphi is a commercial IDE that uses a variant of the Pascal programming language. Dev-cpp is written in Delphi (the version we use is an older version that was released for free-- newer versions are very expensive). Delphi only works on Windows, but the company produces Kylix, a Delphi-like IDE for Linux. I wouldn't bother with it until you have a better understanding of C++.

-Tony
Everybody's got something to hide except for me and my monkey.

gururamnath
Moderator
Moderator
Posts: 466
Joined: Sat Sep 18, 2004 2:49 am
Location: California, USA

Re: HOW do i remove sizer line?

Post by gururamnath » Fri Mar 10, 2006 10:41 pm

tbreina wrote: You can remove the sizer to remove the lines, but I'm not sure I understand the overall goal here. Can you explain why you are trying to remove the lines? What's the primary objective you wish to accomplish by removing the two lines?
-Tony
By removing those lines we have the ability to resize the dialog beyond its designed size. We can have 2 extra property that can help us make this happen (FitToDialog and SetDesignAsMinSize). I would really go with the FitToDialog option first as it will allow me to have the dialog run with the deisgned size but give the ability to the users to resize the dialog/frame much lesser than the deisgned size.

ding: Thank you for the question.

-Guru Kathiresan

Post Reply