(this is how change TMuneItem it Enabled)
CodePudding user response:
Depending on the type of caption and search a child controlsCodePudding user response:
With Finditem locate the caption item, and then set his enable propertiesCodePudding 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 beginEnabled PopupMenu1. Items [I]=False;
end;
CodePudding user response:
Upstairs all positive solutions