summaryrefslogtreecommitdiff
path: root/iup/srclua5/text.lua
blob: 5064e07bebefa358d2d09f7271cade063233865e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
------------------------------------------------------------------------------
-- Text class 
------------------------------------------------------------------------------
local ctrl = {
  nick = "text",
  parent = iup.WIDGET,
  creation = "-", 
  callback = {
    action = "ns",
    caret_cb = "nnn", 
    valuechanged_cb = "",  -- used by many other controls
  }
}

function ctrl.createElement(class, param)
   return iup.Text()
end

iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iup widget")