IUP/Controls/IupCbox: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
Created page with "__NOTOC__ __NOEDITSECTION__ Creates a Cbox element. It is concrete layout container, i.e. its children are positioned in specified coordinates. The IupCbox inherits from the I..." |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
{{IUP Controls}} | |||
Creates a Cbox element. It is concrete layout container, i.e. its children are positioned in specified coordinates. The IupCbox inherits from the IupCanvas, so all the canvas attributes and callbacks are valid. The box must have a specified size. The IupCbox contains a IupHbox where all the children are inserted, but their positioning ignores the IupHbox. | Creates a Cbox element. It is concrete layout container, i.e. its children are positioned in specified coordinates. The IupCbox inherits from the IupCanvas, so all the canvas attributes and callbacks are valid. The box must have a specified size. The IupCbox contains a IupHbox where all the children are inserted, but their positioning ignores the IupHbox. | ||
===Creation=== | ===Creation=== | ||
iup.cbox{'''elem1''', '''elem2''', ...: ihandle} -> ('''elem''': ihandle) | |||
:'''elem1''', '''elem2''', ...: List of the elements that will be placed into Tabs. | :'''elem1''', '''elem2''', ...: List of the elements that will be placed into Tabs. | ||
Line 14: | Line 15: | ||
:'''CX''', '''CY''': (children only) Position in pixels relative to the top-left corner of the box. Must be set for each child inside the box. | :'''CX''', '''CY''': (children only) Position in pixels relative to the top-left corner of the box. Must be set for each child inside the box. | ||
:'''REFRESH''': Refreshes the display. This will reposition any children whose CX or CY properties have changed. Possible values: "YES". | |||
===See Also=== | ===See Also=== | ||
:[[IUP/Controls/IupCanvas|IupCanvas]] | :[[IUP/Controls/IupCanvas|IupCanvas]] | ||
[[Category:IUP Controls]] |
Latest revision as of 05:59, 11 May 2023
Controls |
Dialog |
Creates a Cbox element. It is concrete layout container, i.e. its children are positioned in specified coordinates. The IupCbox inherits from the IupCanvas, so all the canvas attributes and callbacks are valid. The box must have a specified size. The IupCbox contains a IupHbox where all the children are inserted, but their positioning ignores the IupHbox.
Creation
iup.cbox{elem1, elem2, ...: ihandle} -> (elem: ihandle)
- elem1, elem2, ...: List of the elements that will be placed into Tabs.
- This function returns the created Cbox's identifier, or nil if an error occurs. The order of the controls in the creation function is irrelevant.
Attributes
- CX, CY: (children only) Position in pixels relative to the top-left corner of the box. Must be set for each child inside the box.
- REFRESH: Refreshes the display. This will reposition any children whose CX or CY properties have changed. Possible values: "YES".