Re: ATTN Derek: EuGrid Sort Menu and win32lib
- Posted by Phil Russell <pg_russell at lineone.net> Oct 17, 2004
- 521 views
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