SIZE (non inheritable)
Specifies the element User size, and returns the Current size, in units proportional to the size of a character.
See the Layout Guide for more details on sizes.
Value
"widthxheight", where width and height are integer values corresponding to the horizontal and vertical size, respectively, in characters fraction unit (see Notes bellow).
You can also set only one of the parameters by removing the other one and maintaining the separator "x", but this is equivalent of setting the other value to 0. For example: "x40" (height only = "0x40") or "40x" (width only = "40x0").
When this attribute is consulted the Current size of the control is returned.
Notes
The size units observes the following heuristics:
- Width in 1/4's of the average width of a character for the current FONT of each control.
- Height in 1/8's of the average height of a character for the current FONT of each control.
SIZE depends on FONT, so FONT must be set before SIZE for correct size calculation.
When this attribute is changed, the RASTERSIZE attribute is automatically updated.
A User size of "0x0" can be set, it can also be set using NULL.
If you wish to use the User size only as an initial size, change this attribute to NULL after the control is mapped, the returned size in IupGetAttribute will still be the Current size.
The element is NOT immediately repositioned. Call IupRefresh to update the dialog layout.
IupMap also updates the dialog layout even if it is already mapped, so calling it or calling IupShow, IupShowXY or IupPopup (they all call IupMap) will also update the dialog layout.
See the Layout Guide for mode details on sizes.
Affects
All, except menus.