What is wrong with this? Suddenly my buttons dont run the functions
I told them to do. Not even msg!
Code:
GUI.New("btn_edit", "Button", {
z = 11,
x = 80,
y = 256,
w = 60,
h = 24,
caption = "Edit",
font = 3,
col_txt = "txt",
col_fill = "elm_frame",
func = fun_edit
})
function fun_edit ()
msg("Edit")
-- body...
local selected = GUI.Val("lst_tasks")
msg(selected)
shiftWindow()
str1 = items[selected][1]
GUI.Val("txtbox_caption_tasks", str1)
str2 = items[selected][2]
GUI.Val("txt_editor_tasks", str2)
end