Small Dialogs

Post here wxCrafter related issues / features / bugs
evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Small Dialogs

Post by evstevemd »

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
true size.png
On real app
sample dialog.png
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!

evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by evstevemd »

anyone in Windowsexperiencing the same issue?

CodeLite 15.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by eranif »

You need to set the minimum size for the dialog

Eran
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by evstevemd »

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

CodeLite 15.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by eranif »

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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by evstevemd »

I will try to set Size of one widget and see what happens.
Thanks

CodeLite 15.x
CodeLite is awesome, I just Love it!

evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small Dialogs

Post by evstevemd »

So I found the issue. Its wxPersistence that was putting its size. I will have to disable it
Thanks.

CodeLite 15.x
CodeLite is awesome, I just Love it!

Post Reply