RxFPC: RxDBGrid - add new event - OnRxColumnFooterDraw. For details see http://bugs.freepascal.org/view.php?id=28619

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4312 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2015-09-07 07:42:04 +00:00
parent 3026d99354
commit c8d8277863
8 changed files with 101 additions and 140 deletions

View File

@ -5,6 +5,10 @@ msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "Application \"%s\"" msgid "Application \"%s\""
msgstr "Aplicación \"%s\"" msgstr "Aplicación \"%s\""
#: rxdconst.sblobtext
msgid "(blob)"
msgstr ""
#: rxdconst.sbottomcaption #: rxdconst.sbottomcaption
msgid "Bottom" msgid "Bottom"
msgstr "" msgstr ""

View File

@ -5,6 +5,10 @@ msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "Application \"%s\"" msgid "Application \"%s\""
msgstr "" msgstr ""
#: rxdconst.sblobtext
msgid "(blob)"
msgstr ""
#: rxdconst.sbottomcaption #: rxdconst.sbottomcaption
msgid "Bottom" msgid "Bottom"
msgstr "" msgstr ""

View File

@ -5,6 +5,10 @@ msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "Application \"%s\"" msgid "Application \"%s\""
msgstr "Программа \"%s\"" msgstr "Программа \"%s\""
#: rxdconst.sblobtext
msgid "(blob)"
msgstr "(примечание)"
#: rxdconst.sbottomcaption #: rxdconst.sbottomcaption
msgid "Bottom" msgid "Bottom"
msgstr "Снизу" msgstr "Снизу"

View File

@ -14,6 +14,10 @@ msgstr ""
msgid "Application \"%s\"" msgid "Application \"%s\""
msgstr "Програма \"%s\"" msgstr "Програма \"%s\""
#: rxdconst.sblobtext
msgid "(blob)"
msgstr ""
#: rxdconst.sbottomcaption #: rxdconst.sbottomcaption
msgid "Bottom" msgid "Bottom"
msgstr "" msgstr ""

View File

@ -57,6 +57,4 @@
{$ELSE} {$ELSE}
{$ENDIF} {$ENDIF}
{.$DEFINE RxDBGridDepricatedProps}
{.$DEFINE OLD_fpSPREADSHEET} {.$DEFINE OLD_fpSPREADSHEET}

View File

