blob: ff9a43da144c79a4cae1193c2da0df653fd93f68 (
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
|
unit mainfrm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpg_base, fpg_form, fpg_toggle;
type
{ TfrmMain }
TfrmMain = class(TfpgForm)
private
FToggle: TfpgToggle;
public
constructor Create(AOwner: TComponent); override;
end;
implementation
{ TfrmMain }
constructor TfrmMain.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
WindowTitle:='Yay a toggle!';
SetWidth(300);
SetHeight(200);
FToggle := TfpgToggle.Create(Self);
FToggle.SetPosition(10, 10, 200, 20);
// FToggle.Width:=200;
//FToggle.ToggleSide:=tsLeft;
//FToggle.ToggleWidth:=100;
//FToggle.UseAnimation:=False;
end;
end.
|