iup-stack/iup/srclua5/elem/dropbutton.lua

28 lines
700 B
Lua
Executable File

------------------------------------------------------------------------------
-- DropButton class
------------------------------------------------------------------------------
local ctrl = {
nick = "dropbutton",
parent = iup.WIDGET,
subdir = "elem",
creation = "I",
funcname = "DropButton",
callback = {
flat_action = "",
--flat_button_cb = "nnnns",
--flat_motion_cb = "nns",
--flat_enterwindow_cb = "",
--flat_leavewindow_cb = "",
--flat_focus_cb = "n",
dropdown_cb = "n",
dropshow_cb = "n",
}
}
function ctrl.createElement(class, param)
return iup.DropButton(param[0]) -- not a BOX
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")