[Lazarus] Detect that component selected in OI.
Ondrej Pokorny
lazarus at kluug.net
Sun May 22 12:56:43 CEST 2016
On 22.05.2016 11:02, Ondrej Pokorny wrote:
> On 22.05.2016 8:50, Ondrej Pokorny wrote:
>> IMO you can suggest a custom designing message that will handle it
>> without hard-coding it into the IDE. Because e.g. the TNotebook page
>> change doesn't work.
>
> No need. I added CM_OBJECTINSPECTORSELECT in r52338.
No, I reverted it. I though a little bit more about it and we shouldn't
pollute the LCL with designer code if not necessary.
Instead, do what Howard suggested (although not directly): In your
component's design-time package, register a SetSelection hook
("GlobalDesignHook.AddHandlerSetSelection(@OnComponentSelection);").
Then in OnComponentSelection you check if your own component is in the
new selection and do whatever you want.
Ondrej
More information about the Lazarus
mailing list