Layout Operations
Functions Introduced
Use the function
ProUILayoutAnchorSet() to set the position of the layout with respect to a given anchor location. This function is applicable only if the parent of the layout is a drawing area.
Use the function
ProUILayoutSizeSet() to set the size of the layout. This field is used only if the parent is a drawing area. The function will fail, if you specify a value smaller than the minimum size for the input arguments
width or
height.
Use the function
ProUILayoutMinimumsizeGet() to retrieve the minimum size of the width and height of the layout in pixels. Use this function only if the parent is a drawing area.
Use the function
ProUILayoutPositionGet() to get the position of the layout with respect to its parent. This field is used only if the parent is a drawing area.
Use the function
ProUILayoutPositionSet() to set the position to the layout with respect to its parent. This field is used only if the parent is a drawing area.
Use the function
ProUILayoutSizeGet() to get the size of the layout. This field is used only if the parent is a drawing area.
The function
ProUILayoutIsMapped() specifies if the given layout component is mapped. The value of the output flag is PRO_B_TRUE if the layout is mapped, else it is
PRO_B_FALSE.
The functions
ProUILayoutShow() and
ProUILayoutHide() show and hide the layout component respectively, along with its contents.
|
Note:
|
The function ProUILayoutHide does not hide layouts that are direct children of a tab.
|
Use the function
ProUILayoutMappedSet() to keep the size of the layout unchanged while working with these functions. To collapse or expand the layout to its nominal size, use the function
ProUILayoutMappedUnset().