-
Notifications
You must be signed in to change notification settings - Fork 241
Great but for TRichEdit #6
Copy link
Copy link
Open
Description
How to change for richedit?
Form1.Rich1.SelAttributes.Color := clRed;
Form1.Rich1.SelAttributes.Style := [fsBold];
I tried
TRichEdit= Class (Vcl.ComCtrls.TRichEdit);
TRichEditStyleHookColor = class(TRichEditStyleHook)
private
procedure UpdateColors;
protected
procedure WndProc(var Message: TMessage); override;
public
constructor Create(AControl: TWinControl); override;
end;
if Control.Enabled then
begin
Brush.Color := TWinControlH(Control).Color;
SelAttributes.Color:=TWinControlH(Control).Color;<<< dose not work
FontColor := TWinControlH(Control).Font.Color;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels