[Lazarus] finding the package of the unit

ik idokan at gmail.com
Mon Jan 28 22:05:49 CET 2013


On Mon, Jan 28, 2013 at 11:00 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> 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');

Thanks Mattias

>
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list