Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 - Copy/Paste invisible menu items
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00609559
Message ID:
00614682
Vues:
26
Hi,

I did install SP1 today. I'm using a programatically created menu.
The problem occurs in .exe as well as in development environment (not with
system menu).

The additional blank menu items occur in the main menu by selecting
text in an ordinary text box with the keyboard Shift-key. There
is no problem using the mouse.

To reproduce this behaviour I use a new form with a textbox (original classes),
enter some text, select the text with Shift and arrow keys. After
that moving the mouse to the main menu at the right hand side I got
two new empty menu items. Doing this again leads to additional 2 items
and so on.

The problem seems to be the use of a system menu item in my own menu:
_mwi_hide (Hide Window).


The reproduce this behaviour the following menu code can be used:

SET SYSMENU TO
SET SYSMENU AUTOMATIC

DEFINE PAD "M88" OF _MSYSMENU PROMPT "Window" COLOR SCHEME 3
ON PAD "M88" OF _MSYSMENU ACTIVATE POPUP "_MWINDOW"
DEFINE POPUP "_MWINDOW" MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR _mwi_hide OF _MWINDOW PROMPT "Hide"

Andreas








>>Hi,
>>
>>After switching our application to VFP7 (menus are recompiled) the
>>following weird thing happens. Using Copy/Paste from the edit menu or
>>Strg+C/V adds addtional menu items to the main menu. These items do
>>not have a text but they can be highlighted with the mouse. They can add up
>>leading to a second row in the main menu. After a while e.g. opening a
>>new form they vanish (maybe a command which resets these items). Any ideas? Thanks.
>>
>>Andreas
>
>Did you install Service Pack 1? Can you post some code that reporduces the problem?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform