Created
January 27, 2020 13:25
-
-
Save UweRaabe/8de8faa1d11c9689e5444c36e0c2ab25 to your computer and use it in GitHub Desktop.
class helper for TBasicAction to access OnChange event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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