Detect a double click on a gui slider
Is it possible to detect a double click on a slider?
|
Please, benjamin. Enlighten me with your knowledge.
|
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.
|
What if I try to check if mouse is over a slider after doubleclick?
|
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) |
All times are GMT -7. The time now is 04:31 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC