CompuServe Thread

Forum unknown · Programming

M2 MouseClick returns

1 messages in this thread
#24034From: John MesiavechJun 24, 1986 3:38 AM
Am writing a program in M2 that needs to get a report when the left mouse button gets clicked. Have the IDCMPFlags set at {MenuEvent,MouseClick}, and need to know what kind of numbers will be given to me in the IntuiMessage that gets sent to the program upon mouse click. Is it the absolute coordinates in pixels in MouseX and MouseY, or does it relate to a possible using of GimmeZeroZero? Also, will the numbers be in straight integer or in fractional form? Also, if I have this: PROCEDURE CheckMouse (IMsg: IntuiMessage) : CARDINAL; (* some code here *) If IntuiMessage.Code:=MouseClick THEN MouseXCOrd:=IMsg.MouseX MouseYCord:=Imsg.MouseY; (* know I forgot a semicolon..oh well*) and have MouseXCord be the location of the mouse pointer's X cordinate in pixels, (same for MouseYCord) without further manipulation, or what kind of manipulation is needed?