PDA

View Full Version : onClickRelease event on formattedtextcontrol or genericcontrol



Xarxus
October 15th, 2022, 00:10
I have a formattedtextcontrol in a windowlist. It works fine, it shows the text formatted as I want.
The control is readonly.

Now I would need to intercept the click event (I think onClickRelease is fine). I tried a trivial script, with the sole purpose of writing something in the console, but it doesn't work. So I tried to put a genericcontrol over it and manage the onClickRelease on this one, but even so I can't intercept it.

There's a way?

Moon Wizard
October 15th, 2022, 00:17
If you want to capture the onClickRelease event, you must return true on the onClickDown event to let the application know you still want to capture the mouse click event. Otherwise, it falls through to the next UI object.

Regards,
JPG

Xarxus
October 15th, 2022, 13:09
That's what I needed, ty guy, as usual.