Home > Back-end >  For help, only know menu controls TMuneItem Caption how to write a banned the TMuneItem method
For help, only know menu controls TMuneItem Caption how to write a banned the TMuneItem method

Time:10-08

For help, only know menu controls TMuneItem Caption method how to write a disabled the TMuneItem

(this is how change TMuneItem it Enabled)

CodePudding user response:

Depending on the type of caption and search a child controls

CodePudding user response:

With Finditem locate the caption item, and then set his enable properties

CodePudding user response:

 
Var I: Integer;
Beign
For I:=0 to PopupMenu1. Items. Count the do the begin
If PopupMenu1. Items [0]. Caption='test' then begin
PopupMenu1. Enabled:=False;
end;
end;
end;

CodePudding user response:

If PopupMenu1. Items [I]. Caption='test' then begin
Enabled PopupMenu1. Items [I]=False;
end;

CodePudding user response:

Upstairs all positive solutions
  • Related