pravin Posted September 16, 2011 Report Share Posted September 16, 2011 Hi all, I dont know how to get double double click event on empty front panel by using event structure. so please help. Quote Link to comment
mje Posted September 16, 2011 Report Share Posted September 16, 2011 LabVIEW has no notion of a click, let alone a double click. In the past I've handled this with a combination of mouse down/up events. Mouse down records a timestamp and location. Mouse up then checks to see if the location is the same (possibly allowing for some drift) and if it's within a threshold time, registers a click. For a double click, you'd have to add just do this twice. Yes, I know it's hard to believe that in 2011, LabVIEW still has no idea what a "click" is. Quote Link to comment
Popular Post Ton Plomp Posted September 16, 2011 Popular Post Report Share Posted September 16, 2011 One of the flags (mods) of the Mouse Down event is 'Double Click': Ton 4 Quote Link to comment
mje Posted September 16, 2011 Report Share Posted September 16, 2011 What? Who? But.. Not sure what to say. Part of me is so happy the ability is there. Part of me is annoyed that after over a decade of programming LabVIEW GUIs I never stumbled across that little subtlety. I...just... Thank you for pointing that out! Quote Link to comment
Saverio Posted September 16, 2011 Report Share Posted September 16, 2011 What? Who? But.. Not sure what to say. Part of me is so happy the ability is there. Part of me is annoyed that after over a decade of programming LabVIEW GUIs I never stumbled across that little subtlety. I...just... Thank you for pointing that out! If I had a quarter for every little subtlety like this that I've missed over the years then I wouldn't have to worry about my retirement anymore. Quote Link to comment
Val Brown Posted January 12, 2013 Report Share Posted January 12, 2013 I'm not able to capture this as Double Click. Instead I register a single Left Click, no matter how quickly the double click is done. Does anyone have a working example of this actually working? Quote Link to comment
hooovahh Posted January 14, 2013 Report Share Posted January 14, 2013 I'm not able to capture this as Double Click. Instead I register a single Left Click, no matter how quickly the double click is done. Does anyone have a working example of this actually working? The example code posted by Ton works just fine. After adding it to a VI you will need to re-link the event to the pane but both the "Mouse Down?" and "Mouse Down" work just fine for stopping the VI only after a double click. Quote Link to comment
Yair Posted January 14, 2013 Report Share Posted January 14, 2013 There will always be a single click first. With a double click you will get two events - one for the first click and one for the second. If you want to ignore the first one, use the Double Click terminal to discard the event if it's false. Quote Link to comment
Val Brown Posted January 14, 2013 Report Share Posted January 14, 2013 OK, thanks. I'll give that a try. Quote Link to comment
Minh Pham Posted February 1, 2013 Report Share Posted February 1, 2013 This VI shows you all the related event(s) and properties when a single/double mouse clicked (either left or right button). The file is in LV2012 format MouseClick.vi Quote Link to comment
Stobber Posted February 12, 2013 Report Share Posted February 12, 2013 Minh, do you mind back-saving that to 2011? Quote Link to comment
Minh Pham Posted February 12, 2013 Report Share Posted February 12, 2013 I saved this as 2010 as attached This is nothing special Stobber MouseClick.vi Quote Link to comment
Stobber Posted February 12, 2013 Report Share Posted February 12, 2013 Ah, I thought you'd gone through the trouble of registering for and reporting all the events possible for lots of situations. I've done it a few times before when planning out a UI design for specific cases; I thought I might be able to snag a general-purpose tool. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.