---------------------------------------------------------------------------- -- Common return values ---------------------------------------------------------------------------- iup.ERROR = 1 iup.NOERROR = 0 iup.OPENED = -1 iup.INVALID = -1 iup.INVALID_ID = -10 ---------------------------------------------------------------------------- -- Callback return values ---------------------------------------------------------------------------- iup.IGNORE = -1 iup.DEFAULT = -2 iup.CLOSE = -3 iup.CONTINUE = -4 ---------------------------------------------------------------------------- -- IupPopup e IupShowXY ---------------------------------------------------------------------------- iup.CENTER = 65535 iup.LEFT = 65534 iup.RIGHT = 65533 iup.MOUSEPOS = 65532 iup.CURRENT = 65531 iup.CENTERPARENT = 65530 iup.LEFTPARENT = 65529 iup.RIGHTPARENT = 65528 iup.TOP = iup.LEFT iup.BOTTOM = iup.RIGHT iup.TOPPARENT = iup.LEFTPARENT iup.BOTTOMPARENT = iup.RIGHTPARENT ---------------------------------------------------------------------------- -- Scrollbar ---------------------------------------------------------------------------- iup.SBUP = 0 iup.SBDN = 1 iup.SBPGUP = 2 iup.SBPGDN = 3 iup.SBPOSV = 4 iup.SBDRAGV = 5 iup.SBLEFT = 6 iup.SBRIGHT = 7 iup.SBPGLEFT = 8 iup.SBPGRIGHT = 9 iup.SBPOSH = 10 iup.SBDRAGH = 11 ---------------------------------------------------------------------------- -- SHOW_CB ---------------------------------------------------------------------------- iup.SHOW = 0 iup.RESTORE = 1 iup.MINIMIZE = 2 iup.MAXIMIZE = 3 iup.HIDE = 4 ---------------------------------------------------------------------------- -- BUTTON_CB ---------------------------------------------------------------------------- iup.BUTTON1 = string.byte('1') iup.BUTTON2 = string.byte('2') iup.BUTTON3 = string.byte('3') iup.BUTTON4 = string.byte('4') iup.BUTTON5 = string.byte('5') ---------------------------------------------------------------------------- -- Record Input ---------------------------------------------------------------------------- iup.RECBINARY = 0 iup.RECTEXT = 1 ---------------------------------------------------------------------------- -- Pre-Defined Masks ---------------------------------------------------------------------------- iup.MASK_FLOAT = "[+/-]?(/d+/.?/d*|/./d+)" iup.MASK_UFLOAT = "(/d+/.?/d*|/./d+)" iup.MASK_EFLOAT = "[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?" iup.MASK_FLOATCOMMA = "[+/-]?(/d+/,?/d*|/,/d+)" iup.MASK_UFLOATCOMMA = "(/d+/,?/d*|/,/d+)" iup.MASK_INT = "[+/-]?/d+" iup.MASK_UINT = "/d+" ---------------------------------------------------------------------------- -- IupGetParam Callback situations ---------------------------------------------------------------------------- iup.GETPARAM_BUTTON1 = -1 iup.GETPARAM_INIT = -2 iup.GETPARAM_BUTTON2 = -3 iup.GETPARAM_BUTTON3 = -4 iup.GETPARAM_CLOSE = -5 iup.GETPARAM_MAP = -6 iup.GETPARAM_OK = iup.GETPARAM_BUTTON1 iup.GETPARAM_CANCEL = iup.GETPARAM_BUTTON2 iup.GETPARAM_HELP = iup.GETPARAM_BUTTON3