Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut menu question
Message
 
À
27/06/2000 12:17:35
Steven Kleypas
Tarrant County College District
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00385180
Message ID:
00385721
Vues:
13
>In trying to build a shortcut menu class which has the standard Copy, Cut, Paste bars, what is the best way to indicate the command? By that I mean should these call the corresponding main menu bars, or execute the command directly?

I usually stick to calling the menu bars... "all roads with the same purpose should point to the same place" is my own rule of thumb.

>Also, Is this the correct way to call the system menu edit/copy bar?
>goApp.oMenu.oEditPad.oEditCopyBar.Click()

yes, if your using the MMF menu classes straight out of the box. If you've created your own Edit Pad/Popup the object ref between goApp.oMenu and .Click() will vary of course.

See the the Click() on cbar class in ctmenus.vcx to see how sysmenu stuff life edit/copy/paste are handled.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform