Page 1 of 1

some controls cannot be seen in dialog window

Posted: Mon Nov 09, 2015 8:59 am
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??

Re: some controls cannot be seen in dialog window

Posted: Mon Nov 09, 2015 10:42 am
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

Re: some controls cannot be seen in dialog window

Posted: Mon Nov 09, 2015 6:40 pm
by buffalo
It's my app's dialog.

Re: some controls cannot be seen in dialog window

Posted: Mon Nov 09, 2015 7:21 pm
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

Re: some controls cannot be seen in dialog window

Posted: Mon Nov 09, 2015 7:36 pm
by buffalo
Thank you very much.