mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 14:32:30 +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 GetDataSource: TDataSource;
|
||||
function GetRecordCount: Integer;
|
||||
function GetSelectedFieldRect: TRect;
|
||||
function GetSelectedIndex: Integer;
|
||||
function GetThumbTracking: boolean;
|
||||
procedure OnRecordChanged(Field:TField);
|
||||
@ -458,6 +459,7 @@ type
|
||||
property SelectedField: TField read GetCurrentField write SetCurrentField;
|
||||
property SelectedIndex: Integer read GetSelectedIndex write SetSelectedIndex;
|
||||
property SelectedColumn: TColumn read GetCurrentColumn;
|
||||
property SelectedFieldRect: TRect read GetSelectedFieldRect;
|
||||
property ThumbTracking: boolean read GetThumbTracking write SetThumbTracking;
|
||||
end;
|
||||
|
||||
@ -709,6 +711,11 @@ begin
|
||||
result := FDataLink.DataSet.RecordCount;
|
||||
end;
|
||||
|
||||
function TCustomDBGrid.GetSelectedFieldRect: TRect;
|
||||
begin
|
||||
result := CellRect(Col,Row);
|
||||
end;
|
||||
|
||||
function TCustomDBGrid.GetSelectedIndex: Integer;
|
||||
begin
|
||||
if Columns.Enabled then
|
||||
|
Loading…
Reference in New Issue
Block a user