Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MENUS... again! ENABLE/DISABLE ????

Status
Not open for further replies.

DJVisuaL

Programmer
May 31, 2000
52
US
I defined a menu in my form's init method and it loads fine but how come VFP doesnt initualize the ENABLE/DISABLE of the menu items? BAR defined as....

...
DEFINE BAR 2 OF cd PROMPT "Delete Marked..." ;
KEY ALT+D, "ALT+D";
SKIP FOR .T.

....
the menu shows.... I goto the menu and "Delete Marked..." is not disabled!
if I click it.. THEN it becomes disabled...
kind of lame IMHO
anybody know anyway to fix this?
thanks
DJ [sig][/sig]
 
DJ

Quick fix, but not the right answer.

DO menuname.mpr again when appropriate.

This will effectively refresh the menu.

Chris

[sig][/sig]
 
I don't know if this is the right way or not, but I'm in the habit of using _screen.refresh after I generate my menus. [sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top