------------------------------------------------------------------------------ -- Scintilla class ------------------------------------------------------------------------------ local ctrl = { nick = "scintilla", parent = iup.WIDGET, creation = "", subdir = "ctrl", callback = { dwell_cb = "nnnn", savepoint_cb = "n", -- valuechanged_cb = "", -- caret_cb = "nnn", marginclick_cb = "nns", hotspotclick_cb = "nnns", -- button_cb = "nnnns", -- motion_cb = "nns", action = "nnns", insertcheck_cb = "nns", autocselection_cb = "ns", autoccancelled_cb = "", autocchardeleted_cb = "", updatecontent_cb = "", updateselection_cb = "", updatevscroll_cb = "", updatehscroll_cb = "", lineschanged_cb = "ii", zoom_cb = "n", }, include = "iup_scintilla.h", extracode = [[ int iupscintilladlglua_open(lua_State * L); int iup_scintillalua_open(lua_State* L) { if (iuplua_opencall_internal(L)) IupScintillaOpen(); iuplua_get_env(L); iupscintillalua_open(L); iupscintilladlglua_open(L); return 0; } /* obligatory to use require"iuplua_scintilla" */ int luaopen_iuplua_scintilla(lua_State* L) { return iup_scintillalua_open(L); } ]] } function ctrl.createElement(class, param) return iup.Scintilla() end iup.RegisterWidget(ctrl) iup.SetClass(ctrl, "iupWidget")