OK, thanks. ______________________________________________________________
Od: Ondrej Pokorny <[email protected]> Komu: Lazarus mailing list <[email protected]> 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 [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
