ControlContext :: setSize - Set control size
The function changes the size of the control to the value passed in cSize . Controls size can be adapted automatically when changing the upper window/control size by passing vertical and/or horizontal grow options as true ( bGrowHorizontal , bGrowVertical ). The minimum size, to which the control may shrink is passed in cMinSize .
Implementation details
- cSize
- Size of rectangle
Size is usually defined in pixel width and pixel height.
- cMinSize
- Minimum size
the minimum size for a control is the lower value, up to which a control can be minimized.
- bGrowHorizontal
- Horizontal resize mode
When passing true , the horizontal control size will be adapted automatically when changing the upper window/control size. When passing false , the control size will not change.
Default: false
- bGrowVertical
- Vertical resize mode
When passing true , the vertical control size will be adapted automatically when changing the upper window/control size. When passing false , the control size will not change.
Default: false