News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Pages (2): « First < Previous 1 [2] Last »
Using callbacks to move objects on the screen
Author Message
Junior Member

Posts: 35
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #11
RE: Using callbacks to move objects on the screen

to know if the mouse is up or down:

but = fltk:Fl_Button(10,wh-30,80,22,"a button");
  message = "down"
  if (Fl:event() == 2) then message ="up" end


More information on FLTK Events. As the above shows, what is written in the fltk doc as Fl::event() is written Fl:event() in murgalua.

This post was last modified: 06-06-2007 12:34 AM by widged.

06-06-2007 12:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pages (2): « First < Previous 1 [2] Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: