I'm experimenting with a call-back function for a %gr region. Here is the first effort:
INTEGER FUNCTION GR_FN()
CHARACTER*(30) CBR
INCLUDE <WINDOWS.INS>
write (*,*) ' In GR_FN'
CBR = CLEARWIN_STRING@('CALLBACK_REASON')
write (*,*) CBR
IX = CLEARWIN_INFO@('GRAPHICS_MOUSE_X')
IY = CLEARWIN_INFO@('GRAPHICS_MOUSE_Y')
write(*,*) IX, IY
GR_FN = 1
END
I get a MOUSE_LEFT_CLICK both before and after a MOUSE_DOUBLE_CLICK - exactly as stated by the documentation. When I see the initial MOUSE_LEFT_CLICK, how do I determine if that was the user's intention, or is there a MOUSE_DOUBLE_CLICK in the offing? Is there anyone who can help with a snippet of code or an explanation of how they deal with this please?
Eddie