OnMouseDown??

Hello everybody,

is it possible to attach an Mouselistener to Servoy-Buttons?

I have an Time-Picker with two Buttons for counting Up and Down and the Method for that should be fired, as long as the Button is clicked,
so I don´t have to click several times to set the desired Time.
Maybe there is a workaround with WebClientUtils and JQuery? I tried and failed.

Thanks a lot. Regards, Christof

Hi Christof,

Can you paste the code that you tried and didn’t work?
Should be similar to the first example from the webclient utils wiki Wiki - Web Client Utils - ServoyForge

function myCallback(val1){application.output(val1)}
//variable to be attached to a non-editable HTMLArea
var html = '<html><head><script> function triggerCallback() {' + plugins.WebClientUtils.addCallback(myCallback, ['"Dynamic callback"']) + '}</script></head><body><button type="button" onclick="triggerCallback()">Click me</button></body></html>'

I assume you did not move yet to Servoy 8. Please consider doing so, as with Servoy 8 you have the freedom to build your own web components in case the existing ones do not suit your needs.
See more at https://wiki.servoy.com/display/public/DOCS/WebComponents

Regards,
Edit