Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a new action
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
How to add a new action
Divers
Thread ID:
00977507
Message ID:
00977507
Vues:
85
I need to add a new option for my customer to "Save As" (it is actual going to a XML file) and have added the follow code into the appApplication CreateStates method:
This.oStateManager.DefineAction("Form SaveAs", "SaveXmlAs")
(I'm calling the form method "SaveXmlAs" because of the native "SaveAs")

I also add a line in the menu (see below) but when I run the app, the menu item is disabled. My question is how do I set the menu enabled value to .T.?
Command -->   m.goStateManager.Execute('Form Edit SaveAs')
SKIP FOR -->  EMPTY(m.goStateManager.GetValue('Form Edit SaveAs'))
I have also added this code to the CreateStates method but do not work either:
This.oStateManager.SetValue("Form SaveAs", .T.)
Thanks, John
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform