Kendall Russell
|
Grid Layout affects size of widgets
|
Kendall Russell
07/13/2011 10:09 AM
post87324
|
Grid Layout affects size of widgets
When I apply the Grid Layout to a window with three widgets, the size of the widgets are changed.
I have a window designed in PhAB that has three widgets. (see attached image)
1. A PtLabel widget is top center
2. A PtMultiText is below the PtLabel. The PtMultiText takes up the majority of the screen width.
3. A PtButton is on the bottom right. [OK]
The issue that I am having is:
1. In PhAB, when I change this window to a Grid Layout, the PtMultiText and the PtButton widgets both shrink. The
PtButton widget shrinks to just large enough to display the "OK" text, and the PtMultiText shrinks to where the vertical
scroll bar is all that is visible.
2. If I resize the widgets manually in PhAB and set up the resources for each widget to be placed correctly in the Grid
Layout, then everything appears fine in PhAB. However, if I attempt to make the window smaller in PhAB, or when I run
the application, the widgets are again automatically resized to the smaller size.
I have used the Grid Layout in two other windows without any problem. However, in those other windows, all of the
individual widgets are grouped into PtGroup widgets. I did not do that for this window because there are only three
widgets and I need the PtMultiText widget to resize if the size of the window changes. (Horizontal Grab and Vertical
Grab)
|
|
|