[Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Feb 23 00:18:47 CET 2017


Hi,

I'm creating a IDE add-on package and using the IDEIntf. Now I have
access to the IDECommands global variable, but most of its methods are
abstract.

Searching the IDE source code it seems the IDECommands is often casted
to  TKeyCommandRelationList before methods are called. The
TKeyCommandRelationList is defined in the KeyMapping.pas unit.

But if I include the KeyMapping unit in my add-on package's uses clause,
that unit can't be found. 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.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


More information about the Lazarus mailing list