[Lazarus] Detect that component selected in OI.

Ondrej Pokorny lazarus at kluug.net
Sun May 22 16:21:01 CEST 2016


On 22.05.2016 14:13, Vojtěch Čihák wrote:
>
> procedure TMyTabSheet.HookSelection(const ASelection: 
> TPersistentSelectionList);
>
> begin
>
>   if assigned(FMyPageControl) and (ASelection.IndexOf(self)>=0) then
>
>   FMyPageControl.TabIndex:= FMyPageControl.Pages.IndexOf(self);
>
> end;
>
+ You also should check for selecting child controls (e.g. the user 
selects a button in the page). See 
TObjectInspectorDlg.DefSelectionVisibleInDesigner from r52344.

Ondrej

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


More information about the Lazarus mailing list