mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 02:18:20 +02:00
LCL, added dbgrid SelectedFieldRect property
git-svn-id: trunk@24073 -
This commit is contained in:
parent
27045012a8
commit
6ea54da93e
@ -303,6 +303,7 @@ type
|
|||||||
function GetCurrentField: TField;
|
function GetCurrentField: TField;
|
||||||
function GetDataSource: TDataSource;
|
function GetDataSource: TDataSource;
|
||||||
function GetRecordCount: Integer;
|
function GetRecordCount: Integer;
|
||||||
|
function GetSelectedFieldRect: TRect;
|
||||||
function GetSelectedIndex: Integer;
|
function GetSelectedIndex: Integer;
|
||||||
function GetThumbTracking: boolean;
|
function GetThumbTracking: boolean;
|
||||||
procedure OnRecordChanged(Field:TField);
|
procedure OnRecordChanged(Field:TField);
|
||||||
@ -458,6 +459,7 @@ type
|
|||||||
property SelectedField: TField read GetCurrentField write SetCurrentField;
|
property SelectedField: TField read GetCurrentField write SetCurrentField;
|
||||||
property SelectedIndex: Integer read GetSelectedIndex write SetSelectedIndex;
|
property SelectedIndex: Integer read GetSelectedIndex write SetSelectedIndex;
|
||||||
property SelectedColumn: TColumn read GetCurrentColumn;
|
property SelectedColumn: TColumn read GetCurrentColumn;
|
||||||
|
property SelectedFieldRect: TRect read GetSelectedFieldRect;
|
||||||
property ThumbTracking: boolean read GetThumbTracking write SetThumbTracking;
|
property ThumbTracking: boolean read GetThumbTracking write SetThumbTracking;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -709,6 +711,11 @@ begin
|
|||||||
result := FDataLink.DataSet.RecordCount;
|
result := FDataLink.DataSet.RecordCount;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TCustomDBGrid.GetSelectedFieldRect: TRect;
|
||||||
|
begin
|
||||||
|
result := CellRect(Col,Row);
|
||||||
|
end;
|
||||||
|
|
||||||
function TCustomDBGrid.GetSelectedIndex: Integer;
|
function TCustomDBGrid.GetSelectedIndex: Integer;
|
||||||
begin
|
begin
|
||||||
if Columns.Enabled then
|
if Columns.Enabled then
|
||||||
|
Loading…
Reference in New Issue
Block a user