Sign in Join

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

Mailing lists / lazarus / 2010-11

Accessing OnGetSelectedComponentClass from a non-lcl design-mediator

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Joost van der Sluis

Hi all,

I'm working on a non-lcl design mediator and I want to get the selected component class on the componentpallet. But the
OnGetSelectedComponentClass event is defined in TDesigner, so is not accessible from the mediator.

Otoh, I could try to access the selected componentclass from the global variable IDEComponentPalette (which is defined in ideintf, thus accessible), but the selected item is defined componentpalette unit of the ide, so inaccessible.

What would be the best way to get the selected class on the componenpalette from within my own designer?

Joost.

Reply by email