From f7e339a3a70f5bbe31833858e9084713c9818757 Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 21 May 2024 05:32:27 +0100 Subject: [PATCH] Revert "Docs: LCL/comctrls. Adds TCustomTabControl.ActivateFirstControlOnPage topic for changes in e5a63799. Issue #40775." This reverts commit 5c3a46c7855db56d6e00bed3c20a46eae44b86ec. (cherry picked from commit 8e37966d4906b24d895fea6559b21d3135609d26) --- docs/xml/lcl/comctrls.xml | 71 ++------------------------------------- 1 file changed, 3 insertions(+), 68 deletions(-) diff --git a/docs/xml/lcl/comctrls.xml b/docs/xml/lcl/comctrls.xml index 09868d828c..a41992f03e 100644 --- a/docs/xml/lcl/comctrls.xml +++ b/docs/xml/lcl/comctrls.xml @@ -3645,10 +3645,9 @@ pages in the tabbed control.

Change calls ShowCurrentPage to display the page in PageIndex, and hide the -previously visible page in the tabbed control. ActivateFirstControlOnPage is -called to select the focused control for the ActivePage or parent form. Change -calls DoChange when the control is not being destroyed, or loaded in the LCL -component streaming mechanism. +previously visible page in the tabbed control. Change calls DoChange when the +control is not being destroyed, or loaded in the LCL component streaming +mechanism.

Change is called from the MoveTab method, and when selection change messages @@ -4188,70 +4187,6 @@ Ordinal position for the page object removed from the page list. - - -Updates the ActiveControl on the parent form when the specified page becomes -active. - - -

-ActivateFirstControlOnPage is a method used to ensure that the -active control on a form is properly updated when the page on the tab control -is changed. It prevents the tabbed control from stealing focus if there is an -enabled child control on the page specified in APage. It sets the -ActiveControl property on the parent form to the first child control in APage -(when available). -

-

-No actions are performed in the method if any of the following conditions are -detected: -

- -

-ActivateFirstControlOnPage is called from the Change method, and when a new -value is assigned to the TabIndex property. It occurs after the current Page on -the tab control has been made visible and given focus. It occurs before the -OnChange event handler is signalled. -

- - -Added in LCL version 4.0. - - - - - - - - - -GetParentForm -TCustomForm.ActiveControl -TWinControl.FindNextControl - - - - -Tab page with child controls examined in the method. - - - Signals the OnChanging event handler prior to updates to PageIndex.