[Lazarus] Accessing OnGetSelectedComponentClass from a non-lcl design-mediator

Joost van der Sluis joost at cnoc.nl
Sun Nov 7 18:09:55 CET 2010


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.





More information about the Lazarus mailing list