![]() |
Eigene Standard Action Class (TActionList)
Moin,
ich habe eine TActionList, der ich eine eigene StandardAction hinzufügen möchte. Also sowas wie TEditCut, TEditCopy usw. Wenn ich mir jetzt ne eigene Klasse bastel
Delphi-Quellcode:
wie kann ich die als Standard Action Class registrieren?
TMyClass = class(TAction)
public function Execute: Boolean; override; end |
Re: Eigene Standard Action Class (TActionList)
Hi,
mit RegisterActions... Auszug aus meinem Code:
Delphi-Quellcode:
[EDIT]Man muss natürlich ein Package dafür machen...[/EDIT]
procedure Register;
begin // RichEdit RegisterActions( 'RW RichEdit', [ TrwRTFIndent, TrwRTFUnIndent, TrwRTFBullets, TrwRTFBold, TrwRTFItalic, TrwRTFUnderLine, TrwRTFStrikeOut, TrwRTFFontName, TrwRTFFontSize, TrwRTFFontColor, TrwRTFAlignBlock, TrwRTFAlignCenter, TrwRTFAlignLeft, TrwRTFAlignRight ], nil); end; Frank |
Re: Eigene Standard Action Class (TActionList)
Kewl,
danke dir, hat funktioniert ;) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:25 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz