Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Background image for popup menu
Message
De
12/06/2016 19:06:06
 
 
À
11/06/2016 19:40:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01637254
Message ID:
01637280
Vues:
74
the native vfp9 menu have in my knowledge one solution to add an image (real picture or resource Pictres)
on a popup menu.
can see "define bar command " in foxhelp.
this an example how to implement it (its a simple mpr file as contextuel menu)-run the selection below:
DEFINE POPUP raccourci SHORTCUT RELATIVE FROM MROW(),MCOL()
	DEFINE BAR _med_slcta OF raccourci PROMPT "Sélectionner tout" ;
	  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
	  	KEY CTRL+A, "Ctrl+A" ;
		PICTRES _med_slcta ;
		MESSAGE "Sélectionne tout le texte ou tous les éléments de la fenêtre active"		
	DEFINE BAR _med_paste OF raccourci PROMPT "Coller" ;
	FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+V, "Ctrl+V" ;
		PICTRES _med_paste ;
		MESSAGE "Place le contenu du Presse-papiers au point d'insertion"
	DEFINE BAR _med_copy OF raccourci PROMPT "Copier" ;
		  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+C, "Ctrl+C" ;
		PICTRES _med_copy ;
		MESSAGE "Copie la sélection et la place dans le Presse-papiers"
	DEFINE BAR _med_cut OF raccourci PROMPT "Couper" ;
		  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+X, "Ctrl+X" ;
		PICTRES _med_cut ;
		MESSAGE "Enlève la sélection et la place dans le Presse-papiers"
	DEFINE BAR _med_redo OF raccourci PROMPT "Rétablir" ;
		  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+R, "Ctrl+R" ;
		PICTRES _med_redo
	DEFINE BAR _med_undo OF raccourci PROMPT "Annuler" ;
		  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+Z, "Ctrl+Z" ;
		PICTRES _med_undo ;
		MESSAGE "Annule la dernière modification"		
	DEFINE BAR _med_undo OF raccourci PROMPT "Annuler" ;
		  FONT "Courier New", 8 style "BI"  COLOR G/W*, B/W*,,,,W+/GR ;
		KEY CTRL+Z, "Ctrl+Z" ;
		PICTURE  HOME(1)+"GRAPHICS\icons\MISC\FACe03.ico";
		MESSAGE "Annule la dernière modification"	
	
	ACTIVATE POPUP raccourci
out of native VFP solution there is many stuffs to do it as web menus,or containers as fixed menu...
can use containers with commandbuttons or commandgroup buttons(support text+images) or images+labels....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform