Managing UI Geometry: 3.2 Positioning and Sizing Windows: Determining Initial Size

Up: GEOS SDK TechDocs | Up | Prev: 3.1 Window Positioning | Next: 3.3 On-Screen Behavior
HINT_EXTEND_WINDOW_TO_BOTTOM_RIGHT, HINT_EXTEND_WINDOW_NEAR_BOTTOM_RIGHT, HINT_SIZE_WINDOW_AS_DESIRED, HINT_SIZE_WINDOW_AS_RATIO_OF_PARENT, HINT_SIZE_WINDOW_AS_RATIO_OF_FIELD, HINT_USE_INITIAL_BOUNDS_WHEN_RESTORED

GenClass has a number of hints used by the window classes to determine the size of the window object initially and how the window is allowed to be resized on the screen. Specific UIs can override these hints when necessary or when they conflict with the UI's specifications. These hints are listed below.

HINT_EXTEND_WINDOW_TO_BOTTOM_RIGHT
This hint extends the window's bounds so its lower right corner is located at the lower right corner of its parent window.
HINT_EXTEND_WINDOW_NEAR_BOTTOM_RIGHT
This hint extends the window's bounds so its lower right corner is located near the lower right corner of its parent window. Enough room will be left for any icon area that may be present. Most major applications will apply this hint to their GenPrimary objects.
HINT_SIZE_WINDOW_AS_DESIRED
This hint allows the window to size itself according to the combined size of its children.
HINT_SIZE_WINDOW_AS_RATIO_OF_PARENT
This hint sizes the window to a ratio of its parent window. It takes a single parameter of type SpecWinSizePair , described under HINT_POSITION_WINDOW_AT_RATIO_OF_PARENT . Instead of coordinates, however, the ratios in the structure are width and height.
HINT_SIZE_WINDOW_AS_RATIO_OF_FIELD
This hint sizes the window to a ratio of the field window's size. It takes a SpecWinSizePair parameter indicating the ratio. See above.
HINT_USE_INITIAL_BOUND_WHEN_RESTORED
This hint instructs the window to come on-screen with its original values rather than the state of the window when it was saved to state.

Up: GEOS SDK TechDocs | Up | Prev: 3.1 Window Positioning | Next: 3.3 On-Screen Behavior