I've tried the code below under Vista with VFP9 SP2 CPT, but the problem is still there; so I think it's necessary to submit the bug to Microsoft, otherwise the use of shortcut menus with Vista will be no more possibile.
I'm asking where to submit the bug to MS.
TIA
Bruno
>FYI - I have vista ultimate and I get the same result as you. I don't have an answer for you. Maybe you can ask Calvin Hsia. Here is the URL for his blog
>
>
http://blogs.msdn.com/calvin_hsia/>
>
>
>>I duplicate this thread - previously inserted into section Menu&MenuDesigner with no answer - into this section, which seems more suitable.
>>
>>Please try this code
>>
>>DEFINE POPUP _popShortcutMenu ;
>> FROM MROW(),MCOL() ;
>> MARGIN ;
>> RELATIVE ;
>> SHORTCUT
>>
>>DEFINE POPUP _SubMenu ;
>> SHORTCUT RELATIVE
>>
>>
>>DEFINE BAR 1 OF _popShortcutMenu PROMPT "Item 1"
>>DEFINE BAR 2 OF _popShortcutMenu PROMPT "Item 2 With sub"
>>DEFINE BAR 3 OF _popShortcutMenu PROMPT "Item 3"
>>
>>ON BAR 2 OF _popShortcutMenu ACTIVATE Popup _SubMenu
>>
>>Define Bar 1 Of _SubMenu Prompt "SubMenu 1"
>>Define Bar 2 Of _SubMenu Prompt "SubMenu 2"
>>
>>
>>ACTIVATE POPUP _popShortcutMenu
>>
>>
>>*RELEASE POPUP _popShortcutMenu
>>*RELEASE POPUP _SubMenu
>>
>>
>>
>>WinXP shows correctly the submenu at the right side of the bar "Item 2 With sub".
>>
>>Try the same code with Win Vista with Aero interface.
>>
>>The submenu is always shown at the LEFT SIDE of the bar (which is ugly), and, if the shortcut menu is activated near the left side of the monitor, it becomes unusable, since the user can't read the submenu itself.
>>
>>Any workaround?
>>
>>TIA.
>>Bruno