IUP/Controls/IupFrame: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Created page with "__NOTOC__ __NOEDITSECTION__ Creates a Frame interface element, which draws a frame with a title around an interface element. ===Creation=== :iup.frame{'''element''': ihandle}..."
 
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__
{{IUP Controls}}
Creates a Frame interface element, which draws a frame with a title around an interface element.
Creates a Frame interface element, which draws a frame with a title around an interface element.


===Creation===
===Creation===
:iup.frame{'''element''': ihandle} -> ('''elem''': ihandle)
    iup.frame{'''element''': ihandle} -> ('''elem''': ihandle)


:'''element''': Identifier of an interface element which will receive the frame.
:'''element''': Identifier of an interface element which will receive the frame.
Line 22: Line 23:
:'''[[IUP/Attributes/SEGMENTED|SEGMENTED]]''': "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom -- value between 0 and 1
:'''[[IUP/Attributes/SEGMENTED|SEGMENTED]]''': "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom -- value between 0 and 1


:'''DRAWCENTER''': "YES" or "NO" (Default: "YES")
:'''DRAWCENTER''': Draws the center part of the IMAGE.  "YES" or "NO" (Default: "YES")
 
===Templates===
:iup.pdarootframe()
:iup.pdarootframebg()
:iup.pdasubframe_nomargin()
:iup.pdasubframebg()
:iup.pdasubsubframebg()
:iup.pdasubsubsubframe2()
:iup.pdasubsubsubframebg()
:iup.pdasubsubsubframefull2()
 
:iup.hudchatframe()
:iup.hudleftframe()
:iup.hudrightframe()
:iup.hudchatframe_old()
:iup.hudleftframe_old()
:iup.hudrightframe_old()
 
:iup.stationmainframe()
:iup.stationmainframebg()
:iup.stationnameframe()
:iup.stationdoubleframe()
:iup.stationbuttonframe()
:iup.stationhighopacityframe()
:iup.stationhighopacityframebg()
:iup.stationhighopacityframebgfiller()
 
:iup.stationsubframe()
:iup.stationsubframebg()
:iup.stationsubframebgfiller()
:iup.stationsubframe_nomargin()
:iup.stationsubhollowframe()
:iup.stationhighopacitysubframe()
:iup.stationsubframevdivider()
:iup.stationsubframehdivider()
 
:iup.stationsubsubframe()
:iup.stationsubsubframebg()
:iup.stationsubsubframe2()
:iup.stationsubsubframevdivider()
:iup.stationsubsubframehdivider()
 
===Notes===
:Never use IupMap on a frame, or it will crash the game.
 
[[Category:IUP Controls]]

Latest revision as of 21:08, 11 May 2023


Controls

Dialog
Fill
Hbox
Vbox
Zbox
Cbox
Radio
Button
Canvas
Frame
Label
List
Multiline
Text
Toggle
Progress Bar
Matrix
Tree
Navmap

Creates a Frame interface element, which draws a frame with a title around an interface element.

Creation

   iup.frame{element: ihandle} -> (elem: ihandle)
element: Identifier of an interface element which will receive the frame.
This function returns the identifier of the created frame, or nil if an error occurs.

Attributes

BGCOLOR: Frame image color
SIZE: Frame size.
BORDER: Margin of the visible element. It's value has the format "left top right bottom", where left, top, right, and bottom are integer values corresponding to margin on the specific sides.
IMAGE:
SEGMENTED: "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom -- value between 0 and 1
DRAWCENTER: Draws the center part of the IMAGE. "YES" or "NO" (Default: "YES")

Templates

iup.pdarootframe()
iup.pdarootframebg()
iup.pdasubframe_nomargin()
iup.pdasubframebg()
iup.pdasubsubframebg()
iup.pdasubsubsubframe2()
iup.pdasubsubsubframebg()
iup.pdasubsubsubframefull2()
iup.hudchatframe()
iup.hudleftframe()
iup.hudrightframe()
iup.hudchatframe_old()
iup.hudleftframe_old()
iup.hudrightframe_old()
iup.stationmainframe()
iup.stationmainframebg()
iup.stationnameframe()
iup.stationdoubleframe()
iup.stationbuttonframe()
iup.stationhighopacityframe()
iup.stationhighopacityframebg()
iup.stationhighopacityframebgfiller()
iup.stationsubframe()
iup.stationsubframebg()
iup.stationsubframebgfiller()
iup.stationsubframe_nomargin()
iup.stationsubhollowframe()
iup.stationhighopacitysubframe()
iup.stationsubframevdivider()
iup.stationsubframehdivider()
iup.stationsubsubframe()
iup.stationsubsubframebg()
iup.stationsubsubframe2()
iup.stationsubsubframevdivider()
iup.stationsubsubframehdivider()

Notes

Never use IupMap on a frame, or it will crash the game.