I was wondering of anybody could help me.. I have a relative complicates flow-sheeting application that has GET_MOUSE_POSITION@() at the core to select/move edit graphics objects. currently the specific active function it terminated using the right mouse key press. I t has been request that the ESC key be used as an additional alternative. I have tried the key monitoring technique posted elsewhere on the forum without success. I have seen that clearwin_info@() is recommended as a replacement but it does not seem to have the functionality i'm looking for.
here is my current function. it anybody could provide an alternative with additional keyboard scanning functionality it would be appreciated
SUBROUTINE GET_MOUSE_POS_ORG(IX1, IY1, IRIGHTB_STAT, ILEFTB_STAT)
c ========================
IMPLICIT NONE
INCLUDE 'PARAM_ED.INC'
INTEGER IX1, IY1, IRIGHTB_STAT, ILEFTB_STAT
INTEGER*2 IH, IV, BUTTON_STATUS, ILEFTB, IRIGHTB, IBITZ, IBITZ2,
+ INTS
ILEFTB = INTS(1)
IRIGHTB = INTS(2)
IRIGHTB_STAT = BUTTON_OFF
ILEFTB_STAT = BUTTON_OFF
CALL GET_MOUSE_POSITION@(IH, IV, BUTTON_STATUS)
c IBITZ = INTS(AND(BUTTON_STATUS, IRIGHTB)) IBITZ = AND(BUTTON_STATUS, IRIGHTB) IF (IBITZ .NE. 0) THEN IRIGHTB_STAT = BUTTON_ON ENDIF
c IBITZ2 = INTS(AND(BUTTON_STATUS, ILEFTB)) IBITZ2 = AND(BUTTON_STATUS, ILEFTB) IF (IBITZ2 .NE. 0) THEN ILEFTB_STAT = BUTTON_ON ENDIF
IX1 = IH
IY1 = IV
END