20 lines
451 B
Lua
20 lines
451 B
Lua
|
------------------------------------------------------------------------------
|
||
|
-- Toggle class
|
||
|
------------------------------------------------------------------------------
|
||
|
local ctrl = {
|
||
|
nick = "toggle",
|
||
|
parent = iup.WIDGET,
|
||
|
subdir = "elem",
|
||
|
creation = "S-",
|
||
|
callback = {
|
||
|
action = "n",
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function ctrl.createElement(class, param)
|
||
|
return iup.Toggle(param.title)
|
||
|
end
|
||
|
|
||
|
iup.RegisterWidget(ctrl)
|
||
|
iup.SetClass(ctrl, "iupWidget")
|