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.
[color blue]
type
TNewButton = class(TButton)
private
public
end;
[color blue]
type
TNewButton = class(TButton)
private
fSingleClickCount: integer;
public
property SingleClickCount: integer
read fSingleClickCount
write fSingleClickCount;
end;
[color blue]
type
TNewButton = class(TButton)
private
fSingleClickCount: integer;
public
procedure Click; override;
property SingleClickCount: integer
read fSingleClickCount
write fSingleClickCount;
end;
[color blue]
procedure TNewButton.Click;
begin
inc ( fSingleClickCount );
inherited Click;
end;
[color blue]
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.
[color blue]
ShowMessage ( IntToStr(NewButton1.SingleClickCount) );