>Hi Andrey,
>
>My example works correctly. However, if toolbar is docked on the bottom, right or there are other toolbar between it and the rest of screen than shortcut menu position is incorrect.
>BTW, what your code is suppouse to do?
>
>>Privet, Sergey.
>>Your example does not work correctly.
>>Try dock toolbar in to the right side of a sreen and you see it.
>>
><snip>
UPDATE -
Please forget about it !!!
You rock Sergey !
I was forcing myself to use the sample from Andrey, when the one that you provided in the previous message solved my problem.
Sergey is my hero, heheheh
Hi Sergey,
Sorry for reviving such an old thread.
I've been using this technique with success for many years, taken from Sergey's blog - http://www.berezniker.com/content/pages/visual-foxpro/position-shortcut-menu-over-toolbar
It works fine, but now I have a problematic situation...
I have a TopLevel form, that calls a report.
The report window is obviously "InTopLevel" form, and the report window has the original report toolbar.
I've added a commandbutton to the original toolbar, that, when clicked, opens a context menu, giving the user some options.
The problem is that using Andreys technique, for this case, the menu is being sent to behind the toplevel form !!!
Is there a way to make it appear at the top ?
This is to be used in a free utility that I'm developing, published here:
http://weblogs.foxite.com/vfpimaging/archive/2010/02/08/10127.aspx
This works great when the forms that call the reports are "InScreen".
Has anyone got any idea how I could force the popup menu to the front of the window?
Thanks in advance
Cesar