Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.388 Beiträge
Delphi 12 Athens
|
AW: Actions RichEdit Buttons
25. Jan 2023, 15:09
Danke...
damit funktioniert es.
Delphi-Quellcode:
constructor TfrRTFBase.Create(AOwner: TComponent; Preferences: TPreferences; FrameName: string);
begin
inherited Create(AOwner);
...
SetActionToControl(edtRTF);
...
end;
procedure TfrRTFBase.SetActionToControl(RichEdit: TDBRichEdit);
var
I: Integer;
Action: TEditAction;
begin
for I := 0 to actlstRTF.ActionCount - 1 do
begin
Action := TEditAction(actlstRTF.Actions[I]);
Action.Control := RichEdit;
end;
end;
...ich bin wie immer begeistert.
|