Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu not refreshing
Message
From
16/09/1997 10:50:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Menu not refreshing
Miscellaneous
Thread ID:
00050197
Message ID:
00050197
Views:
69
I have a menu on a form (on the 'puter on my desk in a tiny little office on a great big world on a galaxy that we all call home. Yes, I've listened to too much Animaniacs. :) ). But seriously...

I have a menu on a form. It has options four options which I need to be conditionaly enabled/disabled. I've added 4 properties to the form, r_logCanRunTrial, r_logCanAdjust, r_logCanFinalize and r_logCanPrint. These are set to true or false appropriately. I have a global variable for my form, _objFrmMain. The menu items have Skip For set to "_objFrmMain.r_logCanRunTrial = .f.", etc...

The menu items appropriately function/stop functioning based on the setting of the properties. But they don't SHOW enabled/disabled properly. If an action on the form causes r_logCanRunTrial to get set from true to false, then when you go to the menu, the Run Trial option still looks enabled. As soon as you select it though, nothing happens (it realy was disabled) and when you go back to the menu, Run Trial looks diabled (no OTHER items which should be disabled look disabled, only the one you selected refreshed).

Any ideas? In the method that controls the settings of the 4 mentioned properties, I tried calling the menu's mpr again, just to see if that would refresh it. It doesn't.
-----
Lee Perkins
TigerBase Technologies

"Lee is one that would plug his brain into the internet, if he could, and STILL scream for more" - Very good friend of Lee's
Next
Reply
Map
View

Click here to load this message in the networking platform