procedure TForm1.Button1Click(Sender: TObject);
var
M: TMenu;
begin
M := Application.MainForm.Menu;
EnableMenuItem(M.Handle, M.Items[0].Command, MF_BYCOMMAND or MF_DISABLED);
end;
Here you can find some interesting and useful Delphi tips. I will be glad if you can share your knowledge with other people by posting comments and any other kind of useful information regarded to Delphi. Thank You!
No comments:
Post a Comment