Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Turning Toolbar Items off
Message
From
11/06/2002 18:55:30
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00658374
Message ID:
00667136
Views:
23
Hi Mel:

>I just noticed that I also need to turn selected toolbar items off when a record is being changed (just like when a new record is being added).

OK.

>I would appreciate any hints on how/where to do this with CodeMine 7. I am having difficulty using isChanged(), isRecordChanged(), etc. and where it goes in this situation. I attempted to check for this in the following commented code with no success.

If you are trying to disable standard toolbar buttons, the form.IsEnabled method is still an OK place to do this, just as it is when you add a new record. If you want to do this when a record is in a "changed" state, the simplest way to determine this state is to test for "Thisform.lChanged" (being True). The instant a change is made to form bound data, the form's lChanged property is set True. This property is dynamically added in the form's load event so, you will not see it if you look in the form's property sheet at design time.

HTH
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform