"" . Plonk , "" . , ( , ), OnExecute . , "" . , .
? :
1. , , , , TPopupMenu.
2. , .
3. , "OnUpdate" - :
procedure TForm1.MyActionOnUpdate( ASender : TObject );
begin
With Sender as TAction do
Enabled := ItsPossibleToRunMyCode;
end;
This bit of code will enable and disable any control that uses this action without requiring anything.
source
share