View Single Post
Old 08-09-2018, 03:13 AM   #258
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
Default

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
__________________
ToDoList Obliques MusicMath Donation Some of mine and my friends music projects on Spotify
tompad is offline   Reply With Quote