[Lazarus] Detect that component selected in OI.

Vojtěch Čihák vojtech.cihak at atlas.cz
Sun May 22 15:45:04 CEST 2016


With a small correction: it must be hooked only in design time.
 
constructor TMyTabSheet.Create(TheOwner: TComponent);
begin
  ...
  if csDesigning in ComponentState then
    GlobalDesignHook.AddHandlerSetSelection(@HookSelection);
end;  
 
V.
 _______________________________________________
 Lazarus mailing list
 Lazarus at lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160522/a386e4f4/attachment-0004.html>


More information about the Lazarus mailing list