Page 1 of 1

how to detect mouse clicks into an editable field?

Posted: Thu Aug 14, 2008 3:40 pm
by rozek
Hello!

Please excuse this silly question: how do I detect double clicks into an editable(!) text field? The "MouseDoubleUp/Down" messages are only sent to locked (i.e. non-editable) fields.

But how do I detect them on editable fields? (I have to modify the standard selection behaviour of fields in case of double clicks)

Thanks in advance for any hint!

Posted: Thu Aug 14, 2008 5:04 pm
by Mark
Hi Rozek,

The selectionChanged message is always sent to an editable field when the user clicks in it, even if the selection isn't changed.

Personally, I would consider this a bug, but in your case it might be a feature.

Best,

Mark

Posted: Fri Aug 15, 2008 2:44 pm
by rozek
Hello Mark,

thanks for your response - I already feared that I would have to detect MouseClicks myself...

I wrote some code which is able to detect single mouse clicks within a field's text (but not outside it, e.g. beyond a given text line) and double clicks on blanks (but not - yet - printable text, where Revolution itself reacts on the double click)

Then I filed a bug report (#6905)

Now I am curious about the response from the staff at Revolution ;-)