-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTSLIDER.INC
42 lines (34 loc) · 887 Bytes
/
TSLIDER.INC
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
{ Copyright 2015 Jerome Shidel }
(*
This project and related files are subject to either the terms
specified in the included LICENSE.TXT file or the GNU GPLv2.0.
*)
{ ---TSlider --- }
{$IFDEF INTERFACE}
const
class_TSlider = 'TSlider';
type
PSlider = ^TSlider;
TSlider = object(TScrollBar)
public { protected }
function ObjectClass ( AName : String ) : String; virtual;
public
constructor Create(AParent : PControl; AName : String);
end;
{$ENDIF}
{$IFDEF IMPLEMENTATION}
function TSlider.ObjectClass(AName : String) : String;
begin
if (AName = '') or (AName = class_TSlider) then
ObjectClass := class_TSlider
else
ObjectClass := inherited ObjectClass(AName);
end;
constructor TSlider.Create;
begin
inherited Create(AParent, AName);
FEnds := False;
FEndOver := True;
FThumb := #$DB#$DB#$DB;
end;
{$ENDIF}