mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 10:16:04 +02:00
fixed a few fpc 2.1.1 incompatibilities
git-svn-id: trunk@9716 -
This commit is contained in:
parent
08e038ba3c
commit
7bb113cec8
@ -144,15 +144,6 @@ type
|
|||||||
LastErrorBehindIgnorePosition: boolean;
|
LastErrorBehindIgnorePosition: boolean;
|
||||||
LastErrorCheckedForIgnored: boolean;
|
LastErrorCheckedForIgnored: boolean;
|
||||||
CurrentPhase: integer;
|
CurrentPhase: integer;
|
||||||
procedure RaiseExceptionInstance(TheException: ECodeToolError); virtual;
|
|
||||||
procedure RaiseExceptionClass(const AMessage: string;
|
|
||||||
ExceptionClass: ECodeToolErrors); virtual;
|
|
||||||
procedure RaiseException(const AMessage: string); virtual;
|
|
||||||
procedure RaiseExceptionFmt(const AMessage: string;
|
|
||||||
const args : array of const);
|
|
||||||
procedure SaveRaiseException(const AMessage: string); virtual;
|
|
||||||
procedure SaveRaiseExceptionFmt(const AMessage: string;
|
|
||||||
const args : array of const);
|
|
||||||
procedure ClearLastError;
|
procedure ClearLastError;
|
||||||
procedure RaiseLastError;
|
procedure RaiseLastError;
|
||||||
procedure DoProgress;
|
procedure DoProgress;
|
||||||
@ -288,6 +279,15 @@ type
|
|||||||
read FOnSetGlobalWriteLock write FOnSetGlobalWriteLock;
|
read FOnSetGlobalWriteLock write FOnSetGlobalWriteLock;
|
||||||
|
|
||||||
// error handling
|
// error handling
|
||||||
|
procedure RaiseExceptionInstance(TheException: ECodeToolError); virtual;
|
||||||
|
procedure RaiseExceptionClass(const AMessage: string;
|
||||||
|
ExceptionClass: ECodeToolErrors); virtual;
|
||||||
|
procedure RaiseException(const AMessage: string); virtual;
|
||||||
|
procedure RaiseExceptionFmt(const AMessage: string;
|
||||||
|
const args : array of const);
|
||||||
|
procedure SaveRaiseException(const AMessage: string); virtual;
|
||||||
|
procedure SaveRaiseExceptionFmt(const AMessage: string;
|
||||||
|
const args : array of const);
|
||||||
property IgnoreErrorAfter: TCodePosition
|
property IgnoreErrorAfter: TCodePosition
|
||||||
read FIgnoreErrorAfter write SetIgnoreErrorAfter;
|
read FIgnoreErrorAfter write SetIgnoreErrorAfter;
|
||||||
procedure ClearIgnoreErrorAfter;
|
procedure ClearIgnoreErrorAfter;
|
||||||
|
@ -591,7 +591,6 @@ type
|
|||||||
BinaryOperator: TAtomPosition;
|
BinaryOperator: TAtomPosition;
|
||||||
Params: TFindDeclarationParams): TExpressionType;
|
Params: TFindDeclarationParams): TExpressionType;
|
||||||
function GetParameterNode(Node: TCodeTreeNode): TCodeTreeNode;
|
function GetParameterNode(Node: TCodeTreeNode): TCodeTreeNode;
|
||||||
function GetFirstParameterNode(Node: TCodeTreeNode): TCodeTreeNode;
|
|
||||||
function GetExpressionTypeOfTypeIdentifier(
|
function GetExpressionTypeOfTypeIdentifier(
|
||||||
Params: TFindDeclarationParams): TExpressionType;
|
Params: TFindDeclarationParams): TExpressionType;
|
||||||
function FindTermTypeAsString(TermAtom: TAtomPosition;
|
function FindTermTypeAsString(TermAtom: TAtomPosition;
|
||||||
@ -605,11 +604,8 @@ type
|
|||||||
ContextNode: TCodeTreeNode; Params: TFindDeclarationParams): boolean;
|
ContextNode: TCodeTreeNode; Params: TFindDeclarationParams): boolean;
|
||||||
function FindContextNodeAtCursor(
|
function FindContextNodeAtCursor(
|
||||||
Params: TFindDeclarationParams): TFindContext;
|
Params: TFindDeclarationParams): TFindContext;
|
||||||
function FindIdentifierInContext(Params: TFindDeclarationParams): boolean;
|
|
||||||
function FindClassOfMethod(ProcNode: TCodeTreeNode;
|
function FindClassOfMethod(ProcNode: TCodeTreeNode;
|
||||||
Params: TFindDeclarationParams; FindClassContext: boolean): boolean;
|
Params: TFindDeclarationParams; FindClassContext: boolean): boolean;
|
||||||
function FindAncestorOfClass(ClassNode: TCodeTreeNode;
|
|
||||||
Params: TFindDeclarationParams; FindClassContext: boolean): boolean;
|
|
||||||
function FindForwardIdentifier(Params: TFindDeclarationParams;
|
function FindForwardIdentifier(Params: TFindDeclarationParams;
|
||||||
var IsForward: boolean): boolean;
|
var IsForward: boolean): boolean;
|
||||||
function FindExpressionResultType(Params: TFindDeclarationParams;
|
function FindExpressionResultType(Params: TFindDeclarationParams;
|
||||||
@ -631,11 +627,6 @@ type
|
|||||||
SourceExprParamList: TExprTypeList; IgnoreMissingParameters: boolean;
|
SourceExprParamList: TExprTypeList; IgnoreMissingParameters: boolean;
|
||||||
Params: TFindDeclarationParams;
|
Params: TFindDeclarationParams;
|
||||||
CompatibilityList: TTypeCompatibilityList): TTypeCompatibility;
|
CompatibilityList: TTypeCompatibilityList): TTypeCompatibility;
|
||||||
function IsParamNodeListCompatibleToExprList(
|
|
||||||
TargetExprParamList: TExprTypeList;
|
|
||||||
FirstSourceParameterNode: TCodeTreeNode;
|
|
||||||
Params: TFindDeclarationParams;
|
|
||||||
CompatibilityList: TTypeCompatibilityList): TTypeCompatibility;
|
|
||||||
function IsParamNodeListCompatibleToParamNodeList(FirstTargetParameterNode,
|
function IsParamNodeListCompatibleToParamNodeList(FirstTargetParameterNode,
|
||||||
FirstSourceParameterNode: TCodeTreeNode;
|
FirstSourceParameterNode: TCodeTreeNode;
|
||||||
Params: TFindDeclarationParams;
|
Params: TFindDeclarationParams;
|
||||||
@ -657,8 +648,6 @@ type
|
|||||||
function CheckParameterSyntax(CursorNode: TCodeTreeNode;
|
function CheckParameterSyntax(CursorNode: TCodeTreeNode;
|
||||||
CleanCursorPos: integer; out ParameterAtom, ProcNameAtom: TAtomPosition;
|
CleanCursorPos: integer; out ParameterAtom, ProcNameAtom: TAtomPosition;
|
||||||
out ParameterIndex: integer): boolean;
|
out ParameterIndex: integer): boolean;
|
||||||
function FindNthParameterNode(Node: TCodeTreeNode;
|
|
||||||
ParameterIndex: integer): TCodeTreeNode;
|
|
||||||
protected
|
protected
|
||||||
function OpenCodeToolForUnit(UnitNameAtom, UnitInFileAtom: TAtomPosition;
|
function OpenCodeToolForUnit(UnitNameAtom, UnitInFileAtom: TAtomPosition;
|
||||||
ExceptionOnNotFound: boolean): TFindDeclarationTool;
|
ExceptionOnNotFound: boolean): TFindDeclarationTool;
|
||||||
@ -714,6 +703,18 @@ type
|
|||||||
function CleanPosIsDeclarationIdentifier(CleanPos: integer;
|
function CleanPosIsDeclarationIdentifier(CleanPos: integer;
|
||||||
Node: TCodeTreeNode): boolean;
|
Node: TCodeTreeNode): boolean;
|
||||||
|
|
||||||
|
function FindIdentifierInContext(Params: TFindDeclarationParams): boolean;
|
||||||
|
function FindAncestorOfClass(ClassNode: TCodeTreeNode;
|
||||||
|
Params: TFindDeclarationParams; FindClassContext: boolean): boolean;
|
||||||
|
function FindNthParameterNode(Node: TCodeTreeNode;
|
||||||
|
ParameterIndex: integer): TCodeTreeNode;
|
||||||
|
function GetFirstParameterNode(Node: TCodeTreeNode): TCodeTreeNode;
|
||||||
|
function IsParamNodeListCompatibleToExprList(
|
||||||
|
TargetExprParamList: TExprTypeList;
|
||||||
|
FirstSourceParameterNode: TCodeTreeNode;
|
||||||
|
Params: TFindDeclarationParams;
|
||||||
|
CompatibilityList: TTypeCompatibilityList): TTypeCompatibility;
|
||||||
|
|
||||||
function JumpToNode(ANode: TCodeTreeNode;
|
function JumpToNode(ANode: TCodeTreeNode;
|
||||||
var NewPos: TCodeXYPosition; var NewTopLine: integer;
|
var NewPos: TCodeXYPosition; var NewTopLine: integer;
|
||||||
IgnoreJumpCentered: boolean): boolean;
|
IgnoreJumpCentered: boolean): boolean;
|
||||||
|
@ -673,12 +673,12 @@ type
|
|||||||
function CheckCount: Boolean; virtual;
|
function CheckCount: Boolean; virtual;
|
||||||
procedure Clear;
|
procedure Clear;
|
||||||
function CreateStackEntry(const AIndex: Integer): TCallStackEntry; virtual;
|
function CreateStackEntry(const AIndex: Integer): TCallStackEntry; virtual;
|
||||||
function GetStackEntry(const AIndex: Integer): TCallStackEntry; virtual;
|
|
||||||
procedure SetCount(const ACount: Integer); virtual;
|
procedure SetCount(const ACount: Integer); virtual;
|
||||||
public
|
public
|
||||||
function Count: Integer;
|
function Count: Integer;
|
||||||
constructor Create;
|
constructor Create;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
function GetStackEntry(const AIndex: Integer): TCallStackEntry; virtual;
|
||||||
property Entries[const AIndex: Integer]: TCallStackEntry read GetEntry;
|
property Entries[const AIndex: Integer]: TCallStackEntry read GetEntry;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
MenuItem^.CaptionLabel.Text:=MenuItem^.Caption;
|
MenuItem^.CaptionLabel.Caption:=MenuItem^.Caption;
|
||||||
|
|
||||||
if (MenuItem^.NextItem <> nil) then Draw(MenuItem^.NextItem, FormPanel, SubMenuPanel);
|
if (MenuItem^.NextItem <> nil) then Draw(MenuItem^.NextItem, FormPanel, SubMenuPanel);
|
||||||
with MenuItem^.SelfPanel do
|
with MenuItem^.SelfPanel do
|
||||||
|
@ -68,20 +68,23 @@ begin
|
|||||||
TSetDesigningComponent.SetDesigningOfComponent(AComponent,true);
|
TSetDesigningComponent.SetDesigningOfComponent(AComponent,true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFOPT R+}{$DEFINE RangeCheckOn}{$ENDIF}
|
||||||
class procedure TSetDesigningComponent.SetDesigningOfComponent(
|
class procedure TSetDesigningComponent.SetDesigningOfComponent(
|
||||||
AComponent: TComponent; Value: Boolean);
|
AComponent: TComponent; Value: Boolean);
|
||||||
begin
|
begin
|
||||||
AComponent.SetDesigning(Value);
|
TSetDesigningComponent(AComponent).SetDesigning(Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TPersistentWithTemplates }
|
{ TPersistentWithTemplates }
|
||||||
{$IFOPT S+}{$DEFINE StackCheckOn}{$ENDIF}
|
{$IFOPT S+}{$DEFINE StackCheckOn}{$ENDIF}
|
||||||
|
{$R-}
|
||||||
{$S-}
|
{$S-}
|
||||||
procedure TPersistentWithTemplates.DoNothing;
|
procedure TPersistentWithTemplates.DoNothing;
|
||||||
// this is the template procedure for all events of the designed components
|
// this is the template procedure for all events of the designed components
|
||||||
begin
|
begin
|
||||||
// !!! do not write any code in here !!!
|
// !!! do not write any code in here !!!
|
||||||
end;
|
end;
|
||||||
|
{$IFDEF RangeCheckOn}{$R+}{$ENDIF}
|
||||||
{$IFDEF StackCheckOn}{$S+}{$ENDIF}
|
{$IFDEF StackCheckOn}{$S+}{$ENDIF}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -2035,7 +2035,10 @@ end;
|
|||||||
procedure TDefinePropertiesPersistent.PublicDefineProperties(Filer: TFiler);
|
procedure TDefinePropertiesPersistent.PublicDefineProperties(Filer: TFiler);
|
||||||
begin
|
begin
|
||||||
debugln('TDefinePropertiesPersistent.PublicDefineProperties START ',ClassName,' ',dbgsName(FTarget));
|
debugln('TDefinePropertiesPersistent.PublicDefineProperties START ',ClassName,' ',dbgsName(FTarget));
|
||||||
Target.DefineProperties(Filer);
|
{$IFOPT R+}{$DEFINE RangeCheckOn}{$ENDIF}
|
||||||
|
{$R-}
|
||||||
|
TDefinePropertiesPersistent(Target).DefineProperties(Filer);
|
||||||
|
{$IFDEF RangeCheckOn}{$R+}{$ENDIF}
|
||||||
debugln('TDefinePropertiesPersistent.PublicDefineProperties END ',ClassName,' ',dbgsName(FTarget));
|
debugln('TDefinePropertiesPersistent.PublicDefineProperties END ',ClassName,' ',dbgsName(FTarget));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -415,14 +415,14 @@ function TManagedLocals.GetName(const AnIndex: Integer): String;
|
|||||||
begin
|
begin
|
||||||
if Master = nil
|
if Master = nil
|
||||||
then Result := inherited GetName(AnIndex)
|
then Result := inherited GetName(AnIndex)
|
||||||
else Result := Master.GetName(AnIndex);
|
else Result := Master.Names[AnIndex];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TManagedLocals.GetValue(const AnIndex: Integer): String;
|
function TManagedLocals.GetValue(const AnIndex: Integer): String;
|
||||||
begin
|
begin
|
||||||
if Master = nil
|
if Master = nil
|
||||||
then Result := inherited GetValue(AnIndex)
|
then Result := inherited GetValue(AnIndex)
|
||||||
else Result := Master.GetValue(AnIndex);
|
else Result := Master.Values[AnIndex];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TManagedLocals.Count: Integer;
|
function TManagedLocals.Count: Integer;
|
||||||
@ -449,14 +449,14 @@ function TManagedWatch.GetValid: TValidState;
|
|||||||
begin
|
begin
|
||||||
if FMaster = nil
|
if FMaster = nil
|
||||||
then Result := inherited GetValid
|
then Result := inherited GetValid
|
||||||
else Result := FMaster.GetValid;
|
else Result := FMaster.Valid;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TManagedWatch.GetValue: String;
|
function TManagedWatch.GetValue: String;
|
||||||
begin
|
begin
|
||||||
if FMaster = nil
|
if FMaster = nil
|
||||||
then Result := inherited GetValue
|
then Result := inherited GetValue
|
||||||
else Result := FMaster.GetValue;
|
else Result := FMaster.Value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TManagedWatch.SetEnabled(const AValue: Boolean);
|
procedure TManagedWatch.SetEnabled(const AValue: Boolean);
|
||||||
|
@ -467,7 +467,7 @@ begin
|
|||||||
// split description into lines
|
// split description into lines
|
||||||
LabelsAsText.Text:=FFileDescs[ListIndex];
|
LabelsAsText.Text:=FFileDescs[ListIndex];
|
||||||
for i:=0 to LabelListCount(ListIndex)-1 do begin
|
for i:=0 to LabelListCount(ListIndex)-1 do begin
|
||||||
GetLabel(ListIndex,i).Text:=LabelsAsText[i];
|
GetLabel(ListIndex,i).Caption:=LabelsAsText[i];
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
LabelsAsText.Free;
|
LabelsAsText.Free;
|
||||||
|
@ -758,7 +758,7 @@ begin
|
|||||||
CheckAndWriteNode('short', ShortEdit.Text, SHORT);
|
CheckAndWriteNode('short', ShortEdit.Text, SHORT);
|
||||||
CheckAndWriteNode('descr', DescrMemo.Text, DESCR);
|
CheckAndWriteNode('descr', DescrMemo.Text, DESCR);
|
||||||
CheckAndWriteNode('errors', ErrorsMemo.Text, ERRORS);
|
CheckAndWriteNode('errors', ErrorsMemo.Text, ERRORS);
|
||||||
CheckAndWriteNode('seealso', LinkListBox.Text, SEEALSO);
|
CheckAndWriteNode('seealso', LinkListBox.Caption, SEEALSO);
|
||||||
CheckAndWriteExampleNode(ExampleEdit.Text);
|
CheckAndWriteExampleNode(ExampleEdit.Text);
|
||||||
end;
|
end;
|
||||||
Node := Node.NextSibling;
|
Node := Node.NextSibling;
|
||||||
@ -776,7 +776,7 @@ begin
|
|||||||
ERRORS:
|
ERRORS:
|
||||||
InsertNodeElement('errors', ErrorsMemo.Text);
|
InsertNodeElement('errors', ErrorsMemo.Text);
|
||||||
SEEALSO:
|
SEEALSO:
|
||||||
InsertNodeElement('seealso', LinkListBox.Text);
|
InsertNodeElement('seealso', LinkListBox.Caption);
|
||||||
EXAMPLE:
|
EXAMPLE:
|
||||||
InsertNodeElement('example', ExampleEdit.Text);
|
InsertNodeElement('example', ExampleEdit.Text);
|
||||||
end;
|
end;
|
||||||
|
@ -66,9 +66,9 @@ begin
|
|||||||
for I := 0 to Memo.Lines.Count - 1 do Inc(NumChars, Length(Memo.Lines[I]));
|
for I := 0 to Memo.Lines.Count - 1 do Inc(NumChars, Length(Memo.Lines[I]));
|
||||||
|
|
||||||
if Memo.Lines.Count = 1 then
|
if Memo.Lines.Count = 1 then
|
||||||
StatusLabel.Text := Format(ois1LineDChars, [NumChars])
|
StatusLabel.Caption := Format(ois1LineDChars, [NumChars])
|
||||||
else
|
else
|
||||||
StatusLabel.Text := Format(oisDLinesDChars, [Memo.Lines.Count, NumChars]);
|
StatusLabel.Caption := Format(oisDLinesDChars, [Memo.Lines.Count, NumChars]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TStringsPropEditorFrm.SortButtonClick(Sender: TObject);
|
procedure TStringsPropEditorFrm.SortButtonClick(Sender: TObject);
|
||||||
|
@ -65,6 +65,7 @@ Type
|
|||||||
property ShadowType: TShadowType read fShadowType write SetShadowType default stEtchedIn;
|
property ShadowType: TShadowType read fShadowType write SetShadowType default stEtchedIn;
|
||||||
property Visible;
|
property Visible;
|
||||||
property OnClick;
|
property OnClick;
|
||||||
|
property OnDblClick;
|
||||||
property OnMouseMove;
|
property OnMouseMove;
|
||||||
property OnMouseDown;
|
property OnMouseDown;
|
||||||
property OnMouseUp;
|
property OnMouseUp;
|
||||||
|
@ -197,7 +197,6 @@ type
|
|||||||
function GetCaptionOfKind(aKind: TBitBtnKind): String;
|
function GetCaptionOfKind(aKind: TBitBtnKind): String;
|
||||||
protected
|
protected
|
||||||
procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
|
procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
|
||||||
procedure Click; override;
|
|
||||||
procedure GlyphChanged(Sender: TObject);
|
procedure GlyphChanged(Sender: TObject);
|
||||||
procedure InitializeWnd; override;
|
procedure InitializeWnd; override;
|
||||||
procedure TextChanged; override;
|
procedure TextChanged; override;
|
||||||
@ -205,6 +204,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; Override;
|
destructor Destroy; Override;
|
||||||
|
procedure Click; override;
|
||||||
public
|
public
|
||||||
property Glyph: TBitmap read GetGlyph write SetGlyph stored IsGlyphStored;
|
property Glyph: TBitmap read GetGlyph write SetGlyph stored IsGlyphStored;
|
||||||
property NumGlyphs: Integer read GetNumGlyphs write SetNumGlyphs default 1;
|
property NumGlyphs: Integer read GetNumGlyphs write SetNumGlyphs default 1;
|
||||||
@ -330,6 +330,7 @@ type
|
|||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
function FindDownButton: TCustomSpeedButton;
|
function FindDownButton: TCustomSpeedButton;
|
||||||
|
procedure Click; override; // make Click public
|
||||||
public
|
public
|
||||||
property AllowAllUp: Boolean read FAllowAllUp write SetAllowAllUp default false;
|
property AllowAllUp: Boolean read FAllowAllUp write SetAllowAllUp default false;
|
||||||
property Down: Boolean read FDown write SetDown default false;
|
property Down: Boolean read FDown write SetDown default false;
|
||||||
|
@ -1273,6 +1273,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
function CheckMenuDropdown: Boolean; dynamic;
|
function CheckMenuDropdown: Boolean; dynamic;
|
||||||
|
procedure Click; override;
|
||||||
procedure GetCurrentIcon(var ImageList: TCustomImageList;
|
procedure GetCurrentIcon(var ImageList: TCustomImageList;
|
||||||
var TheIndex: integer); virtual;
|
var TheIndex: integer); virtual;
|
||||||
property Index: Integer read GetIndex;
|
property Index: Integer read GetIndex;
|
||||||
|
@ -1519,7 +1519,6 @@ type
|
|||||||
procedure CMDrag(var Message: TCMDrag); message CM_DRAG;
|
procedure CMDrag(var Message: TCMDrag); message CM_DRAG;
|
||||||
procedure CMShowingChanged(var Message: TLMessage); message CM_SHOWINGCHANGED;
|
procedure CMShowingChanged(var Message: TLMessage); message CM_SHOWINGCHANGED;
|
||||||
procedure CMVisibleChanged(var TheMessage: TLMessage); message CM_VISIBLECHANGED;
|
procedure CMVisibleChanged(var TheMessage: TLMessage); message CM_VISIBLECHANGED;
|
||||||
function ContainsControl(Control: TControl): Boolean;
|
|
||||||
procedure ControlsAligned; virtual;
|
procedure ControlsAligned; virtual;
|
||||||
procedure DoSendBoundsToInterface; virtual;
|
procedure DoSendBoundsToInterface; virtual;
|
||||||
procedure RealizeBounds; virtual;
|
procedure RealizeBounds; virtual;
|
||||||
@ -1598,11 +1597,9 @@ type
|
|||||||
function DialogChar(var Message: TLMKey): boolean; override;
|
function DialogChar(var Message: TLMKey): boolean; override;
|
||||||
procedure ControlKeyDown(var Key: Word; Shift: TShiftState); dynamic;
|
procedure ControlKeyDown(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure ControlKeyUp(var Key: Word; Shift: TShiftState); dynamic;
|
procedure ControlKeyUp(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure KeyDown(var Key: Word; Shift: TShiftState); dynamic;
|
|
||||||
procedure KeyDownBeforeInterface(var Key: Word; Shift: TShiftState); dynamic;
|
procedure KeyDownBeforeInterface(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure KeyDownAfterInterface(var Key: Word; Shift: TShiftState); dynamic;
|
procedure KeyDownAfterInterface(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure KeyPress(var Key: char); dynamic;
|
procedure KeyPress(var Key: char); dynamic;
|
||||||
procedure KeyUp(var Key: Word; Shift: TShiftState); dynamic;
|
|
||||||
procedure KeyUpBeforeInterface(var Key: Word; Shift: TShiftState); dynamic;
|
procedure KeyUpBeforeInterface(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure KeyUpAfterInterface(var Key: Word; Shift: TShiftState); dynamic;
|
procedure KeyUpAfterInterface(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
procedure UTF8KeyPress(var UTF8Key: TUTF8Char); dynamic;
|
procedure UTF8KeyPress(var UTF8Key: TUTF8Char); dynamic;
|
||||||
@ -1697,6 +1694,7 @@ type
|
|||||||
AllowDisabled, AllowWinControls: Boolean): TControl;
|
AllowDisabled, AllowWinControls: Boolean): TControl;
|
||||||
Function ControlAtPos(const Pos: TPoint;
|
Function ControlAtPos(const Pos: TPoint;
|
||||||
AllowDisabled, AllowWinControls, OnlyClientAreas: Boolean): TControl; virtual;
|
AllowDisabled, AllowWinControls, OnlyClientAreas: Boolean): TControl; virtual;
|
||||||
|
function ContainsControl(Control: TControl): Boolean;
|
||||||
procedure DoAdjustClientRectChange;
|
procedure DoAdjustClientRectChange;
|
||||||
procedure InvalidateClientRectCache(WithChildControls: boolean);
|
procedure InvalidateClientRectCache(WithChildControls: boolean);
|
||||||
function ClientRectNeedsInterfaceUpdate: boolean;
|
function ClientRectNeedsInterfaceUpdate: boolean;
|
||||||
@ -1736,6 +1734,8 @@ type
|
|||||||
procedure HandleNeeded;
|
procedure HandleNeeded;
|
||||||
function BrushCreated: Boolean;
|
function BrushCreated: Boolean;
|
||||||
procedure EraseBackground(DC: HDC); virtual;
|
procedure EraseBackground(DC: HDC); virtual;
|
||||||
|
procedure KeyDown(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
|
procedure KeyUp(var Key: Word; Shift: TShiftState); dynamic;
|
||||||
function IntfUTF8KeyPress(var UTF8Key: TUTF8Char;
|
function IntfUTF8KeyPress(var UTF8Key: TUTF8Char;
|
||||||
RepeatCount: integer; SystemKey: boolean): boolean; dynamic;
|
RepeatCount: integer; SystemKey: boolean): boolean; dynamic;
|
||||||
end;
|
end;
|
||||||
|
@ -426,7 +426,6 @@ type
|
|||||||
protected
|
protected
|
||||||
FFormBorderStyle: TFormBorderStyle;
|
FFormBorderStyle: TFormBorderStyle;
|
||||||
FActionLists: TList;
|
FActionLists: TList;
|
||||||
function CloseQuery: boolean; virtual;
|
|
||||||
function FormUpdating: boolean;
|
function FormUpdating: boolean;
|
||||||
procedure Activate; dynamic;
|
procedure Activate; dynamic;
|
||||||
procedure ActiveChanged; dynamic;
|
procedure ActiveChanged; dynamic;
|
||||||
@ -473,6 +472,7 @@ type
|
|||||||
function GetIconHandle: HICON;
|
function GetIconHandle: HICON;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure Close;
|
procedure Close;
|
||||||
|
function CloseQuery: boolean; virtual;
|
||||||
procedure Release;
|
procedure Release;
|
||||||
procedure Hide;
|
procedure Hide;
|
||||||
procedure Show;
|
procedure Show;
|
||||||
|
@ -518,6 +518,11 @@ begin
|
|||||||
dec(FLockSelectionChange);
|
dec(FLockSelectionChange);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomListBox.Click;
|
||||||
|
begin
|
||||||
|
inherited Click;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
procedure TCustomListBox.MeasureItem(Index: Integer; var TheHeight: Integer);
|
procedure TCustomListBox.MeasureItem(Index: Integer; var TheHeight: Integer);
|
||||||
|
|
||||||
|
@ -241,8 +241,8 @@ begin
|
|||||||
if (not (csDesigning in ComponentState)) and (FAssociate <> nil)
|
if (not (csDesigning in ComponentState)) and (FAssociate <> nil)
|
||||||
then begin
|
then begin
|
||||||
if Thousands
|
if Thousands
|
||||||
then FAssociate.Text := FloatToStrF(FPosition, ffNumber, 0, 0)
|
then FAssociate.Caption := FloatToStrF(FPosition, ffNumber, 0, 0)
|
||||||
else FAssociate.Text := IntToStr(FPosition);
|
else FAssociate.Caption := IntToStr(FPosition);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ var
|
|||||||
InvalidNumber : Boolean;
|
InvalidNumber : Boolean;
|
||||||
begin
|
begin
|
||||||
If Associate <> nil then begin
|
If Associate <> nil then begin
|
||||||
str := Trim(Associate.Text);
|
str := Trim(Associate.Caption);
|
||||||
InvalidNumber := str = '';
|
InvalidNumber := str = '';
|
||||||
For I := Length(str) downto 1 do
|
For I := Length(str) downto 1 do
|
||||||
if str[I] = ThousandSeparator then
|
if str[I] = ThousandSeparator then
|
||||||
|
@ -101,6 +101,11 @@ begin
|
|||||||
Result:=FindDown(GetFirstParentForm(Self));
|
Result:=FindDown(GetFirstParentForm(Self));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomSpeedButton.Click;
|
||||||
|
begin
|
||||||
|
inherited Click;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: TCustomSpeedButton.SetAllowAllUp
|
Method: TCustomSpeedButton.SetAllowAllUp
|
||||||
Params: Value:
|
Params: Value:
|
||||||
|
@ -177,18 +177,18 @@ end;
|
|||||||
|
|
||||||
function TTabControlNoteBookStrings.GetObject(Index: Integer): TObject;
|
function TTabControlNoteBookStrings.GetObject(Index: Integer): TObject;
|
||||||
begin
|
begin
|
||||||
Result:=FNoteBook.Pages.GetObject(Index);
|
Result:=FNoteBook.Pages.Objects[Index];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTabControlNoteBookStrings.Put(Index: Integer; const S: string);
|
procedure TTabControlNoteBookStrings.Put(Index: Integer; const S: string);
|
||||||
begin
|
begin
|
||||||
FNoteBook.Pages.Put(Index, S);
|
FNoteBook.Pages[Index]:=S;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTabControlNoteBookStrings.PutObject(Index: Integer; AObject: TObject
|
procedure TTabControlNoteBookStrings.PutObject(Index: Integer; AObject: TObject
|
||||||
);
|
);
|
||||||
begin
|
begin
|
||||||
FNoteBook.Pages.PutObject(Index, AObject);
|
FNoteBook.Pages.Objects[Index]:=AObject;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTabControlNoteBookStrings.SetImages(const AValue: TCustomImageList);
|
procedure TTabControlNoteBookStrings.SetImages(const AValue: TCustomImageList);
|
||||||
@ -201,7 +201,10 @@ end;
|
|||||||
|
|
||||||
procedure TTabControlNoteBookStrings.SetUpdateState(Updating: Boolean);
|
procedure TTabControlNoteBookStrings.SetUpdateState(Updating: Boolean);
|
||||||
begin
|
begin
|
||||||
FNoteBook.Pages.SetUpdateState(Updating);
|
if Updating then
|
||||||
|
FNoteBook.Pages.BeginUpdate
|
||||||
|
else
|
||||||
|
FNoteBook.Pages.EndUpdate;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTabControlNoteBookStrings.SetTabHeight(const AValue: Smallint);
|
procedure TTabControlNoteBookStrings.SetTabHeight(const AValue: Smallint);
|
||||||
|
@ -584,6 +584,11 @@ begin
|
|||||||
Result:=FToolBar.CheckMenuDropdown(Self);
|
Result:=FToolBar.CheckMenuDropdown(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TToolButton.Click;
|
||||||
|
begin
|
||||||
|
inherited Click;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TToolButton.GetCurrentIcon(var ImageList: TCustomImageList;
|
procedure TToolButton.GetCurrentIcon(var ImageList: TCustomImageList;
|
||||||
var TheIndex: integer);
|
var TheIndex: integer);
|
||||||
begin
|
begin
|
||||||
|
@ -483,6 +483,7 @@ type
|
|||||||
procedure Clear; virtual;
|
procedure Clear; virtual;
|
||||||
procedure LockSelectionChange;
|
procedure LockSelectionChange;
|
||||||
procedure UnlockSelectionChange;
|
procedure UnlockSelectionChange;
|
||||||
|
procedure Click; override; // make it public
|
||||||
public
|
public
|
||||||
property Align;
|
property Align;
|
||||||
property Anchors;
|
property Anchors;
|
||||||
|
Loading…
Reference in New Issue
Block a user