[Lazarus] finding the package of the unit

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 28 22:00:53 CET 2013


On Mon, 28 Jan 2013 22:55:10 +0200
ik <idokan at gmail.com> wrote:

> On Mon, Jan 28, 2013 at 10:30 PM, Maxim Ganetsky <ganmax at narod.ru> wrote:
> > 28.01.2013 19:46, ik пишет:
> >
> >> Hello,
> >>
> >> How can If find what is the package that the file
> >> lazarusidestrconsts.pas belongs to ?
> >> I need to use some of it's text with my plugins. Strings such as
> >> srkmCatSrcNoteBook.
> >
> >
> > It is category name. Why do you need to reuse it?
> 
> My plugins add itself to the editor tab menu, and I wanted to use the
> same category for shortcuts, because it belongs there imho...

The srkmCatSrcNoteBook is the caption.
To find the shortcut you need the name of the category.
The name is 'SourceNotebook'.

  CmdCat:=IDECommandList.FindCategoryByName('SourceNotebook');


Mattias




More information about the Lazarus mailing list