[Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Feb 23 00:45:35 CET 2017
On Wed, 22 Feb 2017 23:18:47 +0000
Graeme Geldenhuys via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>[...]
> But if I include the KeyMapping unit in my add-on package's uses clause,
> that unit can't be found.
Yes, an IDE package can only use the IDEIntf units, not the IDE code
itself.
> So I assume there is another way to do this -
> maybe another interface?
>
> What I'm trying to do is look-up a IDE command by name, then execute
> that command. All done from inside my IDE add-on package.
uses IDECommands;
Cmd:=IDECommandList.FindCommandByName('name');
ExecuteIDECommand(Sender,Cmd.Command);
Mattias
More information about the Lazarus
mailing list