1. EUGrid and limiting Right Clicks

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!

new topic     » topic index » view message » categorize

2. Re: EUGrid and limiting Right Clicks

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu