Hello
Quote:
I want to change the SearchPanel color in ehlib grid( see #1 in picture )
Unfortunately, this part is hardcoded.
You need to modify TDBGridSearchPanelControlEh.GetPaintColors method
Code:
procedure TDBGridSearchPanelControlEh.GetPaintColors(var FromColor, ToColor,
HighlightColor: TColor);
var
Grid: TCustomDBGridEhCrack;
begin
Grid := TCustomDBGridEhCrack(Owner);
Grid.SetPaintColors;
FromColor := Grid.FInternalColor;
ToColor := Grid.FInternalFixedColor;
if FindEditor.Focused then
begin
HighlightColor := StyleServices.GetSystemColor(clHighlight);
FromColor := GetNearestColor(Canvas.Handle, LightenColorEh(Grid.FInternalColor, HighlightColor, True));
ToColor := GetNearestColor(Canvas.Handle, LightenColorEh(Grid.FInternalColor, HighlightColor, True));
end;
end;
Quote:
and change the scope search language(english) to other (see #2 in picture)
You can change properties of a global class TEhLibLanguageConsts.
Use
function EhLibLanguageConsts: TEhLibLanguageConsts in EhLibLangConsts unit to get access to the class
change property values in the initialization of your main unit.
Code:
unit Unit1;
...
initialization
EhLibLanguageConsts.BeginsWithEh := 'BeginsWith Test';
EhLibLanguageConsts.TheEntireGridEh := 'EntireGrid Test';
end.
or change values directly in the EhLibLangConsts.dfm file.