[Lazarus] Detect that component selected in OI.

Vojtěch Čihák vojtech.cihak at atlas.cz
Sat May 21 22:49:17 CEST 2016


That's something else. I need something that will be part of component. Something like overriden SetFocus; or so.
So far I tried CMDesignHitTest and DoEnter but it didn't work.
It's like when you design Form with PageControl and two TabSheets. You select the second TabSheet in OI and PageControl "knows" it and it changes the tabs on the form. I'd like to know how this works (what component's code allows this).
 
Thanks, V.
______________________________________________________________
> Od: Howard Page-Clark <hdpc at talktalk.net>
> Komu: lazarus at lists.lazarus.freepascal.org
> Datum: 21.05.2016 20:18
> Předmět: Re: [Lazarus] Detect that component selected in OI.
>

 TObjectInspectorDlg has several public properties that may help:
 
 Selection: TPersistentSelectionList
 OnSelectionChange: TNotifyEvent
 OnSelectPersistentsInOI: TNotifyEvent
 
 also a boolean property EnableHookGetSelection which gives you access to 
 protected get/set selection handlers.
 
 There are possibly other relevant methods too, it is a complex class.
 
 --
 _______________________________________________
 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/20160521/9c9db063/attachment-0003.html>


More information about the Lazarus mailing list