User:Draugath/VO IUP
From Vendetta Lua
Jump to navigationJump to search
Common Attributes ACTIVE = "YES" or "NO" VISIBLE = "YES" or "NO" X = <NUM> -- read-only Y = <NUM> -- read-only W = <NUM> -- read-only H = <NUM> -- read-only SIZE = " "FULL" "THREEQUARTER" "HALF" "THIRD" "TWOTHIRD" "QUARTER" "EIGHTH" "%<NUM>" EXPAND = "YES", "NO", "HORIZONTAL", "VERTICAL" iup.Destroy(element) iup.Hide(element) -- dialog only? - Use HideDialog() iup.Map(element) - Never map an iup.frame - Always map an iup.dialog - Cannot map boxes, except iup.cbox iup.Refresh ??? iup.Show(dialog) - use ShowDialog() iup.ShowXY(dialog, posx, posy) - use ShowDialog() ShowDialog(dialog, posx, posy) -- posx, posy (optional) iup.Append(element1, element2) :: element2 is appended to element1 iup.Detach(element) :: detach element from container iup.GetNextChild(element, lastchild) -> element :: gets the next child after lastchild (optional) iup.GetBrother(element) -> element :: get brother of element iup.GetParent(element) -> element :: get parent of element iup.GetDialog(element) -> element :: get dialog of element iup.GetType(element) -> <string> iup.fill({...}) SIZE = <NUM> EXPAND = "YES" or "NO" iup.hbox({element1..elementn, ...}) ALIGNMENT = "ATOP", "ACENTER", "ABOTTOM" GAP = <NUM> MARGIN = "<NUM>x<NUM>" SIZE = <NUM> iup.vbox({element1..elementn, ...}) ALIGNMENT = "ALEFT", "ACENTER", "ARIGHT" GAP = <NUM> MARGIN = "<NUM>x<NUM>" SIZE = <NUM> iup.zbox({element1..elementn, ...}) ALIGNMENT = "ALEFT", "ATOP", "ARIGHT", "ABOTTOM", "NW", "NE", "SW", "SE" ALL = "YES" or "NO" -- display all elements MARGIN = "<NUM>x<NUM>" VALUE = <ELEMENT> -- reference to the visible IUP Element SIZE iup.cbox({element1..elementn, ...}) REFRESH = "YES" CX = <NUM> -- children only CY = <NUM> -- children only iup.radio({element, ...}) VALUE = reference to active toggle iup.button({...}) BGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" FGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" IMAGE IMPRESS IMINACTIVE TITLE = <STRING> FONT = <NUM> SEGMENTED -- used? HOTKEY ACTION GETFOCUS_CB KILLFOCUS_CB ENTERWINDOW_CB LEAVEWINDOW_CB iup.canvas({...}) BGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" -- border color BORDER = "YES" or "NO" SCROLLBAR = "VERTICAL", "HORIZONTAL", "YES", "NO" (Default: "NO") SCROLLBARSIZE = <NUM> SIZE EXPAND LINEX = <NUM> -- 1? DX XMIN XMAX POSX DY YMIN YMAX POSY CANVASLINES MOUSECLICKSOUND XSTYLE = <NUM> -- 1? ACTION_CB BUTTON_CB -- return iup.DONOTSETCAPTURE ENTERWINDOW_CB -- triggers twice LEAVEWINDOW_CB -- triggers twice MOTION_CB SCROLL_CB iup.frame({element, ...}) BGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" SIZE BORDER = "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom -- sets the margin on the 4 sides IMAGE SEGMENTED = "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom -- value between 0 and 1 DRAWCENTER = "YES" or "NO" (Default: "YES") iup.label({...}) TITLE = <STRING> FONT = <NUM> BGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" FGCOLOR = "<R> <G> <B> [<A>] [*,+,&]" IMAGE ALIGNMENT = "ALEFT", "ACENTER", "ARIGHT" SIZE POINTSIZE = "YES" or "NO" WORDWRAP = "YES" or "NO" QUANTIZE = "YES" or "NO" SEGMENTED = "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom - value between 0 and 1 UV = "<NUM> <NUM> <NUM> <NUM>" -- left, top, right, bottom - value between 0 and 1 CENTERUV ACTIVE = "YES" or "NO" -- Does??? ENTERWINDOW_CB LEAVEWINDOW_CB iup.list "1" "2" "n" SIZE VALUE = <NUM> | <STRING> -- simple or dropdown list index of selected item | multiple-select string of successive "+" and "-" indicating which items are selected FONT = <NUM> MULTIPLE = "YES" or "NO" CONTROL = "YES" or "NO" DROPDOWN = "YES" or "NO" (Default: "NO") VISIBLE_ITEMS = <NUM> -- dropdown list only MARGINX MARGINY IMAGE BORDERCOLOR FOCUSEDBORDERCOLOR SELCOLOR UNFOCUSEDSELCOLOR ACTION GETFOCUS_CB -- when not dropdown and not multiple, each selection KILLFOCUS_CB -- when not dropdown and not multiple iup.multiline({...}) APPEND INSERT BORDER NC CARET READONLY SIZE WANTSLONGPRESS DONT_RECURSE MARGINX MARGINY ALIGNMENT = "ALEFT" or "ARIGHT" IMAGE BOXCOLOR ACTION CARET_CB -- on mouse click or before action GETFOCUS_CB KILLFOCUS_CB ENTERWINDOW_CB LEAVEWINDOW_CB iup.progressbar({...}) visible = "NO" active = "NO" title = "" expand = "NO", --"HORIZONTAL", size minvalue maxvalue lowertexture middleabovetexture middletexture middlebelowtexture uppertexture uppercolor lowercolor value = <NUM> uv = "0 0.25 1 0.75" MIDDLEABOVECOLOR MIDDLEBELOWCOLOR altvalue = <NUM> type="HORIZONTAL", mode = "TRINARY" -- other values or merely not using it? iup.text({...}) APPEND -- appends text to the end of the string INSERT -- inserts text at the caret position BORDER = "YES" or "NO" BORDERCOLOR BGCOLOR FGCOLOR NC = <NUM> FONT = <NUM> CARET = <NUM> ACTIVE = "YES" or "NO" READONLY = "YES" or "NO" SIZE PASSWORD = "YES" or "NO" VALUE = <STRING> WANTTAB = "YES" or "NO" DONT_RECURSE -- ??? POINTSIZE = "YES" or "NO" -- ??? BLENDMODE = "ALPHA" -- others? MOUSEOVERBOXCOLOR -- selected box color BOXCOLOR -- unselected box color MARGINX MARGINY NUMERICAL = "YES" or "NO" -- ??? IMAGE ACTION(self, char, after) GETFOCUS_CB KILLFOCUS_CB ENTERWINDOW_CB LEAVEWINDOW_CB iup.toggle({...}) (requires images to display value change) BGCOLOR -- Toggle color FGCOLOR -- Text color FONT IMAGE IMPRESS IMINACTIVE IMMOUSEOVER IMMARGIN = <NUM> IMCHECK = <IMAGE> IMCHECKINACTIVE = <IMAGE> VALUE = "ON" or "OFF" (Default: "OFF") TITLE SEGMENTED ACTION(self, state) -- state: 1 ("ON") or 0 ("OFF") GETFOCUS_CB KILLFOCUS_CB ENTERWINDOW_CB LEAVEWINDOW_CB iup.matrix iup.tree MARGINX MARGINY iup.navmap({...}) SIZE EXPAND SCROLLBAR CURRENTID CLICKEDID ["COLOR"..<NUM>] -- Sector ID LOADMAP SETPATH K_ANY CLICK_CB GETFOCUS_CB MOUSEOVER_CB iup.image iup.dialog({element, ...}) BORDER MAXBOX MINBOX RESIZE TITLE SIZE STARTFOCUS = reference DEFAULTENTER = reference DEFAULTESC = reference X Y SHRINK FULLSCREEN TOPMOST SHOW_CB MAP_CB CLOSE_CB iup.NextField iup.PreviousField iup.GetFocus iup.SetFocus