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 
FL_PUSH on arbitrary area
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
Question  FL_PUSH on arbitrary area

Is it possible to detect FL_PUSH when it isn't done on a button widget?
I've been trying to place points according to mouse clicks on a given region, but Fl:event() aways returns 0 because the region isn't a button. I can test for FL_NO_EVENT and use that, but it is not very reliable because FL_NO_EVENT returns true for both a mouse press and release, and it may return true from other unwanted events.

It doesn't seem logical for Fl:event() to check for a particular type of widget. It seems to me that it _should_ work whenever you click a mouse button, regardless of where the mouse is.

Fl:event_button() and similar didn't work either, since they seem to rely on a test for FL_PUSH

09-03-2007 10:36 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
FL_PUSH on arbitrary area - mikshaw - 09-03-2007 10:36 AM
RE: FL_PUSH on arbitrary area - iGame3D - 09-05-2007, 03:03 AM
RE: FL_PUSH on arbitrary area - mikshaw - 09-05-2007, 06:38 AM
RE: FL_PUSH on arbitrary area - JohnMurga - 09-05-2007, 08:43 AM

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

Forum Jump: