Consultor Eletrônico



Kbase 18613: ADM. Setting a Trigger on MOUSE-MENU-DBLCLICK
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

Setting a Trigger on MOUSE-MENU-DBLCLICK

GOAL:

How to set a Trigger on MOUSE-MENU-DBLCLICK?

FACT(s) (Environment):

Progress 8.x
Progress 9.x
OpenEdge 10

CAUSE:

Setting a trigger on MOUSE-MENU-DBLCLICK requires first circumventing the MOUSE-MENU-CLICK event with RETURN NO-APPLY.

FIX:

The following sample code demonstrates this:

DEF VAR A AS CHAR.
DEF VAR B AS CHAR.
DEF FRAME ABC A B WITH CENTERED ROW 2.

ON MOUSE-MENU-CLICK OF A IN FRAME ABC DO:
RETURN NO-APPLY. END.
ON MOUSE-MENU-DBLCLICK OF A IN FRAME ABC DO:
MESSAGE ' HERE' VIEW-AS ALERT-BOX. END.

ON MOUSE-MENU-DBLCLICK OF B IN FRAME ABC DO:
MESSAGE ' HERE' VIEW-AS ALERT-BOX. END.

ENABLE ALL WITH FRAME ABC.
WAIT-FOR GO OF FRAME ABC.