IUP/Controls/IupFrame

From Vendetta Lua
Jump to navigationJump to search


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.