mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:49:16 +02:00
decapitalize Constructor and Destructor
git-svn-id: trunk@14378 -
This commit is contained in:
parent
682a924368
commit
d409bf4ad2
@ -169,7 +169,7 @@ type
|
|||||||
procedure RunDialog; virtual;
|
procedure RunDialog; virtual;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
Destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
property DialogFiles : TStrings read FDialogFiles;
|
property DialogFiles : TStrings read FDialogFiles;
|
||||||
published
|
published
|
||||||
// TFileName properties.
|
// TFileName properties.
|
||||||
@ -248,7 +248,7 @@ type
|
|||||||
procedure RunDialog; virtual;
|
procedure RunDialog; virtual;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
Destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
published
|
published
|
||||||
// TDirectory properties.
|
// TDirectory properties.
|
||||||
property Directory : String read GetDirectory write SetDirectory;
|
property Directory : String read GetDirectory write SetDirectory;
|
||||||
@ -410,7 +410,7 @@ type
|
|||||||
procedure RunDialog; virtual;
|
procedure RunDialog; virtual;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
Destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
published
|
published
|
||||||
// CalcEdit properties
|
// CalcEdit properties
|
||||||
property CalculatorLayout : TCalculatorLayout read FLayout write Flayout;
|
property CalculatorLayout : TCalculatorLayout read FLayout write Flayout;
|
||||||
|
@ -13,20 +13,20 @@
|
|||||||
* *
|
* *
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
}
|
}
|
||||||
Constructor TBevel.Create(AOwner:TComponent);
|
constructor TBevel.Create(AOwner:TComponent);
|
||||||
Begin
|
begin
|
||||||
Inherited Create(AOwner);
|
Inherited Create(AOwner);
|
||||||
ControlStyle:=ControlStyle-[csSetCaption,csOpaque];
|
ControlStyle:=ControlStyle-[csSetCaption,csOpaque];
|
||||||
FStyle:=bsLowered;
|
FStyle:=bsLowered;
|
||||||
FShape:=bsBox;
|
FShape:=bsBox;
|
||||||
|
|
||||||
SetBounds(0,0,50,50);
|
SetBounds(0,0,50,50);
|
||||||
End;
|
end;
|
||||||
|
|
||||||
Destructor TBevel.Destroy;
|
destructor TBevel.Destroy;
|
||||||
Begin
|
begin
|
||||||
Inherited Destroy;
|
Inherited Destroy;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TBevel.Assign(Source: TPersistent);
|
procedure TBevel.Assign(Source: TPersistent);
|
||||||
begin
|
begin
|
||||||
@ -39,37 +39,37 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBevel.Invalidate;
|
procedure TBevel.Invalidate;
|
||||||
Begin
|
begin
|
||||||
if Canvas.HandleAllocated then Paint;
|
if Canvas.HandleAllocated then Paint;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
function TBevel.GetStyle:TBevelStyle;
|
function TBevel.GetStyle:TBevelStyle;
|
||||||
Begin
|
begin
|
||||||
Result:=FStyle;
|
Result:=FStyle;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TBevel.SetStyle(aStyle:TBevelStyle);
|
procedure TBevel.SetStyle(aStyle:TBevelStyle);
|
||||||
Begin
|
begin
|
||||||
If FStyle<>aStyle Then
|
If FStyle<>aStyle Then
|
||||||
Begin
|
begin
|
||||||
FStyle:=aStyle;
|
FStyle:=aStyle;
|
||||||
Invalidate;
|
Invalidate;
|
||||||
End;
|
end;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
function TBevel.GetShape:TBevelShape;
|
function TBevel.GetShape:TBevelShape;
|
||||||
Begin
|
begin
|
||||||
Result := FShape;
|
Result := FShape;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TBevel.SetShape(aShape:TBevelShape);
|
procedure TBevel.SetShape(aShape:TBevelShape);
|
||||||
Begin
|
begin
|
||||||
If FShape<>aShape Then
|
if FShape<>aShape then
|
||||||
Begin
|
begin
|
||||||
FShape:=aShape;
|
FShape:=aShape;
|
||||||
Invalidate;
|
Invalidate;
|
||||||
End;
|
end;
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TBevel.Paint;
|
procedure TBevel.Paint;
|
||||||
Var
|
Var
|
||||||
|
@ -409,7 +409,7 @@ begin
|
|||||||
PaintText(PaintRect);
|
PaintText(PaintRect);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Constructor TCheckbox.Create(AOwner: TComponent);
|
constructor TCheckbox.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
controlstyle := controlstyle - [csAcceptsControls];
|
controlstyle := controlstyle - [csAcceptsControls];
|
||||||
|
@ -208,7 +208,7 @@ begin
|
|||||||
LayoutDialog;
|
LayoutDialog;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Destructor TPromptDialog.Destroy;
|
destructor TPromptDialog.Destroy;
|
||||||
begin
|
begin
|
||||||
FBitmap.Free;
|
FBitmap.Free;
|
||||||
inherited destroy;
|
inherited destroy;
|
||||||
|
@ -49,7 +49,7 @@ end;
|
|||||||
|
|
||||||
Destructor for the class.
|
Destructor for the class.
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
Destructor TScreen.Destroy;
|
destructor TScreen.Destroy;
|
||||||
var
|
var
|
||||||
HandlerType: TScreenNotification;
|
HandlerType: TScreenNotification;
|
||||||
begin
|
begin
|
||||||
|
@ -37,10 +37,10 @@
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
Constructor TWin32ListStringList.Create(List : HWND; TheOwner: TWinControl);
|
constructor TWin32ListStringList.Create(List : HWND; TheOwner: TWinControl);
|
||||||
Begin
|
begin
|
||||||
Inherited Create;
|
inherited Create;
|
||||||
If List = HWND(Nil) Then
|
if List = HWND(nil) then
|
||||||
Raise Exception.Create('Unspecified list window');
|
Raise Exception.Create('Unspecified list window');
|
||||||
//Assert(False, 'Trace:Unspecified list window');
|
//Assert(False, 'Trace:Unspecified list window');
|
||||||
FWin32List := List;
|
FWin32List := List;
|
||||||
@ -50,7 +50,7 @@ Begin
|
|||||||
InitFlags;
|
InitFlags;
|
||||||
// Determine if the list is sorted
|
// Determine if the list is sorted
|
||||||
FSorted := (UINT(GetWindowLong(FWin32List, GWL_STYLE)) and FFlagSort <> 0);
|
FSorted := (UINT(GetWindowLong(FWin32List, GWL_STYLE)) and FFlagSort <> 0);
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TWin32ListStringList.InitFlags;
|
procedure TWin32ListStringList.InitFlags;
|
||||||
begin
|
begin
|
||||||
|
@ -64,10 +64,10 @@ end;
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
Constructor TWinCEListStringList.Create(List : HWND; TheOwner: TWinControl);
|
constructor TWinCEListStringList.Create(List : HWND; TheOwner: TWinControl);
|
||||||
Begin
|
begin
|
||||||
Inherited Create;
|
inherited Create;
|
||||||
If List = HWND(Nil) Then
|
if List = HWND(nil) then
|
||||||
Raise Exception.Create('Unspecified list window');
|
Raise Exception.Create('Unspecified list window');
|
||||||
//Assert(False, 'Trace:Unspecified list window');
|
//Assert(False, 'Trace:Unspecified list window');
|
||||||
FWinCEList := List;
|
FWinCEList := List;
|
||||||
@ -77,7 +77,7 @@ Begin
|
|||||||
InitFlags;
|
InitFlags;
|
||||||
// Determine if the list is sorted
|
// Determine if the list is sorted
|
||||||
FSorted := (UINT(GetWindowLong(FWinCEList, GWL_STYLE)) and FFlagSort <> 0);
|
FSorted := (UINT(GetWindowLong(FWinCEList, GWL_STYLE)) and FFlagSort <> 0);
|
||||||
End;
|
end;
|
||||||
|
|
||||||
procedure TWinCEListStringList.InitFlags;
|
procedure TWinCEListStringList.InitFlags;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user