Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Turning Toolbar Items off
Message
 
 
À
17/05/2002 17:32:58
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00658374
Message ID:
00667130
Vues:
18
Gary,

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).

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.

Thanks,
Mel Cummings

P.S. Your prior suggestion which works great for adding a new record was:
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,Find,List,Report,'
   * The statemanager is checking a navigational button state.
   * But wait, do we have a New record?
   if thisform.cmDataManager.IsNew('Catcode')
      * Yes we have a new record, so return False which will disable the "state".
      return .F. 
   endif

   * We have a changed record - so how do we turn selected toolbar items
   * off like we do when adding a new record?
   *  

endif

* If we are here, we haven't got a New record in the cursor.
return dodefault(cMethod, cWorkarea)

If we haven't created a new record, you simply pass the parameters to the default code to be treated as it would usually be.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform