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

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 23 01:08:12 CET 2017


On Wed, 22 Feb 2017 23:53:54 +0000
Graeme Geldenhuys via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> Umm, that's exactly what I tried, but in never finds the command.
>[...]

You can list all registered names with

  for c:=0 to IDECommandList.CategoryCount-1 do begin
    Cat:=IDECommandList.Categories[c];
    for i:=0 to Cat.Count-1 do
      writeln(Cat.Name,' ',TIDECommand(Cat[i]).Name);
  end;

If it is there, check its OnExecute event.
 
> Oh, and the above code is only triggered when I save a unit - so at that
> point the IDE is fully loaded.

Mattias


More information about the Lazarus mailing list