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 
Snapshot build for 0.6.9 now available
Author Message
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
RE: Snapshot build for 0.6.9 now available

mikshaw Wrote:
Concerning Fl_Tree: What does state() represent? It seems to show 1 after a selection when the object is not already selected, 2 when the object is already selected, and 16 as if it were a very slow double-click.

Can 16 be reliably used to detect a double-click, say with the addition of a check to see if it's already 16 or forcing it to 2 if possible? Clicking multiple times continues to display 16, as long as you click within half a second or so.

I believe so ...

FL_TOGGLE_SELECT when you click on the item for the first time (1).
FL_TOGGLE_RESELECT is the (2).
FL_TOGGLE_HIT is for the double click (16) ...

I double check in a minute.

You can have a look at this, although it won't help you with this issue :

murgaLua/doc/fltk/Fl_ToggleTree.html#Fl_ToggleTree.state

Cheers
JohnM

09-15-2008 03:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: Snapshot build for 0.6.9 now available - JohnMurga - 09-15-2008 03:35 AM

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

Forum Jump: