aboutsummaryrefslogtreecommitdiff
path: root/Source/fsspeedbutton.pas
blob: d680a19de649f5150737a1be932e0b222640e956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
unit fsspeedbutton;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Buttons;

type
  TFSSpeedButton = class(TSpeedButton)
  private
    { Private declarations }
    procedure MyOnClick(Sender: TObject);
  protected
    { Protected declarations }
  public
    { Public declarations }
    Receivename: String;
    constructor Create(AOwner: TComponent); override;
  published
    { Published declarations }
  end;

procedure Register;

implementation

uses
  mainunit;

procedure Register;
begin
end;

{ TFSSpeedButton }

constructor TFSSpeedButton.Create(AOwner: TComponent);
begin
  inherited;
  OnClick := MyOnClick;
end;

procedure TFSSpeedButton.MyOnClick(Sender: TObject);
begin
  main.SendReturnValues(Receivename+'=1');
end;

end.