mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-14 10:37:27 +02:00
added for Delphi compati: TPropertyEditor.GetComponent
git-svn-id: trunk@5694 -
This commit is contained in:
parent
66d9c63226
commit
b411535774
@ -9,7 +9,7 @@
|
|||||||
<SaveOnlyProjectUnits Value="True"/>
|
<SaveOnlyProjectUnits Value="True"/>
|
||||||
</Flags>
|
</Flags>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<ActiveEditorIndexAtStart Value="1"/>
|
<ActiveEditorIndexAtStart Value="2"/>
|
||||||
<IconPath Value="./"/>
|
<IconPath Value="./"/>
|
||||||
<TargetFileExt Value=""/>
|
<TargetFileExt Value=""/>
|
||||||
<Title Value="exampleproject1"/>
|
<Title Value="exampleproject1"/>
|
||||||
|
@ -304,6 +304,7 @@ type
|
|||||||
function GetAttributes: TPropertyAttributes; virtual;
|
function GetAttributes: TPropertyAttributes; virtual;
|
||||||
function IsReadOnly: boolean; virtual;
|
function IsReadOnly: boolean; virtual;
|
||||||
function GetPersistent(Index: Integer): TPersistent;
|
function GetPersistent(Index: Integer): TPersistent;
|
||||||
|
function GetComponent(Index: Integer): TComponent;// for Delphi compatibility
|
||||||
function GetEditLimit: Integer; virtual;
|
function GetEditLimit: Integer; virtual;
|
||||||
function GetName: shortstring; virtual;
|
function GetName: shortstring; virtual;
|
||||||
procedure GetProperties(Proc: TGetPropEditProc); virtual;
|
procedure GetProperties(Proc: TGetPropEditProc); virtual;
|
||||||
@ -1910,6 +1911,11 @@ begin
|
|||||||
Result:=FPropList^[Index].Instance;
|
Result:=FPropList^[Index].Instance;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TPropertyEditor.GetComponent(Index: Integer): TComponent;
|
||||||
|
begin
|
||||||
|
Result:=TComponent(FPropList^[Index].Instance);
|
||||||
|
end;
|
||||||
|
|
||||||
function TPropertyEditor.GetFloatValue:Extended;
|
function TPropertyEditor.GetFloatValue:Extended;
|
||||||
begin
|
begin
|
||||||
Result:=GetFloatValueAt(0);
|
Result:=GetFloatValueAt(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user