Small Dialogs
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Small Dialogs
Hi,
first let me put little disclaimer that am not sure if this is wxWidgets behaviour on Windows or wxCrafter issue.
I use wxC to generate dialogs which works fine in Linux. I have the size I put and works ok. In Windows however, every time they shrink to fit widgets populated in it.
If I put size it does not get honored so they look ugly under windows. Here is a simple example
Two are samples one in wxC and another in app
On wxC designer On real app TIA,
S.
first let me put little disclaimer that am not sure if this is wxWidgets behaviour on Windows or wxCrafter issue.
I use wxC to generate dialogs which works fine in Linux. I have the size I put and works ok. In Windows however, every time they shrink to fit widgets populated in it.
If I put size it does not get honored so they look ugly under windows. Here is a simple example
Two are samples one in wxC and another in app
On wxC designer On real app TIA,
S.
You do not have the required permissions to view the files attached to this post.
CodeLite 15.x
CodeLite is awesome, I just Love it!
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
anyone in Windowsexperiencing the same issue?
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
You need to set the minimum size for the dialog
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
Hi Eran,
I have tried that but it doesn't get honored. Sorry I did not mention that.
Sent from my TECNO H6 using Tapatalk
I have tried that but it doesn't get honored. Sorry I did not mention that.
Sent from my TECNO H6 using Tapatalk
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
Two things here:
1. wxCrafter calls GetSizer()->Fit() to ensure that all widgets are visible (hard coded dialog size is bad, especially when write cross platform application)
2. You can set a size to one of the internal widgets (e.g. a Notebook control) and the GetSizer()->Fit() will take this into account
Eran
1. wxCrafter calls GetSizer()->Fit() to ensure that all widgets are visible (hard coded dialog size is bad, especially when write cross platform application)
2. You can set a size to one of the internal widgets (e.g. a Notebook control) and the GetSizer()->Fit() will take this into account
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
I will try to set Size of one widget and see what happens.
Thanks
Thanks
CodeLite 15.x
CodeLite is awesome, I just Love it!
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Small Dialogs
So I found the issue. Its wxPersistence that was putting its size. I will have to disable it
Thanks.
Thanks.
CodeLite 15.x
CodeLite is awesome, I just Love it!