Hello
You cannot change this behavior using the settings.
But you can change the transparency of the buttons if you inherit the grid and rewrite the GetDataEditButtonTransparency method.
Like this
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, MemTableDataEh, Db, DBGridEhGrouping, ADODB, GridsEh, DBGridEh,
MemTableEh, ToolCtrlsEh, DBGridEhToolCtrls, StdCtrls, Mask, DBCtrlsEh,
ObjectInspectorEh,
DBLookupEh, DynVarsEh, DBAxisGridsEh, EhLibVCL;
type
TDBGridEh = class(DBGridEh.TDBGridEh)
function GetDataEditButtonTransparency(ACol, ARow: Longint;
AxisBar: TAxisBarEh; Params: TAxisColCellParamsEh; EditButton: TEditButtonEh): Integer; override;
end;
type
TForm1 = class(TForm)
MemTableEh1: TMemTableEh;
DBGridEh1: TDBGridEh;
DataSource1: TDataSource;
procedure FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function TDBGridEh.GetDataEditButtonTransparency(ACol, ARow: Longint;
AxisBar: TAxisBarEh; Params: TAxisColCellParamsEh; EditButton: TEditButtonEh): Integer;
begin
Result := 0;
end;
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_F11 then
ShowObjectInspectorForm(ActiveControl, Rect(Left+Width+10, Top, Left+Width+10+300, Top+Height));
end;
initialization
end.