Skip to content

Instantly share code, notes, and snippets.

@UweRaabe
Created January 27, 2020 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UweRaabe/8de8faa1d11c9689e5444c36e0c2ab25 to your computer and use it in GitHub Desktop.
Save UweRaabe/8de8faa1d11c9689e5444c36e0c2ab25 to your computer and use it in GitHub Desktop.
class helper for TBasicAction to access OnChange event
unit ActionHelper;
interface
type
TActionHelper = class helper for TBasicAction
private
function GetOnChange: TNotifyEvent;
procedure SetOnChange(const Value: TNotifyEvent);
public
property OnChange: TNotifyEvent read GetOnChange write SetOnChange;
end;
implementation
function TActionHelper.GetOnChange: TNotifyEvent;
begin
Result := inherited OnChange;
end;
procedure TActionHelper.SetOnChange(const Value: TNotifyEvent);
begin
inherited OnChange := Value;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment