40 lines
893 B
Lua
40 lines
893 B
Lua
|
------------------------------------------------------------------------------
|
||
|
-- ScintillaDlg class
|
||
|
------------------------------------------------------------------------------
|
||
|
local ctrl = {
|
||
|
nick = "scintilladlg",
|
||
|
parent = iup.WIDGET,
|
||
|
subdir = "ctrl",
|
||
|
creation = "",
|
||
|
callback = {
|
||
|
markerchanged_cb = "inn",
|
||
|
exit_cb = "",
|
||
|
savemarkers_cb = "i",
|
||
|
restoremarkers_cb = "i",
|
||
|
newtext_cb = "i",
|
||
|
closetext_cb = "i",
|
||
|
newfilename_cb = "ss",
|
||
|
loadfile_cb = "i",
|
||
|
savefile_cb = "i",
|
||
|
configsave_cb = "i",
|
||
|
configload_cb = "i",
|
||
|
},
|
||
|
include = "iup_scintilla.h",
|
||
|
funcname = "ScintillaDlg",
|
||
|
}
|
||
|
|
||
|
function ctrl.showxy(ih, x, y)
|
||
|
return iup.ShowXY(ih, x, y)
|
||
|
end
|
||
|
|
||
|
function ctrl.popup(ih, x, y)
|
||
|
iup.Popup(ih,x,y)
|
||
|
end
|
||
|
|
||
|
function ctrl.createElement(class, param)
|
||
|
return iup.ScintillaDlg()
|
||
|
end
|
||
|
|
||
|
iup.RegisterWidget(ctrl)
|
||
|
iup.SetClass(ctrl, "iupWidget")
|