When you click on the menu item… what are you expecting to happen?
You have to add an event to it, otherwise it has nothing to do, if it has nothing to do, it will never become enabled.
If OrderTextFiel.Text ="" then, the Item “Save” in the MeunuBar “File” should be not Enabled or not Viseble.
In oder case, OrderTextFiel.Text <>"", the Item “Save” should be viseble or Enabled.
Great… .now DO YOU or DO YOU not have a MENU HANDLER?
Have you or have you not read the LR about how to properly construct menus?
Hate to sound snippy, but we are both repeating ourselves, and getting no place.
You are indicating the condition that you wish to have it enabled or disabled,
I am asking if there is CONTENT to be enabled… if not, then nothing you can or will do will cause the menu item to be enabled
It must have ENABLED=true AND have a MENUHANDLER assigned
I have a MainMenuBar with the item “File” and the SubItem “Save”, also i have a Menu Handler with the Item “FileSave”.
In the Menu Handler “FileSave”, i have write the Code for preparing the Save order.
But i like it, to have only the possibility to save, if the OrderTextFiel.Text <>""
Thats means the Menu Item “Save” shuold be enabled or not.