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?
HOW do i remove sizer line? Topic is solved
-
- Experienced Solver
- Posts: 70
- Joined: Wed Jan 04, 2006 7:55 am
- Location: Singapore
-
- Experienced Solver
- Posts: 70
- Joined: Wed Jan 04, 2006 7:55 am
- Location: Singapore
Re: HOW do i remove sizer line?
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.
-
- Experienced Solver
- Posts: 70
- Joined: Wed Jan 04, 2006 7:55 am
- Location: Singapore
-
- Moderator
- Posts: 680
- Joined: Wed Jan 18, 2006 6:13 pm
- Location: Dallas, TX
Well, try to override it.
try this:
It should be like it was never included.
try this:
Code: Select all
GetSizer->SetSizeHints( (wxFrame*)NULL );
-
- Moderator
- Posts: 1289
- Joined: Thu Nov 25, 2004 7:38 pm
- Location: Coronado, CA
Re: HOW do i remove sizer 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?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?
-Tony
Everybody's got something to hide except for me and my monkey.
-
- Experienced Solver
- Posts: 70
- Joined: Wed Jan 04, 2006 7:55 am
- Location: Singapore
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?
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?
-
- Moderator
- Posts: 1289
- Joined: Thu Nov 25, 2004 7:38 pm
- Location: Coronado, CA
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++.1)So what is actually Delphi?
Any download for that software?
-Tony
Everybody's got something to hide except for me and my monkey.
-
- Super wx Problem Solver
- Posts: 466
- Joined: Sat Sep 18, 2004 2:49 am
- Location: California, USA
Re: HOW do i remove sizer line?
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.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
ding: Thank you for the question.
-Guru Kathiresan