Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rightclick a empty grid
Message
From
09/04/2018 13:11:36
 
 
To
09/04/2018 10:47:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01659262
Message ID:
01659266
Views:
58
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform