WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-07-2010, 04:48 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Detect a double click on a gui slider

Is it possible to detect a double click on a slider?
Reply With Quote
  #2  
Old 11-07-2010, 06:10 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Please, benjamin. Enlighten me with your knowledge.
Reply With Quote
  #3  
Old 11-08-2010, 03:49 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
A silder event is only generated when the slider changes position. If you doubleclick on the same spot no event will be generated for the second click so you can't tell it occurred.
Reply With Quote
  #4  
Old 11-09-2010, 02:19 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
What if I try to check if mouse is over a slider after doubleclick?
Reply With Quote
  #5  
Old 11-09-2010, 02:23 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
This is how I solved my problem:


def onDoubleClick(e):
if e.button == viz.MOUSEBUTTON_LEFT: print 'Left button double clicked'
print Gui["YRBox_Speed"].dragging()

viz.callback(viz.DOUBLE_CLICK_EVENT,onDoubleClick)
#viz.callback(viz.SLIDER_EVENT,onSlider)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 11:22 AM
help with slider code yak Vizard 2 07-20-2009 12:12 PM
Vizmenu slider bug? Gladsomebeast Vizard 2 10-22-2008 08:05 PM
Blending/Fading 5 Textures with a Slider south_bank Vizard 2 05-15-2008 07:59 AM
On click Sound Play Problems Robbos Vizard 1 02-28-2008 02:02 PM


All times are GMT -7. The time now is 12:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC