Difference between revisions of "IUP/Layout/IupHbox"
From Vendetta Lua
(Created page with "__NOTOC__ =IupHbox= :Creates an hbox container for composing elements. It is a box that arranges the elements it contains, horizontally and from left to right. ===Creation==...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | __NOEDITSECTION__ | |
− | + | {{IUP Controls}} | |
− | + | Creates an hbox container for composing elements. It is a box that arranges the elements it contains, horizontally and from left to right. | |
===Creation=== | ===Creation=== | ||
− | + | iup.hbox{'''elem1''', '''elem2''', ...: ihandle} -> ('''elem''': ihandle) | |
:'''elem1''', '''elem2''',...: List of identifiers that will be placed in the box. | :'''elem1''', '''elem2''',...: List of identifiers that will be placed in the box. | ||
Line 32: | Line 32: | ||
:[[IUP/Layout/IupZbox|IupZbox]], [[IUP/Layout/IupVbox|IupVbox]] | :[[IUP/Layout/IupZbox|IupZbox]], [[IUP/Layout/IupVbox|IupVbox]] | ||
+ | |||
+ | [[Category:IUP Controls]] |
Revision as of 07:57, 12 May 2023
Controls |
Dialog |
Creates an hbox container for composing elements. It is a box that arranges the elements it contains, horizontally and from left to right.
Creation
iup.hbox{elem1, elem2, ...: ihandle} -> (elem: ihandle)
- elem1, elem2,...: List of identifiers that will be placed in the box.
- This function returns the identifier of the created hbox.
Attributes
- ALIGNMENT: Aligns the elements vertically. Possible values: "ATOP", "ACENTER", "ABOTTOM". Default: "ATOP".
- GAP: Defines a space in pixels between the interface elements. Default: "0".
- MARGIN: Defines a margin in pixels. Its value has the format "widthxheight", where width and height are integer values corresponding to the horizontal and vertical margins, respectively. Default: "0x0" (no margin).
- SIZE: Width of the hbox. Default: the smallest size that contains the children elements.
Note
The box can be created with no elements and be dynamic filled using IUP/Layout/IupAppend.
Examples
iuphbox.gif (7213 bytes)