Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rightclick a empty grid
Message
De
09/04/2018 13:11:36
 
 
À
09/04/2018 10:47:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01659262
Message ID:
01659266
Vues:
57
Hi
before the procedure where you contextmenu is fired (i suppose on rightclick somewhere) can prevent the menu to appear by this code
	    Wait Window Reccount(Thisform.grid1.RecordSource)  Nowait  &&for visual only
	    If Reccount(Thisform.grid1.RecordSource)=0
	      Messagebox("Grid empty..... rightclick blocked!",0+32+4096,1200)  &&for visual only
	      Return .F.
	    Endi
*...follow your contextuel menu
if the recordsource have no record the menu is not fired.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform