function TCommandEnabledController.GetCommandVisible(const ACommandName: string): Boolean; var I: Integer; //定义接口接收者 oCommandVisibleExecutor: ICommandVisibleExecutor; begin Result := True; do begin //判断接口是否支持 if Supports(FExecutors[I], ICommandVisibl