[Lazarus] Detect that component selected in OI.
Vojtěch Čihák
vojtech.cihak at atlas.cz
Sun May 22 17:21:40 CEST 2016
OK, thanks.
______________________________________________________________
> Od: Ondrej Pokorny <lazarus at kluug.net>
> Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> Datum: 22.05.2016 16:21
> Předmět: Re: [Lazarus] Detect that component selected in OI.
>
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
----------
--
_______________________________________________
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/768a010e/attachment-0004.html>
More information about the Lazarus
mailing list