some controls cannot be seen in dialog window

General questions regarding the usage of CodeLite
buffalo
CodeLite Enthusiast
Posts: 11
Joined: Sat Jul 19, 2014 11:46 am
Genuine User: Yes
IDE Question: c++
Contact:

some controls cannot be seen in dialog window

Post by buffalo »

Your codelite version: 9.0, 9.01, 9.02
Is it a self compiled version of codelite: download from official sit
Your OS: Windows 10
Compiler version: mingw x86_64-4.9.3

I have found that some controls (just buttons) in the bottom of dialog cannot be displayed.
After many trials, I also found that when I enabled the flag wxRESIZE_BORDER and executed the program once, those controls can be displayed in spite of wxRESIZE_BORDER is disable.
However, if I have never enabled the flag wxRESIZE_BORDER, those controls cannot be seen because the dialog cannot adjust the window size to contain those controls.
Is it a bug??
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: some controls cannot be seen in dialog window

Post by eranif »

I am not sure what you are reporting here is this a CodeLite dialog or your own dialog?
If it is a CodeLite dialog, please specify which one is causing the problem

Eran
Make sure you have read the HOW TO POST thread
buffalo
CodeLite Enthusiast
Posts: 11
Joined: Sat Jul 19, 2014 11:46 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: some controls cannot be seen in dialog window

Post by buffalo »

It's my app's dialog.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: some controls cannot be seen in dialog window

Post by eranif »

at the end of your wxDialog constructor, add this line (assuming you have main sizer set to the dialog):

Code: Select all

GetSizer()->Fit(this);


IMPORTANT:
This is not the right place to post questions about your app... (I have answered it this time)
You should redirect any wxWidgets questions to the wxForum ( http://forums.wxwidgets.org )

Eran
Make sure you have read the HOW TO POST thread
buffalo
CodeLite Enthusiast
Posts: 11
Joined: Sat Jul 19, 2014 11:46 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: some controls cannot be seen in dialog window

Post by buffalo »

Thank you very much.
Post Reply