I tried simply writing the OnUpdate handler but then the default handling is completely bypassed, which is not what I want. I'd like to keep the default handling with additional check for my special cases.
Something along these lines:
Code: Select all
procedure TSourceDocDesigner.rvActionInsertPageBreakUpdate(Sender: TObject);
begin
TAction(Sender).Enabled := GetDefaultEnabled(Sender) and MyCondition;
end;