[Lazarus] Detect that component selected in OI.

Ondrej Pokorny lazarus at kluug.net
Sun May 22 17:47:54 CEST 2016


On 22.05.2016 17:37, Vojtěch Čihák wrote:
>
> Separating Component Editors is quiet easy but how can I separate the 
> Hook (SelectionHook method) when I need "self"?
>
> Thanks, V.
>

For what do you need self? You have the list, so do

for I := 0 to ASelection.Count-1 do
   if ASelection[I] is TMyTabSheet then
     // do your job here

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160522/5a2ee76c/attachment-0003.html>


More information about the Lazarus mailing list