Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
type
TNewButton = class(TButton)
private
public
end;
type
TNewButton = class(TButton)
private
fSingleClickCount: integer;
public
property SingleClickCount: integer
read fSingleClickCount
write fSingleClickCount;
end;
type
TNewButton = class(TButton)
private
fSingleClickCount: integer;
public
procedure Click; override;
property SingleClickCount: integer
read fSingleClickCount
write fSingleClickCount;
end;
procedure TNewButton.Click;
begin
inc ( fSingleClickCount );
inherited Click;
end;
unit uNewButton;
interface
uses StdCtrls, Classes;
type
TNewButton = class(TButton)
private
fSingleClickCount: integer;
public
procedure Click; override;
property SingleClickCount: integer
read fSingleClickCount
write fSingleClickCount;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TNewButton]);
end;
procedure TNewButton.Click;
begin
inc ( fSingleClickCount );
inherited Click;
end;
end.
ShowMessage ( IntToStr(NewButton1.SingleClickCount) );