Re: w32lib - cannot use right mouse button
- Posted by martin.stachon at worldonline.cz May 20, 2001
- 413 views
Hi Derek, I just want standart windows menu for cut,copy,paste etc. like I dont want to do capture right mouse button events i think it should be passed automatically to Windows by win32lib like it was in win32lib v0.50C Martin ----- Original Message ----- From: Derek Parnell <ddparnell at bigpond.com> Subject: Re: w32lib - cannot use right mouse button > > Hi Martin, > you should be getting WM_RBUTTONDOWN events. These are working okay for me. > I've fixed it so that the WM_RBUTTONUP and WM_RBUTTONDBLCLK events are also > passed through in the next version. > > The mouse move and left button stuff is required by the edit controls for > highlighting etc. > > What are you trying to do with the right button events? Do you want to cause > a pop-menu to occur? > > --------------- > procedure MouseRtn(integer event, integer x, integer y, integer shift) > sequence xy > > -- wait for right button down events > if event = WM_RBUTTONDOWN then > -- Get the location of the edit box > xy = getRect(getSelf()) > -- show the popup menu at the point where the button was pressed > popup(MyPopup, x + xy[1], y + xy[2]) > end if > end procedure > onMouse[MyEdit] = routine_id("MouseRtn") > ----------------- > > ----- > Derek Parnell > Melbourne, Australia > "To finish a job quickly, go slower." > > ----- Original Message ----- > From: martin.stachon at worldonline.cz > To: EUforum > Sent: Wednesday, May 16, 2001 10:48 PM > Subject: w32lib - cannot use right mouse button > > > Hi, > under win32lib v0.55.1 i cannot use right mouse button id editboxes, mles > etc. for cut,copy,paste etc. > (it worked under v0.50C) > The context key on a keyboard works. > > I think the problem is somewhere in mouse event handling. > > > > > >