Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Turning Toolbar Items off
Message
 
 
To
17/05/2002 17:32:58
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00658374
Message ID:
00658602
Views:
18
Gary,

Bingo! It worked like a charm - and I was able to disable the Find, List, etc. as well.

Again, thanks for the help.

How long you been using CodeMine?

Mel Cummings

>>You want to disable the navigational buttons when you have a new record. To give you a simple, untested example :-
form.IsEnabled(cMethod, cWorkarea)

if proper(m.cMethod) + "," $ 'Next,Last,Prior,First,'
   * The statemanager is checking a navigational button state.
   * But wait, do we have a New record?
   if thisform.cmDataManager.IsNew('CursorName')
      * Yes we have a new record, so return False which will disable the "state".
      return .F. 
   endif
endif

* If we are here, we haven't got a New record in the cursor.
return dodefault(cMethod, cWorkarea)<<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform