RE: Vista+context menu

Author: Tracy Pearson

Posted: 2007-05-03 at 10:09:09

It gets more weird when a third level is added.

LOCAL nBar1, nBar2

STORE 0 TO nBar1, nBar2

DEFINE POPUP pop1 RELATIVE SHORTCUT

DEFINE BAR 1 OF pop1 PROMPT [test 1]

DEFINE BAR 2 OF pop1 PROMPT [test 2]

DEFINE BAR 3 OF pop1 PROMPT [pop 2]

DEFINE BAR 4 OF pop1 PROMPT [test 4]

ON SELECTION POPUP pop1 nBar1 = BAR()

ON BAR 3 OF pop1 activate popup pop2

DEFINE POPUP pop2 RELATIVE SHORTCUT

DEFINE BAR 1 OF pop2 PROMPT [This is long text to expand further out than

needed.]

ON SELECTION POPUP pop2 nBar2 = BAR()

DEFINE POPUP pop3 RELATIVE SHORTCUT

DEFINE BAR 1 OF pop3 PROMPT [test 1]

ON BAR 1 OF pop3 activate popup pop1

ACTIVATE POPUP pop3 AT MROW(), MCOL() BAR 1

*---- above code ends up looking something like this

| test 1 | test 1 >|

| test 2 |----------

| pop 2 >| | This is long text to expand further out than

needed. |

| test 4 |

--------------------------------------------------------

----------

Tracy

-----Original Message-----

From: Sietse Wijnker

Sent: Thursday, May 03, 2007 5:36 AM

Hi all,

I've got a client who reports problem with the contextmenu in a VFP

application on a Vista box.

The context-menu has a second popup that's shown when a specific item in the

context-menu is selected. The 2nd popup however is shown on the wrong side

of the parent-popup so only the border of the 2nd popup is visible. The rest

is rendered off-screen.

Anyone heard of this and maybe has a solution/workaround?

Sietse Wijnker

©2007 Tracy Pearson