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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus