Forms cannot distinguish between mouse-click and mouse-doublclick [message #687888] |
Wed, 12 July 2023 08:03 |
c2oncpr
Messages: 5 Registered: December 2011
|
Junior Member |
|
|
OS: SunOS 5.11
Forms Builder: V12.2.1.2.0
Database: 19.19.0.0.0
I have a non-database item on my block with when-mouse-click and when-mouse-doubleclick triggers. When I single-click the field, when-mouse-click fires, good. When I double-click the field, both triggers fire, bad. Why is when-mouse-click firing on double-click? Does anyone know what's going on here, or how to deal with this behavior?
|
|
|
Re: Forms cannot distinguish between mouse-click and mouse-doublclick [message #687892 is a reply to message #687888] |
Wed, 12 July 2023 16:06 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I don't have Forms available, and I never worked with a version newer than 9.0.4. The fact is: I can't remember I ever used those triggers and I can't offer any suggestion based on my own experience.
Googling around, I found this (http://vjcoracleapps.blogspot.com/2011/08/form-triggers.html) which looks like copy of official EBS Forms documentation. Nonetheless, this is what it says about WHEN-MOUSE-DOUBLECLICK:
Quote:
1.3.2.8 When-Mouse-DoubleClick
Fires after the operator double-clicks the mouse if one of the following events occurs:
- if attached to the form, when the mouse is double-clicked within any canvas-view or item in the form
- if attached to a block, when the mouse is double-clicked within any item in the block
- if attached to an item, when the mouse is double-clicked within the item
Six events must occur before a When-Mouse-DoubleClick trigger will fire:
- Mouse down
- Mouse up
- Mouse click --> HERE
- Mouse down
- Mouse up
- Mouse double-click
Any trigger that is associated with these events will fire before the When-Mouse-DoubleClick trigger fires.
So it seems that - if you have both WHEN-MOUSE-CLICK and WHEN-MOUSE-DOUBLECLICK - both will fire.
Also, this (https://forums.oracle.com/ords/apexds/post/forms-12-2-1-3-can-not-distinguish-between-mouse-click-and-5589) OTN Forums discussion talks about those two triggers, but related to a button (you said you're working with items). Michael Ferrante (from Oracle) talked to developers (who develop Oracle Forms) and they confirmed that MOUSE triggers shouldn't be used on buttons.
|
|
|
|