View Single Post
Old 11-24-2019, 03:05 AM   #3
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 444
Default

Quote:
Originally Posted by Lokasenna View Post
- In future, it would be useful to clarify in the title and post that it's a question relating to my GUI.
Oooh,missed it, was to exited ;-) Fixed now!

Quote:
Code:
local function btn_click()
  GUI.Msg("Button was clicked")
end

//////////

GUI.New("Start_Cont_Button", "Button", 1, 168, 28, 96, 20, "Go!", btn_click)

Hmmm, ok, I am using this

Code:
 function GUI.elms.Start_Cont_Button:onmouseup()

  GUI.Button.onmouseup(self)

-- Lots of code
end
instead of assigning btn_click to GUI.New button. Maybe thats
the problem? Or Linux? ;-)

I am using GUI-builder and the output of code is a bit different
and I had various luck with assigning function to button with that.
It was a long long time ago I tried it, could have missed something
important...
__________________
ToDoList Obliques MusicMath Donation Mark4celeste Frid i ditt hjärta Eve & the Fisherman on Spotify
tompad is offline   Reply With Quote