Re: ATTN Derek: EuGrid Sort Menu and win32lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:

> Did you read the docs for popup()? You can use it with an alternative
> reference point.
> 
> eg.   popup({myPopupMenu, theGrid}, x, y)
> 
> where 'x' and 'y' are relative to theGrid and not the top level window.
> 
> How are you getting the x/y values? 
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> 
Yes - I already tried passing {popup_id, grid_id} to popup(). Although it
improved the menu placement considerably, it seemed to be consistently out 
by approximately -10 (x-axis) and -5 (y-axis) pixels.  

I had a closer look just now and it seems that I only get the problem
when the grid is placed on a tab control. With a grid on a plain window
the placement is correct. I hadn't spotted it before because
my main test program is style.exw which has a number of grids on a 
multi-page tab window.

The x/y values I am using come from WM_RBUTTONDOWN, 
sent to the grid control.

Regards,

Phil

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu