procedure TForm1.FormShow(Sender: TObject); var I:Integer; Hstr:string; SStr:string; begin for I:=0 to ActionList1.ActionCount -1do begin TAction(ActionList1.Actions[i]).Visible :=False; TAction(ActionList1.Actions[i]).Enabled :=False; end; Hstr :=','+ModuleData.MyPower+','; for I:=0 to ActionList1.ActionCount -1do begin SStr :=','+IntToStr(TAction(ActionList1.Actions[i]).Tag)+','; ifStrPos(PAnsiChar(Hstr),PAnsiChar(SStr)) <> nil then begin TAction(ActionList1.Actions[i]).Visible :=True; TAction(ActionList1.Actions[i]).Enabled :=True; end; end; end;