wxDialog Executable Size Does Not Match Preview
Posted: Thu Jun 15, 2017 10:10 pm
Hi. I have two problems with my wxDialog display. I have put a marked-up printscreen of my IDE and execution below for your reference.
1. The first problem is that the executable's screen size is too short vertically to display all the fields. I have left all the "Size" fields for the wxPanel and wxSizer boxes as -1,-1, and the preview pane looks beautiful. See the printscreen above. But the actual executable form is too wide horizontally and too short vertically. And I can't grab the sides to widen or shrink the panel.
As I state in the markup: In practice, only one of the three equations visible in the preview page would be shown at a time. Each equation would start in the same spot, which is just below the cyan box.
2. The second problem that I'm having trouble displaying wxStaticText and wxTextCtrl boxes. Again, they look great in the preview pane, but they're jumbled all on top of each other in the executable. This problem may fix itself when problem #1 is fixed, but I'm not sure.
To get the wxDialog box the right size, I have tried changing the size and minimum size of the wxPanel to values like 800,800, then generated code, cleaned the workspace, rebuilt the workspace, and finally run the program. But the wxDialog screen size is the same as it was when I set it to -1,-1.
Can someone give me suggestions of flags to set, or reset, or give me an idea where to start, to make the wxDialog bigger vertically?
Currently, the only flags I have set for the wxDialog are wxDEFAULT_DIALOG_STYLE and wxFULL_REPAINT_ON_RESIZE.
I thank you in advance for your help.
Colleen
Software Versions
CodeLite 10.0.4
gcc 4.9.3
Windows 10 Pro, 64-bit
wxWidgets 3.1.0
wxCrafter 2.6
Target platform 32-bit
Target build debug
1. The first problem is that the executable's screen size is too short vertically to display all the fields. I have left all the "Size" fields for the wxPanel and wxSizer boxes as -1,-1, and the preview pane looks beautiful. See the printscreen above. But the actual executable form is too wide horizontally and too short vertically. And I can't grab the sides to widen or shrink the panel.
As I state in the markup: In practice, only one of the three equations visible in the preview page would be shown at a time. Each equation would start in the same spot, which is just below the cyan box.
2. The second problem that I'm having trouble displaying wxStaticText and wxTextCtrl boxes. Again, they look great in the preview pane, but they're jumbled all on top of each other in the executable. This problem may fix itself when problem #1 is fixed, but I'm not sure.
To get the wxDialog box the right size, I have tried changing the size and minimum size of the wxPanel to values like 800,800, then generated code, cleaned the workspace, rebuilt the workspace, and finally run the program. But the wxDialog screen size is the same as it was when I set it to -1,-1.
Can someone give me suggestions of flags to set, or reset, or give me an idea where to start, to make the wxDialog bigger vertically?
Currently, the only flags I have set for the wxDialog are wxDEFAULT_DIALOG_STYLE and wxFULL_REPAINT_ON_RESIZE.
I thank you in advance for your help.
Colleen
Software Versions
CodeLite 10.0.4
gcc 4.9.3
Windows 10 Pro, 64-bit
wxWidgets 3.1.0
wxCrafter 2.6
Target platform 32-bit
Target build debug