@ -69,11 +69,8 @@ type
//Freeman35 added //Freeman35 added
TOnRxCalcFooterValues = procedure(Sender: TObject; Column: TRxColumn; var AValue : Variant) of object; TOnRxCalcFooterValues = procedure(Sender: TObject; Column: TRxColumn; var AValue : Variant) of object;
TOnRxColumnFooterDraw = procedure(Sender: TObject; ABrush: TBrush; AFont : TFont;
{$IFDEF RxDBGridDepricatedProps} const Rect: TRect; Column: TRxColumn; var AText :String) of object;
//TRxDBGridAllowedOperation = (aoInsert, aoUpdate, aoDelete, aoAppend);
//TRxDBGridAllowedOperations = set of TRxDBGridAllowedOperation;
{$ENDIF}
TRxColumnOption = (coCustomizeVisible, coCustomizeWidth, coFixDecimalSeparator, coDisableDialogFind); TRxColumnOption = (coCustomizeVisible, coCustomizeWidth, coFixDecimalSeparator, coDisableDialogFind);
TRxColumnOptions = set of TRxColumnOption; TRxColumnOptions = set of TRxColumnOption;
@ -203,6 +200,20 @@ type
property Style: TTitleStyle read FStyle write SetStyle default tsLazarus; property Style: TTitleStyle read FStyle write SetStyle default tsLazarus;
end; end;
{ TRxDBGridColumnDefValues }
TRxDBGridColumnDefValues = class(TPersistent)
private
FBlobText: string;
FOwner: TRxDBGrid;
protected
procedure AssignTo(Dest: TPersistent); override;
public
constructor Create(AOwner: TRxDBGrid);
destructor Destroy; override;
published
property BlobText:string read FBlobText write FBlobText;
end;
{ TRxDBGridSortEngine } { TRxDBGridSortEngine }
TRxSortEngineOption = (seoCaseInsensitiveSort); TRxSortEngineOption = (seoCaseInsensitiveSort);
@ -251,65 +262,6 @@ type
property ShowHint: boolean read FShowHint write FShowHint default False; property ShowHint: boolean read FShowHint write FShowHint default False;
end; end;
{ TRxColumnFooter }
(*
TRxColumnFooter = class(TPersistent)
private
FIsDefaultFont: boolean;
FLayout: TTextLayout;
FOwner: TRxColumn;
FAlignment: TAlignment;
FDisplayFormat: string;
FFieldName: string;
FField:TField;
FFont: TFont;
FValue: string;
FValueType: TFooterValueType;
FTestValue: double;
FCountRec:integer;
procedure FontChanged(Sender: TObject);
function GetFont: TFont;
function IsFontStored: Boolean;
procedure SetAlignment(const AValue: TAlignment);
procedure SetDisplayFormat(const AValue: string);
procedure SetFieldName(const AValue: string);
procedure SetFont(AValue: TFont);
procedure SetLayout(const AValue: TTextLayout);
procedure SetValue(const AValue: string);
procedure SetValueType(const AValue: TFooterValueType);
function GetFieldValue: string;
function GetRecordsCount: string;
function GetRecNo: string;
function GetStatTotal: string;
procedure ResetTestValue;
procedure UpdateTestValue;
function DeleteTestValue: boolean;
function PostTestValue: boolean;
function ErrorTestValue: boolean;
protected
procedure UpdateTestValueFromVar(AValue:Variant);
property IsDefaultFont: boolean read FIsDefaultFont;
public
constructor Create(Owner: TRxColumn);
destructor Destroy; override;
function DisplayText: string;
procedure FillDefaultFont;
property Owner: TRxColumn read FOwner;
property NumericValue: double read FTestValue;
property CountRec:integer read FCountRec;
published
property Alignment: TAlignment read FAlignment write SetAlignment default
taLeftJustify;
property Layout: TTextLayout read FLayout write SetLayout default tlCenter;
property DisplayFormat: string read FDisplayFormat write SetDisplayFormat;
property FieldName: string read FFieldName write SetFieldName;
property Value: string read FValue write SetValue;
property ValueType: TFooterValueType read FValueType write SetValueType default fvtNon;
property Font: TFont read GetFont write SetFont stored IsFontStored;
end;
*)
{ TRxColumnFooterItem } { TRxColumnFooterItem }
TRxColumnFooterItem = class(TCollectionItem) TRxColumnFooterItem = class(TCollectionItem)
@ -498,7 +450,6 @@ type
private private
FDirectInput: boolean; FDirectInput: boolean;
FEditButtons: TRxColumnEditButtons; FEditButtons: TRxColumnEditButtons;
(* FFooter: TRxColumnFooter; *)
FFooter: TRxColumnFooterItem; FFooter: TRxColumnFooterItem;
FConstraints:TRxDBGridCollumnConstraints; FConstraints:TRxDBGridCollumnConstraints;
FFilter: TRxColumnFilter; FFilter: TRxColumnFilter;
@ -513,7 +464,6 @@ type
FWordWrap: boolean; FWordWrap: boolean;
FFooters: TRxColumnFooterItems; FFooters: TRxColumnFooterItems;
function GetConstraints: TRxDBGridCollumnConstraints; function GetConstraints: TRxDBGridCollumnConstraints;
(* function GetFooter: TRxColumnFooter; *)
function GetFooter: TRxColumnFooterItem; function GetFooter: TRxColumnFooterItem;
function GetFooters: TRxColumnFooterItems; function GetFooters: TRxColumnFooterItems;
function GetKeyList: TStrings; function GetKeyList: TStrings;
@ -521,7 +471,6 @@ type
procedure SetConstraints(AValue: TRxDBGridCollumnConstraints); procedure SetConstraints(AValue: TRxDBGridCollumnConstraints);
procedure SetEditButtons(AValue: TRxColumnEditButtons); procedure SetEditButtons(AValue: TRxColumnEditButtons);
procedure SetFilter(const AValue: TRxColumnFilter); procedure SetFilter(const AValue: TRxColumnFilter);
(* procedure SetFooter(const AValue: TRxColumnFooter); *)
procedure SetFooter(const AValue: TRxColumnFooterItem); procedure SetFooter(const AValue: TRxColumnFooterItem);
procedure SetFooters(AValue: TRxColumnFooterItems); procedure SetFooters(AValue: TRxColumnFooterItems);
procedure SetImageList(const AValue: TImageList); procedure SetImageList(const AValue: TImageList);
@ -542,7 +491,6 @@ type
property DirectInput : boolean read FDirectInput write FDirectInput default true; property DirectInput : boolean read FDirectInput write FDirectInput default true;
property EditButtons:TRxColumnEditButtons read FEditButtons write SetEditButtons; property EditButtons:TRxColumnEditButtons read FEditButtons write SetEditButtons;
property Filter: TRxColumnFilter read FFilter write SetFilter; property Filter: TRxColumnFilter read FFilter write SetFilter;
(* property Footer: TRxColumnFooter read GetFooter write SetFooter; *)
property Footer: TRxColumnFooterItem read GetFooter write SetFooter; property Footer: TRxColumnFooterItem read GetFooter write SetFooter;
property Footers: TRxColumnFooterItems read GetFooters write SetFooters; property Footers: TRxColumnFooterItems read GetFooters write SetFooters;
property ImageList: TImageList read FImageList write SetImageList; property ImageList: TImageList read FImageList write SetImageList;
@ -597,12 +545,12 @@ type
{ TRxDBGrid } { TRxDBGrid }
TRxDBGrid = class(TCustomDBGrid) TRxDBGrid = class(TCustomDBGrid)
private private
FColumnDefValues: TRxDBGridColumnDefValues;
FrxDSState:TRxDSState; FrxDSState:TRxDSState;
FFooterOptions: TRxDBGridFooterOptions; FFooterOptions: TRxDBGridFooterOptions;
FSortColumns: TRxDbGridColumnsSortList; FSortColumns: TRxDbGridColumnsSortList;
FSortingNow:Boolean; FSortingNow:Boolean;
FInProcessCalc: integer; FInProcessCalc: integer;
// FAllowedOperations: TRxDBGridAllowedOperations;
// //
FKeyStrokes: TRxDBGridKeyStrokes; FKeyStrokes: TRxDBGridKeyStrokes;
FOnGetCellProps: TGetCellPropsEvent; FOnGetCellProps: TGetCellPropsEvent;
@ -612,6 +560,7 @@ type
FOnGetBtnParams: TGetBtnParamsEvent; FOnGetBtnParams: TGetBtnParamsEvent;
FOnFiltred: TNotifyEvent; FOnFiltred: TNotifyEvent;
FOnRxCalcFooterValues :TOnRxCalcFooterValues; FOnRxCalcFooterValues :TOnRxCalcFooterValues;
FOnRxColumnFooterDraw :TOnRxColumnFooterDraw;
//auto sort support //auto sort support
FMarkerUp : TBitmap; FMarkerUp : TBitmap;
@ -658,7 +607,6 @@ type
FOnSortChanged: TNotifyEvent; FOnSortChanged: TNotifyEvent;
procedure DoCreateJMenu; procedure DoCreateJMenu;
//function GetAllowedOperations: TRxDBGridAllowedOperations;
function GetColumns: TRxDbGridColumns; function GetColumns: TRxDbGridColumns;
function GetFooterColor: TColor; function GetFooterColor: TColor;
function GetFooterRowCount: integer; function GetFooterRowCount: integer;
@ -670,10 +618,8 @@ type
function GetTitleButtons: boolean; function GetTitleButtons: boolean;
function IsColumnsStored: boolean; function IsColumnsStored: boolean;
{$IFDEF RxDBGridDepricatedProps}
procedure SetAllowedOperations(AValue: TRxDBGridAllowedOperations);
{$ENDIF}
procedure SetAutoSort(const AValue: boolean); procedure SetAutoSort(const AValue: boolean);
procedure SetColumnDefValues(AValue: TRxDBGridColumnDefValues);
procedure SetColumns(const AValue: TRxDbGridColumns); procedure SetColumns(const AValue: TRxDbGridColumns);
procedure SetFooterColor(const AValue: TColor); procedure SetFooterColor(const AValue: TColor);
procedure SetFooterOptions(AValue: TRxDBGridFooterOptions); procedure SetFooterOptions(AValue: TRxDBGridFooterOptions);
@ -724,8 +670,6 @@ type
protected protected
FRxDbGridLookupComboEditor: TCustomControl; FRxDbGridLookupComboEditor: TCustomControl;
FRxDbGridDateEditor: TWinControl; FRxDbGridDateEditor: TWinControl;
//procedure UpdateHorzScrollBar(const aVisible: boolean; const aRange,aPage,aPos: Integer); override;
//procedure UpdateVertScrollbar(const aVisible: boolean; const aRange,aPage,aPos: Integer); override;
procedure CollumnSortListUpdate; procedure CollumnSortListUpdate;
procedure CollumnSortListClear; procedure CollumnSortListClear;
@ -842,36 +786,25 @@ type
property MarkerUp : TBitmap read GetMarkerUp write SetMarkerUp; property MarkerUp : TBitmap read GetMarkerUp write SetMarkerUp;
property MarkerDown : TBitmap read GetMarkerDown write SetMarkerDown; property MarkerDown : TBitmap read GetMarkerDown write SetMarkerDown;
published published
property AfterQuickSearch: TRxQuickSearchNotifyEvent property AfterQuickSearch: TRxQuickSearchNotifyEvent read FAfterQuickSearch write FAfterQuickSearch;
read FAfterQuickSearch write FAfterQuickSearch; property ColumnDefValues:TRxDBGridColumnDefValues read FColumnDefValues write SetColumnDefValues;
property BeforeQuickSearch: TRxQuickSearchNotifyEvent property BeforeQuickSearch: TRxQuickSearchNotifyEvent read FBeforeQuickSearch write FBeforeQuickSearch;
read FBeforeQuickSearch write FBeforeQuickSearch; property OnGetBtnParams: TGetBtnParamsEvent read FOnGetBtnParams write FOnGetBtnParams;
property OnGetBtnParams: TGetBtnParamsEvent
read FOnGetBtnParams write FOnGetBtnParams;
property TitleButtons: boolean read GetTitleButtons write SetTitleButtons; property TitleButtons: boolean read GetTitleButtons write SetTitleButtons;
property AutoSort: boolean read FAutoSort write SetAutoSort; property AutoSort: boolean read FAutoSort write SetAutoSort;
property OnGetCellProps: TGetCellPropsEvent property OnGetCellProps: TGetCellPropsEvent read FOnGetCellProps write FOnGetCellProps;
read FOnGetCellProps write FOnGetCellProps; property Columns: TRxDbGridColumns read GetColumns write SetColumns stored IsColumnsStored;
property Columns: TRxDbGridColumns
read GetColumns write SetColumns stored IsColumnsStored;
property KeyStrokes: TRxDBGridKeyStrokes read FKeyStrokes write SetKeyStrokes; property KeyStrokes: TRxDBGridKeyStrokes read FKeyStrokes write SetKeyStrokes;
property FooterOptions:TRxDBGridFooterOptions read FFooterOptions write SetFooterOptions; property FooterOptions:TRxDBGridFooterOptions read FFooterOptions write SetFooterOptions;
//storage //storage
property PropertyStorage: TCustomPropertyStorage property PropertyStorage: TCustomPropertyStorage read GetPropertyStorage write SetPropertyStorage;
read GetPropertyStorage write SetPropertyStorage;
property Version: integer read FVersion write FVersion default 0; property Version: integer read FVersion write FVersion default 0;
{$IFDEF RxDBGridDepricatedProps}
property AllowedOperations: TRxDBGridAllowedOperations
read GetAllowedOperations write SetAllowedOperations default [aoInsert, aoUpdate, aoDelete, aoAppend]; deprecated;
{$ENDIF}
property OptionsRx: TOptionsRx read FOptionsRx write SetOptionsRx; property OptionsRx: TOptionsRx read FOptionsRx write SetOptionsRx;
property FooterColor: TColor read GetFooterColor write SetFooterColor default clWindow; deprecated; property FooterColor: TColor read GetFooterColor write SetFooterColor default clWindow; deprecated;
property FooterRowCount: integer read GetFooterRowCount write SetFooterRowCount default 0; deprecated; property FooterRowCount: integer read GetFooterRowCount write SetFooterRowCount default 0; deprecated;
property OnFiltred: TNotifyEvent read FOnFiltred write FOnFiltred; property OnFiltred: TNotifyEvent read FOnFiltred write FOnFiltred;
// property Constraints:TRxDBGridCollumnConstraints read GetConstraints write SetConstraints;
property OnSortChanged: TNotifyEvent read FOnSortChanged write FOnSortChanged; property OnSortChanged: TNotifyEvent read FOnSortChanged write FOnSortChanged;
//from DBGrid //from DBGrid
@ -963,6 +896,7 @@ type
property OnStartDrag; property OnStartDrag;
property OnTitleClick; property OnTitleClick;
property OnRxCalcFooterValues: TOnRxCalcFooterValues read FOnRxCalcFooterValues write FOnRxCalcFooterValues; property OnRxCalcFooterValues: TOnRxCalcFooterValues read FOnRxCalcFooterValues write FOnRxCalcFooterValues;
property OnRxColumnFooterDraw: TOnRxColumnFooterDraw read FOnRxColumnFooterDraw write FOnRxColumnFooterDraw;
property OnUserCheckboxBitmap; property OnUserCheckboxBitmap;
property OnUserCheckboxState; property OnUserCheckboxState;
property OnUTF8KeyPress; property OnUTF8KeyPress;
@ -1099,6 +1033,30 @@ type
procedure EditingDone; override; procedure EditingDone; override;
end; end;
{ TRxDBGridColumnDefValues }
procedure TRxDBGridColumnDefValues.AssignTo(Dest: TPersistent);
begin
if Dest is TRxDBGridColumnDefValues then
begin
TRxDBGridColumnDefValues(Dest).FBlobText:=FBlobText;
end
else
inherited AssignTo(Dest);
end;
constructor TRxDBGridColumnDefValues.Create(AOwner: TRxDBGrid);
begin
inherited Create;
FOwner:=AOwner;
FBlobText:=sBlobText;
end;
destructor TRxDBGridColumnDefValues.Destroy;
begin
inherited Destroy;
end;
{ TRxColumnFooterItem } { TRxColumnFooterItem }
procedure TRxColumnFooterItem.FontChanged(Sender: TObject); procedure TRxColumnFooterItem.FontChanged(Sender: TObject);
@ -2448,6 +2406,11 @@ begin
end; end;
end; end;
procedure TRxDBGrid.SetColumnDefValues(AValue: TRxDBGridColumnDefValues);
begin
FColumnDefValues.AssignTo(AValue);
end;
function TRxDBGrid.GetColumns: TRxDbGridColumns; function TRxDBGrid.GetColumns: TRxDbGridColumns;
begin begin
Result := TRxDbGridColumns(TCustomDrawGrid(Self).Columns); Result := TRxDbGridColumns(TCustomDrawGrid(Self).Columns);
@ -2513,24 +2476,6 @@ begin
CreateMenuItem(#0, sRxDBGridCopyCellValue, @OnCopyCellValue); CreateMenuItem(#0, sRxDBGridCopyCellValue, @OnCopyCellValue);
end; end;
{$IFDEF RxDBGridDepricatedProps}
function TRxDBGrid.GetAllowedOperations: TRxDBGridAllowedOperations;
begin
Result:=[];
if dgDisableInsert in Options then
Result:=Result - [aoInsert, aoAppend]
else
Result:=Result + [aoInsert, aoAppend]
;
if dgDisableDelete in Options then
Result:=Result - [aoDelete]
else
Result:=Result + [aoDelete]
;
end;
{$ENDIF}
function TRxDBGrid.GetPropertyStorage: TCustomPropertyStorage; function TRxDBGrid.GetPropertyStorage: TCustomPropertyStorage;
begin begin
Result := FPropertyStorageLink.Storage; Result := FPropertyStorageLink.Storage;
@ -2562,22 +2507,6 @@ begin
Result := TRxDbGridColumns(TCustomDrawGrid(Self).Columns).Enabled; Result := TRxDbGridColumns(TCustomDrawGrid(Self).Columns).Enabled;
end; end;
{$IFDEF RxDBGridDepricatedProps}
procedure TRxDBGrid.SetAllowedOperations(AValue: TRxDBGridAllowedOperations);
begin
// FAllowedOperations:=AValue;
if [aoInsert, aoAppend] * AValue <> [aoInsert, aoAppend] then
Options:=Options - [dgDisableInsert]
else
Options:=Options + [dgDisableInsert];
if aoDelete in AValue then
Options:=Options - [dgDisableDelete]
else
Options:=Options + [dgDisableDelete]
end;
{$ENDIF}
procedure TRxDBGrid.SetColumns(const AValue: TRxDbGridColumns); procedure TRxDBGrid.SetColumns(const AValue: TRxDbGridColumns);
begin begin
TRxDbGridColumns(TCustomDrawGrid(Self).Columns).Assign(Avalue); TRxDbGridColumns(TCustomDrawGrid(Self).Columns).Assign(Avalue);
@ -3816,7 +3745,7 @@ begin
end; end;
end end
else else
S := '(blob)'; S := FColumnDefValues.FBlobText;
end end
else else
S := ''; S := '';
@ -3983,6 +3912,9 @@ var
TxS: TTextStyle; TxS: TTextStyle;
j: Integer; j: Integer;
FItem: TRxColumnFooterItem; FItem: TRxColumnFooterItem;
//FreeMan35 added
AText: String;
ABrush: TBrush;
begin begin
TotalWidth := GCache.ClientWidth; TotalWidth := GCache.ClientWidth;
TotalYOffs := GCache.ClientHeight - (DefaultRowHeight * FFooterOptions.RowCount); TotalYOffs := GCache.ClientHeight - (DefaultRowHeight * FFooterOptions.RowCount);
@ -4012,6 +3944,8 @@ begin
Canvas.LineTo(R.Right - 1, RowHeights[0]); Canvas.LineTo(R.Right - 1, RowHeights[0]);
end; end;
ABrush := nil;//initialize, no need create everytime.
R.Top := TotalYOffs; R.Top := TotalYOffs;
R.Bottom := TotalYOffs + DefaultRowHeight; R.Bottom := TotalYOffs + DefaultRowHeight;
// R.Bottom := TotalYOffs + DefaultRowHeight * FFooterOptions.RowCount; // R.Bottom := TotalYOffs + DefaultRowHeight * FFooterOptions.RowCount;
@ -4055,15 +3989,31 @@ begin
Canvas.Font:=FItem.Font Canvas.Font:=FItem.Font
else else
Canvas.Font:=Font; Canvas.Font:=Font;
DrawCellText(i, 0, R, [], FItem.DisplayText);
if not Assigned(OnRxColumnFooterDraw) then begin
DrawCellText(i, 0, R, [], FItem.DisplayText);
end
else
begin
if not Assigned(ABrush)then ABrush := TBrush.Create;
ABrush.Assign(Canvas.Brush);//Backup Brush info
AText := FItem.DisplayText;
OnRxColumnFooterDraw(Self, Canvas.Brush, Canvas.Font, R, C, AText);
Canvas.FillRect(R);//need repaint cell
DrawCellGrid(i, 0, R, []);//need reDraw cell
DrawCellText(i, 0, R, [], AText);
Canvas.Brush.Assign(ABrush);//Restore Brush info
end;
end; end;
end; end;//Assigned(C)
end; end;
R.Top := R.Bottom; R.Top := R.Bottom;
R.Bottom := R.Bottom + DefaultRowHeight; R.Bottom := R.Bottom + DefaultRowHeight;
end; end;
if assigned(ABrush)then FreeAndNil(ABrush);
if FDrawFullLine then if FDrawFullLine then
begin begin
Canvas.MoveTo(FooterRect.Left, FooterRect.Top); Canvas.MoveTo(FooterRect.Left, FooterRect.Top);
@ -5626,6 +5576,7 @@ begin
Options := Options - [dgCancelOnExit]; Options := Options - [dgCancelOnExit];
{$ENDIF} {$ENDIF}
FToolsList:=TFPList.Create; FToolsList:=TFPList.Create;
FColumnDefValues:=TRxDBGridColumnDefValues.Create(Self);
FSortColumns:=TRxDbGridColumnsSortList.Create; FSortColumns:=TRxDbGridColumnsSortList.Create;
@ -5633,11 +5584,9 @@ begin
FMarkerDown := LoadLazResBitmapImage('rx_markerdown'); FMarkerDown := LoadLazResBitmapImage('rx_markerdown');
Options := Options - [dgTabs]; Options := Options - [dgTabs];
OptionsRx := OptionsRx + [rdgAllowColumnsForm, rdgAllowDialogFind, OptionsRx := OptionsRx + [rdgAllowColumnsForm, rdgAllowDialogFind, rdgAllowQuickFilter];
rdgAllowQuickFilter];
FAutoSort := True; FAutoSort := True;
// FTitleButtons:=True;
F_Clicked := False; F_Clicked := False;
F_MenuBMP := LoadLazResBitmapImage('menu_grid'); F_MenuBMP := LoadLazResBitmapImage('menu_grid');
@ -5654,8 +5603,6 @@ begin
FPropertyStorageLink.OnSave := @OnIniSave; FPropertyStorageLink.OnSave := @OnIniSave;
FPropertyStorageLink.OnLoad := @OnIniLoad; FPropertyStorageLink.OnLoad := @OnIniLoad;
// FAllowedOperations := [aoInsert, aoUpdate, aoDelete, aoAppend];
FFilterListEditor := TFilterListCellEditor.Create(nil); FFilterListEditor := TFilterListCellEditor.Create(nil);
with FFilterListEditor do with FFilterListEditor do
begin begin
@ -5700,6 +5647,7 @@ begin
FreeAndNil(FKeyStrokes); FreeAndNil(FKeyStrokes);
FreeAndNil(FToolsList); FreeAndNil(FToolsList);
FreeAndNil(FColumnDefValues);
inherited Destroy; inherited Destroy;
FreeAndNil(FSortColumns); FreeAndNil(FSortColumns);
end; end;
@ -6717,9 +6665,7 @@ begin
end; end;
initialization initialization
{$IFNDEF RxDBGridDepricatedProps}
RegisterPropertyToSkip( TRxDBGrid, 'AllowedOperations', 'This property duplicated standart DBGrid.Options', ''); RegisterPropertyToSkip( TRxDBGrid, 'AllowedOperations', 'This property duplicated standart DBGrid.Options', '');
{$ENDIF}
{$I rxdbgrid.lrs} {$I rxdbgrid.lrs}
// {$I rx_markerdown.lrs} // {$I rx_markerdown.lrs}

View File

@ -213,6 +213,7 @@ resourcestring
sSetupTotalRow = 'Setup total row'; sSetupTotalRow = 'Setup total row';
sCollumnName = 'Column name'; sCollumnName = 'Column name';
sFunction = 'Function'; sFunction = 'Function';
sBlobText = '(blob)';

View File

@ -24,7 +24,7 @@ Copyright (c) 1998 Master-Bank
translate to Lazarus by alexs in 2005 - 2015 translate to Lazarus by alexs in 2005 - 2015
"/> "/>
<License Value="LGPL"/> <License Value="LGPL"/>
<Version Major="2" Minor="8" Release="1" Build="170"/> <Version Major="2" Minor="8" Release="2" Build="181"/>
<Files Count="72"> <Files Count="72">
<Item1> <Item1>
<Filename Value="autopanel.pas"/> <Filename Value="autopanel.pas"/>