Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-07

IDE extension

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabio Luis Girardi

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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180716/06def2de/attachment.html>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi
Show quoted text 12 lines
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?

Maybe this helps:

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

GlobalDesignHook.GetSelection

Mattias

Reply by email

Fabio Luis Girardi
to Mattias Gaertner

Thanks!

This is what I'm looking for...

Em seg, 16 de jul de 2018 às 11:21, Mattias Gaertner <

Show quoted text 27 lines
escreveu: On Mon, 16 Jul 2018 11:09:09 -0300 Fabio Luis Girardi via Lazarus wrote: > 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? Maybe this helps: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180716/d84094e6/attachment.html>

Reply by email