is there a way to change the Filter Editor button colors as shown in the screenshot? I am applying custom stylebooks to my application and it would be nice to change the colors to match. I would like to avoid creating custom filter editors if possible.
I figured it out by going through the FilterEditor controls looking for the buttons, and then changing the colors like this:
//this changes the colors of the filter editor buttons
for col := 1 to aGrid.ColumnCount-1 do
begin
for i := 0 to aGrid.FilterEditors[col,1].ControlsCount-1 do
begin
if aGrid.FilterEditors[col,1].Controls[i] is TTMSFNCToolBarButton then
begin
aButton := (aGrid.FilterEditors[col,1].Controls[i] as TTMSFNCToolBarButton);
aButton.Appearance.NormalFill.Color := TAlphaColors.Null;
aButton.Appearance.NormalStroke.Width := 0;
aButton.Appearance.HoverFill.Color := TAlphaColors.Null;
aButton.Appearance.HoverStroke.Width := 0;
aButton.Appearance.DownFill.Color := TAlphaColors.Null;
aButton.Appearance.DownStroke.Width := 0;
aButton.Cursor := crHandPoint;
end;
end;
end;
1 Like