Discussion:
[Lazarus] IDE extension
Fabio Luis Girardi via Lazarus
2018-07-16 14:09:09 UTC
Permalink
Hi!

I'm writing an IDE extension (similar to an existing IDE tool that's used
to rename component names when you press F2, but it will change the
property tag with another keyboard shortcut).

I followed the this:

http://wiki.freepascal.org/Extending_the_IDE#Adding_a_menu_item

to register a tool menu item and a shortcut. Now I don't know how to launch
my tool only if a component is selected in the form editor. Any ideas?
--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
Mattias Gaertner via Lazarus
2018-07-16 14:21:37 UTC
Permalink
On Mon, 16 Jul 2018 11:09:09 -0300
Post by Fabio Luis Girardi via Lazarus
Hi!
I'm writing an IDE extension (similar to an existing IDE tool that's used
to rename component names when you press F2, but it will change the
property tag with another keyboard shortcut).
http://wiki.freepascal.org/Extending_the_IDE#Adding_a_menu_item
to register a tool menu item and a shortcut. Now I don't know how to launch
my tool only if a component is selected in the form editor. Any ideas?
Maybe this helps:

http://wiki.freepascal.org/Extending_the_IDE#Designer_events

GlobalDesignHook.GetSelection

Mattias
--
Fabio Luis Girardi via Lazarus
2018-07-16 20:09:29 UTC
Permalink
Thanks!

This is what I'm looking for...

Em seg, 16 de jul de 2018 às 11:21, Mattias Gaertner <
Post by Mattias Gaertner via Lazarus
On Mon, 16 Jul 2018 11:09:09 -0300
Post by Fabio Luis Girardi via Lazarus
Hi!
I'm writing an IDE extension (similar to an existing IDE tool that's used
to rename component names when you press F2, but it will change the
property tag with another keyboard shortcut).
http://wiki.freepascal.org/Extending_the_IDE#Adding_a_menu_item
to register a tool menu item and a shortcut. Now I don't know how to
launch
Post by Fabio Luis Girardi via Lazarus
my tool only if a component is selected in the form editor. Any ideas?
http://wiki.freepascal.org/Extending_the_IDE#Designer_events
GlobalDesignHook.GetSelection
Mattias
--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
Continue reading on narkive:
Loading...