Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Bars Library v.1.0 (Beta) Sample APP
Message
 
 
À
28/10/2004 17:18:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00951604
Message ID:
00961100
Vues:
5
Hi Alex

Here is what is happening...

If you click on a menu item with your mouse the underlying command /
procedure works fine.

But if you are using keyboard and pressed the Enter key - it seems to
pass the enter key to the underlying procedure / command - this thing
is causing a big problem.

Let me give an example how you can recreate the problem.

Create a menubar with CommandBar.
Add some menu items.
Now just add a messagebox with one of these menu item click procedure
with just an OK button on it.
Run the form with the menu.
While the form is running, click on the menu item (which has the
messagebox command in it)
Your messagebox shows up with the ok button.
Click ok on your messagebox ok button
Now use your keyboad and do not use mouse.
Select the menu, then highlight the menu item (which has the
messagebox command on it)
Now press enter.
The messagebox just splashes and goes away. Its because your menuitem
is sending back the enter key to the underlying messagebox.

How to get around this problem?

Regards

Faruk
Faruk Hosain
MBA (New York)
MCSD (C#), MCAD C(#), MCDBA (SQL 2000)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform