PDA

View Full Version : DoubleClick on Grid


Hans
09-22-2003, 06:24 AM
I'm trying to close my application when double-clicking (MSG-BEGIN-ENTRY) a grid but I don't succeed...
Does anyone encountered this problem, so yes .. what to do.
Txs

Hans
09-22-2003, 06:50 AM
I think I've found a solution, but I wonna know if this is the right approche ...

FORM1-GRID-EV-MSG-BEGIN-ENTRY.
MOVE EVENT-ACTION-FAIL-TERMINATE TO EVENT-ACTION.

FORM1-EX-OTHER.
IF KEY-STATUS = W-EVENT
AND EVENT-TYPE = MSG-BEGIN-ENTRY
SET EXIT-PUSHED TO TRUE.

Txs.

sgough
09-24-2003, 11:13 AM
Dear Hans.

I can confirm that you found a good solution in ending your application by double clicking within the GRID control, as the code that you have included above will terminate the screen ACCEPT cleanly by moving EVENT-ACTION-FAIL-TERMINATE to EVENT-ACTION, and the executes the exit paragraph if the Runtime has received a MSG-BEGIN-ENTRY event.