1. EUGrid and limiting Right Clicks
- Posted by Tony Steward <tony.steward at gmail.com> Oct 22, 2004
- 496 views
- Last edited Oct 23, 2004
Does anyone know how to prevent right click from selecting a cell whilst still trapping that event. Below i trap the right click to allow me to popup a menu but it also selected the grid cell the mouse is over. elsif msg=EGW_RIGHTBUTTONUP then -- Get position of mouse as at last click - returns {x,y} click_pos = EGW_GetGridProperty( self, EGW_MOUSE_CLICK_POSITION ) if integer(click_pos[1]) and integer(click_pos[2]) then popup( KeyGroupsMenu, click_pos[1], click_pos[2]+30 ) end if returnValue(1) end if -- Regards Tony Steward www.locksdownunder.com IF IT IS TO BE IT IS UP TO ME!
2. Re: EUGrid and limiting Right Clicks
- Posted by Phil Russell <pg_russell at lineone.net> Oct 23, 2004
- 505 views
Tony Steward wrote: > > Does anyone know how to prevent right click from selecting a cell > whilst still trapping that event. > > Hi Tony, I don't think you can at the moment as the cell change is processed before the EGW_RIGHTBUTTONDOWN message is sent. I'm working on a patch release at the moment relating to popup menus - I'll see if there is an easy way to fix this as part of it. Regards, Phil