diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml index bba32db63c..7c4c58b04f 100644 --- a/docs/xml/lcl/forms.xml +++ b/docs/xml/lcl/forms.xml @@ -31,11 +31,11 @@
  • TApplicationProperties
  • - The unit also includes the TApplication and TScreen classes used in the Application and Screen singletons. + The unit also includes the TApplication and TScreen classes used in the Application and Screen singletons.

    - + @@ -71,19 +71,26 @@ - - The type of a procedure that takes no arguments - + Type used for a procedure that takes no arguments + +

    + Used to define members in control classes. +

    +
    - + - The type of a method that takes no arguments - + Type used for an object procedure that takes no arguments + +

    + Used to define members in control classes. +

    +
    - + Represents the Position and Size of a Form on Screen @@ -107,12 +114,12 @@ - Keeps the designed form size, but position determined by windowmanager. + Keeps the designed form size, but position determined by window manager. - Keeps the designed form position, but size determined by windowmanager. + Keeps the designed form position, but size determined by window manager. @@ -130,7 +137,7 @@ Centers the form on its Owner form - + Represents the actual State of the window on the screen @@ -170,7 +177,7 @@ The window appears in full screen mode, when allowed by the platform. It will, for example, attempt to appear on the top of taskbars and other static platform user interface elements. - + What should happen when a form is closed @@ -178,23 +185,19 @@ TCustomForm.OnClose - Do nothing - The form is hidden - The form is destroyed - The form is minimized - + Represents a standard action used to get a Hint value @@ -214,62 +217,57 @@ THintAction - + The text used for the Hint - + - The orientation of a ScrollBar + The orientation of a scroll bar - - Horizontal scrollbar + Horizontal scroll bar - - Vertical scrollbar + Vertical scroll bar - + - The range of scrollbar increments + The range for scroll bar increments - + - Scrollbar style flags + Scroll bar style flags - Default - Not used in the current LCL version. + Default style; not used in the current LCL version. - Scrollbar appears flat - Not used in the current LCL version. + Scroll bar appears flat; Not used in the current LCL version. - Scrollbar sends HotTrack messages - Not used in the current LCL version. + Scroll bar sends HotTrack messages; Not used in the current LCL version. - + Exception class raised in - + - Type for a scrollbar in TScrollingWinControl + Scroll bar type used in TScrollingWinControl

    - Scrollable controls supply their own integrated scrollbars, one for horizontal and one for vertical scrolling. This class allows access to (one of) these integrated scrollbars. + Scrollable controls supply their own integrated scroll bars, one for horizontal and one for vertical scrolling. This class allows access to (one of) these integrated scroll bars.

    A scrollable control has both a physical (visible) client size, and a logical (virtual) client size. @@ -278,13 +276,13 @@ The Range property reflects the total virtual client size, in pixels.

    - The Page property corresponds to physical (visible) client size, in pixels, excluding the scrollbars. It also determines the size of the slider, relative to the total Range. + The Page property corresponds to physical (visible) client size, in pixels, excluding the scroll bars. It also determines the size of the slider, relative to the total Range.

    The Position property reflects the virtual origin of the visible client area, equivalent to the top coordinate of the slider. The Position can be changed by the user or by code.

    - Scrollbars usually appear only when Range is higher than Page, i.e. when not the entire content can be shown at the same time. See the ScrollBar property of the scrolling control for details. + Scroll bars usually appear only when Range is higher than Page, i.e. when the entire content cannot be shown at the same time. See the scroll bar properties in TScrollingWinControl for more details.

    @@ -293,13 +291,14 @@
    - + - The virtual scroll range (FRange - ClientSize), at least zero (never negative) + The virtual scroll range (Range - ClientSize), at least zero and never negative - + + @@ -310,24 +309,39 @@ - The associated + The associated TScrollingWinControl instance - + - The Handle for the associated - - + Gets the Handle for the associated TScrollingWinControl instance + +

    + Provides the handle passed as an argument to routines in the LCL interface, including: +

    +
      +
    • GetScrollInfo
    • +
    • SetScrollInfo
    • +
    • GetScrollbarSize
    • +
    • GetScrollbarVisible
    • +
    +
    + + GetScrollInfo + SetScrollInfo + GetScrollbarSize + GetScrollbarVisible +
    The handle for the associated control - + The AutoScroll state for the associated TScrollingWinControl control - GetAutoScroll is not used as the read access specifier for the AutoScroll property. It is used in methods to ensure that the class reflects the current state for its associated control. + GetAutoScroll is not used as the read access specifier for the AutoScroll property. It is used in methods to ensure that the class reflects the current state for its associated control. @@ -339,74 +353,156 @@ True when the Control for the class instance has set its AutoScroll property - - + + + Gets the value for the Increment property + + + + + - + Value for the property + + + + Gets the value for the Page property + + + + - - + Value for the property + + + + + - True when the associated has a handle allocated - + True when the associated TScrollingWinControl and its handle are valid + +

    + Used in methods which call LCL interface routines to avoid exceptions resulting from an unassigned control or an invalid handle value. +

    +
    - + True when the associated TScrollingWinControl and its handle are valid + + + + Implements the storage specifier for the Range property + + + + + - - - - - Determines the scrollbar Range, using the physical and virtual size for the associated control - - + True when AutoScroll is enabled for the scroll bar + - Notifies the associated Control of changes - + Forces the associated control to update its scroll bars + +

    + Calls the UpdateScrollBars method in the associated TScrollingWinControl instance when its handle has been allocated. No actions are performed in the method during LCL component streaming and when the component is freed. +

    +
    + - Checks and updates the new range for scrollbars in the Control - + Validates and applies the specified Range and updates the scroll bars + +

    + Ensures that AValue is not less than zero (0). Applies the range limited value to the member for the Range property, and calls ControlUpdateScrollBars to refresh the scroll bars for the associated TScrollingWinControl instance. +

    +

    + InternalSetRange is called when the SetRange method updates the value for the Range property. +

    +
    + +
    - + Value checked and applied to the Range property + - Handler for the ScrollBar movement messages - - + Handler for scroll bar movement messages + +

    + ScrollHandler is a method used to ensure that the control message in Message is applied to the Position property for the scroll bar. ScrollHandler uses the ScrollCode member from the TLMScroll instance to determine the actions needed in the method. It handles the following ScrollCode values: +

    +
    +
    SB_LINEUP
    +
    Decreases Position by the value in Increment.
    +
    SB_LINEDOWN
    +
    Increases Position by the value in Increment.
    +
    SB_PAGEUP
    +
    Decreases Position by the value in Page.
    +
    SB_PAGEDOWN
    +
    Increases Position by the value in Page.
    +
    SB_THUMBPOSITION
    +
    Sets Position to the value in the Pos member in Message.
    +
    SB_THUMBTRACK
    +
    + Sets Position to the value in the Pos member in Message when Tracking is enabled. No actions are performed when Tracking is set to False. +
    +
    SB_TOP
    +
    Sets Position to 0 (zero).
    +
    SB_BOTTOM
    +
    Sets Position to the value in the Range property.
    +
    +

    + No actions are performed in the method if Message has any other value in its ScrollCode member. No actions are performed in the method at design-time. +

    +

    + ScrollHandler ensures the the new value for the Position property is in the range 0..Range. Calls InvalidateScrollInfo to force scroll bar information to be re-initialized. Calls SetPosition to apply the new value for the Position property and scrolls the associated TScrollingWinControl accordingly. Sets the Result member in Message to 1 to indicate the control message was handled in the method. +

    +

    + ScrollHandler is called when the WMHScroll or WMVScroll methods in the associated TScrollingWinControl instance are used to handle scroll messages. +

    +
    + + + + + + + +
    - Message examined in the method + Control message examined in the method + New value for the property @@ -451,7 +547,7 @@ When Control is a TScrollingWinControl instance, TScrollInfo is captured using the Range, Position, and Page properties. The scroll bar information is applied to the associated control by calling SetScrollInfo.

    - Please note: TScrollInfo values are not applied when a handle has not been allocated for the control, or when Control is not a TScrollingWinControl class instance. + TScrollInfo values are not applied when a handle has not been allocated for the control, or when Control is not a TScrollingWinControl class instance.

    UpdateScrollBar calls SetPosition to apply the current value in Position to a visible scroll bar in the class instance. When Control is a TScrollingWinControl instance, the Smooth property is used to determine if Increment needs to be adjusted to a value that is 10% of the Page size for the control. @@ -482,35 +578,35 @@ TLMScroll - + - Get the horizontal scrollbar for the Control + Get the horizontal scroll bar for the Control - TControlScrollBar instance representing the scrollbar + TControlScrollBar instance representing the scroll bar - Get the vertical scrollbar for the Control + Get the vertical scroll bar for the Control - Scrollbar for the control, or Nil when not a TScrollingWinControl descendant + Scroll bar for the control, or Nil when not a TScrollingWinControl descendant - + - Determines whether a scrollbar is required + Determines whether a scroll bar is required True when Visible, and Range is larger than the Page size - + Constructor for the class instance @@ -541,9 +637,9 @@ The windowed control in which the scroll bar is found - The scrollbar orientation + The scroll bar orientation - + If Source is a TControlScrollBar, copies properties to itself, else performs inherited Assign @@ -565,16 +661,16 @@ TControlScrollBar instance with the values copied in the method - + Determines the current widget state - True if scrollbar is visible + True if scroll bar is visible - + The scroll Position, zero if not Visible @@ -583,16 +679,18 @@ The scroll Position, zero if not Visible - + - Get the ScrollBar with the opposite orientation (horz/vert) for the current instance + + Gets the scroll bar with the opposite orientation (horz/vert) for the current instance + TControlScrollBar instance for the opposite orientation - + Gets the size for the scroll bar based on the client area in the associated control @@ -621,7 +719,7 @@ Size from the client area in the associated control - + Calculates the size of the associated control when the scroll bar is Visible @@ -647,7 +745,7 @@ Size for the client area after adjusting for a visible scroll bar - + Calculates the size of the associated control when the scroll bar is not Visible @@ -669,21 +767,19 @@ - - Size for the client area after adjusting for a hidden scroll bar - + Size for the client area when the scroll bar is hidden - + - The small Position increment, applicable to the scrollbar arrows + The small Position increment, applicable to the scroll bar arrows

    Increment is a TScrollBarInc property which indicates the amount the client area in the associated control is scrolled when the Up or Down navigation arrows on the scroll bar are clicked. The default value is 8.

    - The value in Increment may be automatically recalculated in the UpdateScrollBar method if the Smooth property is enabled, and the associated control is a TScrollingWinControl descendant. This is done to ensure that Increment contains 10% of the value for the Page property. + The value in Increment may be automatically recalculated in the UpdateScrollBar method when the Smooth property is enabled and the associated control is a TScrollingWinControl descendant. This is done to ensure that Increment contains 10% of the value for the Page property.

    Increment is used in the ScrollHandler method when updating the Position property for scroll bar messages received in the control. @@ -699,7 +795,7 @@ - + The orientation for the scroll bar: horizontal or vertical @@ -724,10 +820,9 @@ - - The slider size, position increment applicable to the scrollbar area beneath the slider + The slider size, position increment applicable to the scroll bar area beneath the slider

    @@ -737,7 +832,6 @@ - Position of the slider, 0..Range-Page @@ -748,7 +842,6 @@ - Enables smooth scrolling, with automatic adjustment of Increment and Page @@ -775,14 +868,14 @@ - + The virtual size of the Parent Control - + The adjustable size of the scroll bar @@ -792,7 +885,7 @@ - + Gives feedback while the slider is dragged @@ -803,12 +896,12 @@ - + - Hides the scrollbar when False (default True) + Hides the scroll bar when False (default True)

    - The scrollbar widget is visible only if (Visible=True) and (Range>Page). + The scroll bar widget is visible only if (Visible=True) and (Range>Page).

    Set Visible to False to disallow the user to scroll the content, while the content still can be scrolled by code. @@ -821,45 +914,57 @@ - + Class of a windowed control with incorporated scroll bars

    This class introduces a logical (virtual) client area, part of which is visible in the physical (visible) client area. ScrollBars allow the user to scroll through the logical client area.

    +

    + TScrollingWinControl is the ancestor for components like TScrollBox and TCustomDesignControl, and indirectly for TCustomFrame and TCustomForm. +

    - + + + + +
    - + + - + Prevents recursive updates, True while an update is already in progress - + - + - + + + Hides scroll bars with valid handles + + - + - Also calculates sizes for the scrollbars if required + Also calculates sizes for the scroll bars if required TWinControl.AlignControls @@ -875,7 +980,7 @@ Indicates if automatic scrolling is enabled for the control

    - AutoScrollEnabled is a Boolean function which indicates if automatic scrolling is enabled for the control. The return value is True when the control is NOT automatically resized, or used as a docksite by an active docking manager. + AutoScrollEnabled is a Boolean function which indicates if automatic scrolling is enabled for the control. The return value is True when the control is NOT automatically resized, or used as a dock site by an active docking manager.

    Use the AutoSize property to enabled or disable automatic control resizing. Set the UseDockManager property to False to disable use of the DockSite for the control. @@ -891,7 +996,7 @@ True when not automatically resized or used as a dock site - Sets or resets the ranges used for scrollbars in the control + Sets or resets the ranges used for scroll bars in the control Used in the implementation of the ComputeScrollbars method. @@ -899,9 +1004,9 @@ - + - + The virtual origin of the physical client area @@ -910,9 +1015,9 @@ - The ScrollBar Positions, or (0,0) if no scrollbars in use + The scroll bar Positions, or (0,0) if no scroll bars in use - + Returns the full virtual ClientRect. @@ -924,14 +1029,15 @@ - + - Also updates scrollbars if needed + Also updates scroll bars if needed TControl.DoOnResize + Calculates the size of the client area for the control excluding visible scroll bars @@ -953,6 +1059,7 @@ Height of the client area + Performs actions needed to handle WMSize messages @@ -973,7 +1080,7 @@ Message examined in the method - + Delegates scroll messages to the horizontal ScrollBar @@ -982,7 +1089,7 @@ - + Delegates scroll messages to the vertical ScrollBar @@ -991,36 +1098,62 @@ - + - Updates Page, AutoRange, IsScrollBarVisible, returns True on changes + + Updates Page, AutoRange, IsScrollBarVisible, and returns True when changed + - - True when something has changed + True when something has been changed in the scroll bar settings - - - - - - - - Also initializes the scroll bars - + + + Sets the value for the AutoScroll property + +

    + When the property is changed to True, the UpdateScrollBars method is called to calculate the page, range, and visibility for HorzScrollBar and VertScrollBar. When changed to False, the HideScrollbars method is called to reset the page, range, and visibility for the scroll bars. If the BoundsRect is updated in either method, the original valueis restored prior to exit. +

    +
    + + + + + + +
    + + New value for the property + + + + + Performs actions when the component has been loaded from the LCL streaming mechanism + + +

    + Loaded is an overridden method in TScrollingWinControl, and calls the inherited method on entry. It calls UpdateScrollBars to compute the page, auto ranges, and visibility for the scroll bars when AutoScroll is enabled. +

    +
    + + + + + TWinControl.Loaded
    + Performs actions needed when the control processes the WMSize message

    - Resizing is an empty implementation in TScrollingWinControl. It must be implemented in descendent form or control classes. + Resizing is an empty implementation in TScrollingWinControl. It must be implemented in descendent classes.

    @@ -1028,23 +1161,25 @@ - + - Allows ScrollBars to be displayed only when needed (when True) + + Indicates whether scroll bars are automatically displayed when needed + - + New value for the property - + Owner of the class instance - + Destructor for the class instance @@ -1057,6 +1192,7 @@
    + @@ -1064,6 +1200,7 @@ + @@ -1071,18 +1208,20 @@ - + - Initializes or updates the ScrollBars for the control - Ignores recursive calls. + Initializes or updates the scroll bars for the control + + Ignores recursive calls. + - + - + Tells the widget to scroll the client area relative The still visible part doesn't deserve a repaint (optimization). @@ -1094,27 +1233,67 @@ + - - - + Aligns the specified control to its parent and scrolls it into view + +

    + ScrollInView is a method used to align and scroll the control in AControl into the visible area for the scrolling window control. No actions are performed in the method under the following conditions: +

    +
      +
    • AControl has not been assigned (contains Nil).
    • +
    • The control is not the Parent (or ancestor) for AControl.
    • +
    • Neither horizontal nor vertical scroll bars are displayed for the control.
    • +
    +

    + The origin for AControl relative to its Parent is determined by calling the ClientToParent method. OffsetRect is called to apply the offset to the display rectangle for AControl. The adjusted coordinates are used to reposition the visible scroll bars so that AControl is visible in the client area for the scrolling window control. +

    +
    + + + + + + TControl.ClientToParent + OffsetRect +
    - Control which provides the bounds adjusted in the method + Control to make visible in the scrolling window control - + - The horizontal scroll bar (LCL control) - - + The horizontal scroll bar for the control + +

    + HorzScrollBar is a TControlScrollBar property with the horizontal scroll bar for the scrolling window control. The scroll bar is displayed for the control when its Visible property is True, or when Width is larger than the ClientWidth for the control and AutoScroll is enabled. +

    +
    + + + + + TControl.ClientWidth + TControl.Width +
    - + - The vertical scroll bar (LCL control) - - + The vertical scroll bar for the control + +

    + VertScrollBar is a TControlScrollBar property with the vertical scroll bar for the scrolling window control. The scroll bar is displayed for the control when its Visible property is True, or when Height is larger than the ClientHeight for the control and AutoScroll is enabled. +

    +
    + + + + + TControl.ClientHeight + TControl.Height +
    - + Implements a windowed control with scroll bars @@ -1187,6 +1366,7 @@ + Provides a designer surface for scaling and layout of its child controls @@ -1211,6 +1391,7 @@ + @@ -1371,7 +1552,7 @@ - + The base type for TFrame @@ -1393,12 +1574,12 @@ - + Adds the specified list of Actions to the Parent form for the frame class - Please note: No actions are performed in the method when a Parent form has not been assigned for the class instance. + No actions are performed in the method when a Parent form has not been assigned for the class instance. @@ -1408,12 +1589,12 @@ List of Actions added in the method - + Removes the specified list of Actions from the Parent form - Please note: No actions are performed in the method when a Parent form has not been assigned for the class instance. + No actions are performed in the method when a Parent form has not been assigned for the class instance. @@ -1423,7 +1604,7 @@ List of Actions removed in the method - + Implements reading the Left property for the designer surface @@ -1432,7 +1613,7 @@ - + Implements reading the Right property for the designer surface @@ -1441,7 +1622,7 @@ - + Implements writing the Left property for the designer surface @@ -1450,7 +1631,7 @@ - + Implements writing the Top property for the designer surface @@ -1460,7 +1641,7 @@ - + Invokes Proc for all Controls and also for all Components without a Parent @@ -1476,7 +1657,7 @@ Components are enumerated only if Root=Self - + Also handles add/remove of ActionLists @@ -1511,7 +1692,6 @@ New value for the property - Sets the value for the Parent property @@ -1552,7 +1732,7 @@ - + @@ -1563,7 +1743,7 @@ - + Constructor for the class instance @@ -1593,7 +1773,7 @@ Owner of the class instance - + @@ -1620,9 +1800,8 @@ - - + Frames can be designed like Forms and used like custom controls, without much coding or installation in the IDE. @@ -1798,7 +1977,7 @@
    fsFirstShow
    form is shown for the first time
    fsDisableAutoSize
    -
    disable autosize
    +
    disable auto-size
    @@ -1828,15 +2007,15 @@ form is shown for the first time
    - disable autosize + disable auto-size - + The set of form state flags - + Dummy type for the values that can be returned as a modal result @@ -1856,9 +2035,9 @@ - + - + TForm Notification handler types @@ -1873,7 +2052,7 @@ Notified after form Create - + How a form is represented in the TaskBar @@ -1890,7 +2069,7 @@ Never show the form in the TaskBar - + Defines the handling performed for a parent window in forms and dialogs @@ -1906,7 +2085,7 @@ - modal: popup to active form or if not available, to main form; non-modal: no window parent + modal: align to active form or main form; non-modal: no window parent

    @@ -1916,15 +2095,15 @@ - modal and non-modal: popup to active form or if not available, to main form + modal and non-modal: align to active form or main form - modal and non-modal: popup to PopupParent or if not available, to main form + modal and non-modal: align to PopupParent or main form - + Type used for an OnClose event handler in a form @@ -1949,7 +2128,7 @@ Set this to caNone, to prevent the form from closing - + Specifies an OnCloseQuery handler event handler @@ -1970,7 +2149,7 @@ Set to False to deny closing - + Type used for an OnDropFiles event handler @@ -1993,7 +2172,7 @@ The list of the dropped files - + Type used for an OnHelp event handler @@ -2021,7 +2200,7 @@ False suppresses help display - + Type used for an OnShortcut event handler @@ -2037,6 +2216,7 @@ Set Handled to True to prevent further processing of the key + Specifies an event handler signalled when a modal message dialog is completed @@ -2061,7 +2241,7 @@ Modal result value from the dialog - + The base type for TForm classes @@ -2072,7 +2252,7 @@ Forms represent a window or a dialog used as the user interface for a GUI application. It is a container where visual components (such as buttons, labels, edit fields, images, etc.) can be placed. It is also a designer surface which provides design-time support for configuration and layout of the content placed on the form.

    - TCustomForm acts an abstraction layer which masks implementation-specific routines required for the various widget sets supported in the Lazarus Component Library (LCL). Methods and properties are provided which interact with the underlying Operating System or platform, and provide a common API for form-related operations. + TCustomForm acts an abstraction layer which masks implementation-specific routines required for the various widgetsets supported in the Lazarus Component Library (LCL). Methods and properties are provided which interact with the underlying Operating System or platform, and provide a common API for form-related operations.

    @@ -2080,7 +2260,7 @@
    - + @@ -2212,7 +2392,7 @@ If an exception occurs in the method, the value in ModalResult is set to 0 (zero) and the Application.HandleException method is called.

    - Please note: CloseModal does not forward the action to the widget set class; that is performed in the ShowModal method to ensure it is executed in the widget set class. + CloseModal does not forward the action to the widgetset class; that is performed in the ShowModal method to ensure it is executed in the widgetset class.
    @@ -2232,7 +2412,7 @@
    - Loads the new form icons, and notifies the widget set and all forms + Loads the new form icons, and notifies the widgetset and all forms @@ -2353,7 +2533,7 @@ Called when the Focus changed

    - SetWindowFocus is a procedure used to ensure that the active control in the form instance has the inpout focus when the forms receives focus. At run-time, the control in ActiveControl (when assigned) is used as the active control. At design-time, the active control is the design surface for the current form instance. + SetWindowFocus is a procedure used to ensure that the active control in the form instance has the input focus when the forms receives focus. At run-time, the control in ActiveControl (when assigned) is used as the active control. At design-time, the active control is the design surface for the current form instance.

    No actions are performed in the method when a handle has not been allocated for the active control, or the control cannot be focused. @@ -2453,170 +2633,342 @@ + Called when the main menu has been changed - Don't show a main menu for dialog forms, i.e. when BorderStyle=bsDialog - (Delphi compatible). +

    + Ensures that handles for the Menu are valid for the form display style. The Menu is not displayed at run-time for a modal dialog form (BorderStyle is set to bsDialog); in this case, the DestroyHandle method in Menu is called to free the Handle for the Menu. (This is Delphi compatible). +

    +

    + The WindowHandle for the Menu is set to the Handle property from the form instance. +

    +

    + No actions are performed in the method if the Handle has not been allocated, or when Menu has not been assigned for the form. +

    + - Notifies the widget set of the change - + + Updates the widgetset class with the effective form visibility in the task bar + + +

    + Uses values in ShowInTaskBar and the TaskBarBehavior setting in Application to determine the effective visibility for the form in the task bar. Calls the SetShowInTaskbar method in the widgetset class to update the effective form visibility. +

    +

    + No actions are performed in the method for the following conditions: +

    +
      +
    • + When the form instance is the MainForm for the Application (it is handled by the application). +
    • +
    • + When the handle has not been allocated for the form instance. +
    • +
    • + When the form has a Parent control, or has been configured as a MDI Child form (FormStyle is fsMDIChild). +
    • +
    • + The form has not been made visible (Showing is False). +
    • +
    +
    + Handles the LM_ACTIVATE message which activates or deactivates the form - + +

    + Calls SetActive to update the value in the Active property to reflect the value for the Active member in Message. +

    +

    + When the form is being de-activated, the Deactivate method in Application is called. Otherwise, the Activate method in Application is called. The UpdateShowInTaskBar method is called ShowInTaskBar to determine the effective visibility for the form in the task bar. +

    +
    - + Control message examined in the method + Handles the LM_CLOSEQUERY message used to close the window - + +

    + Calls the Close method to process and apply the ModalResult and CloseAction for the form. Sets the Result member in Message to 0 (zero) to indicate that WndProc should ignore the message; it has been handled in this method (and Close). +

    +
    - - - What does Result=0 mean? - It means that WndProc should ignore the result because the message was already handled. - -
    - + Control message examined in the method + - - + Handles the LM_HELP window message for the form + +

    +

    + No actions are performed in the method at design-time, or when values have not been assigned to the HelpInfo member in Message. +

    +

    + When HelpInfo has a HELPINFO_WINDOW context type, FindControl is called to locate and display the help for the control with the item handle in Message. When HELPINFO_MENUITEM is the context type, GetHelpContext in Menu is called to locate the control ID in Message. If not found, the item handle in Message is used. As a default, the value in the Context property is used to display the context help. +

    +

    +
    - + Message examined in the method + - - + Handles the LM_SHOWWINDOW window message for the form + +

    + No actions are performed in the method when the form has already been made visible (FormState contains the value fsShowing). +

    +

    + Updates FormState to include the value fsShowing. Calls DoShowWindow to focus a control on the form (when needed). Removes fsShowing from FormState prior to exiting from the method. +

    +

    + Re-implements the method from the ancestor class; does not call the inherited method. +

    +
    - + Message examined in the method + - - + Handles the LM_SIZE window message for the form + +

    + Re-implements the method from the ancestor class. +

    +

    + Ensures that auto-sizing is disabled for a size message for a top-level form (where Parent is not assigned) or from the LCL interface. This is done by including the value fsDisableAutoSize in the FormState property. +

    +

    + Calls the inherited method to apply the width, height, and window state values in Message. +

    +
    - + Message examined in the method + - - + Handles the LM_WINDOWPOSCHANGED window message for the form + +

    + Re-implements the method from the ancestor class. +

    +

    + Ensures that auto-sizing is disabled for a position message to a top-level form (where Parent is not assigned), or from the LCL interface when new height or width values are provided. This is done by including the value fsDisableAutoSize in the FormState property. +

    +

    + Calls the inherited method prior to exit to apply the position and bounds for the form. +

    +
    - + Message examined in the method + - - + Handles the CM_BIDIMODECHANGED control message for the form + +

    + Re-implements the method from the ancestor class. Calls the inherited method on entry using the value in Message to set the BiDi and adjust the size for the control. +

    +

    + Ensures that all components owned by the form are notified of the change to the BiDiMode property. This is needed for menus on the form. A TLMessage instance is constructed with the CM_PARENTBIDIMODECHANGED message and displatched to all of the Components on the form not derived from TWinControl. TWinControl handles the notification for its descendants. Alignment is temporarily disabled during the process, and re-enabled prior to exiting from the method. +

    +
    - + Control message examined in the method + - - + Handles the CM_PARENTBIDIMODECHANGED control message for the form + +

    + Sets the BidiMode property to the value in Parent when ParentBiDiMode is True and Parent has been assigned. When Parent has not been assigned, the BiDiMode property in Application is copied to the form instance. +

    +
    - + Control message examined in the method + - - + Handles the CM_APPSHOWBTNGLYPHCHANGED control message for the form + +

    + Ensures that controls with a Glyph are notified when a change has occurred to a button glyph. Calls NotifyControls to broadcast Message to all Controls on the form. +

    +
    - + Control message examined in the method + - - + Handles the CM_APPSHOWMENUGLYPHCHANGED control message for the form + +

    + Ensures that menus and menus items are notified of a change to a Glyph. Dispatches the value in Message to all Components on the form. +

    +
    - + Control message examined in the method + - - + Handles the CM_ICONCHANGED control message for the form + +

    + Frees and re-creates handle(s) for icons used on the form, and notifies the widgetset class by calling its SetIcon method. +

    +
    - + Control message for the notification + - - + Handles the CM_RELEASE control message for the form + +

    + Calls the Free method to destroy the form instance. +

    +
    - + Control message for the notification + - - + Handles the CM_ACTIVATE control message for the form + +

    + Ensures that the Menu for the MainForm in the Application is merged into the Menu for the form instance when FormStyle is fsMDIChild. This action is not performed at design-time, or when the MainForm or the Menu for the Application has not been assigned. +

    +

    + Calls Activate to signal the OnActivate event handler (when assigned) if needed. +

    +
    - + Control message for the notification + - - + Handles the CM_DEACTIVATE control message for the form + +

    + This message occurs when the form loses focus within the application. +

    +

    + Calls the Deactivate method to signal the OnDeactivate event handler (when assigned). Ensures that the Menu merged to the application MainForm during activation is removed from the Menu for the Application. This action is not performed at design-time, or when Menu has not been assigned. It applies to a form using the fsMDIChild form style in an application using the fsMDIForm style in its MainForm. +

    +
    - + Control message processed in the method + - - + Handles the CM_SHOWINGCHANGED control message for the form + +

    + Uses the value in Showing to determine whether the DoShow or the DoHide method is called. When Showing is True, the DoShow method is called to signal the OnShow event handler (when assigned) if needed. When Showing is False, the DoHide method is called to signal the OnHide event handler (when assigned). +

    +

    + If either event handler raises an Exception, it is ignored when HandleShowHideException is set to True. It is re-raised when HandleShowHideException is False. +

    +

    + Calls the inherited method prior to exit to notify the widgetset class of the window state change, and to update window control flags for the form. +

    +
    - + Control message processed in the method + - - + Handles the LM_DPICHANGED window message for the form + +

    + Calls AutoAdjustLayout to apply the DPI setting in Message. This action is performed when: +

    +
      +
    • The Parent for the form has not been assigned.
    • +
    • Scaled is enabled for both the Application and the form instance.
    • +
    • + The DPI setting in Message is different than the PixelsPerInch value for the form. +
    • +
    +
    + + + Problem (Windows): if the form is shown the first time on a secondary monitor with a different DPI settings, the WM_DPICHANGED message is sent within UpdateBounds when BoundsLockCount>0 which means the bounds are not scaled. We force to update the bounds. See issue 32162. (A better solution is welcome.) + +
    - + Window message handled in the method + - - FActionLists is a local variable holding lists of actions associated with the Form - + Member used to store the action lists associated with the form + + + - When a control is not Active, sets the Focus to the first control in the TabOrder for the form + Chooses the active control when the form becomes visible at run-time - + +

    + Calls a private method to locate the first visible and enabled control in the tab order for the form. Sets the value in ActiveControl to the control instance located in the method. +

    +

    + No actions are performed in the method at design-time, when ActiveControl has already been assigned, or when the form instance has a Parent. +

    +

    + DoShowWindow is called from the WMShowWindow method where the LM_SHOWWINDOW window message is handled for the form. +

    +
    + - Notifies the OnActivate handler + Notifies the OnActivate event handler

    Activate is a procedure used to signal the OnActivate event handler (if assigned) when the form is activated. Activate is called when the CM_Activate message is handled for the form. @@ -2639,35 +2991,60 @@ TControl.OnChangeBounds + An empty implementation in TCustomForm - Can be implemented in a descendant to perform actions needed when the active form is changed. - Just like Delphi VCL. + Can be implemented in a descendant to perform actions needed when the active form is changed. Just like Delphi VCL. + Excludes borders from the given rectangle - + +

    + AdjustClientRect is an overridden method in TCustomForm which re-implements the method from the ancestor class. It is used to decrease the width and height for the client rectangle specified in Rect by the number of pixels in the BorderWidth property. It is used in the AlignControls method, and when auto-sizing is performed for Controls. +

    +
    TWinControl.AdjustClientRect
    - + Client rectangle adjusted in the method + - Locks form updates (AutoSize), until EndFormUpdate + + Increments the form update counter, and disables auto-sizing on the initial update lock + - Nested calls are allowed (pairs of Begin/EndFormUpdate). +

    + Used with the EndFormUpdate method to manage auto-sizing during form updates. For the initial call to BeginFormUpdate, DisableAutoSizing is called to suspend auto-sizing. +

    +

    + Use EndFormUpdate to decrement the update counter. When the update count reaches 0, auto-sizing is re-enabled. +

    - + + + + + +
    + + + Implements the storage specifier for the Color property + + + TControl.Color + - - + True when Color has value other than clDefault or clBtnFace + Initializes parameters used to create the handle for the form instance @@ -2675,7 +3052,7 @@ CreateParams is used to initialize parameters needed to create the handle for the form instance.

    - CreateParams is an overridden procedure in TCustomForm, and calls the inherited method on entry. CreateParams ensures that values in the Params argument are valid. This includes setting the realized parent form and window handle for a form which is not the main form in the application. Style flags are also updated to indicate how the form is displayed in the task bar. + CreateParams is an overridden procedure in TCustomForm, and calls the inherited method on entry. CreateParams ensures that values in the Params argument are valid. This includes setting the realized parent form and window handle for a form which is not the main form in the application. Style flags are also updated to indicate how the form is displayed in the task bar.

    @@ -2685,56 +3062,139 @@ Values examined and updated in the method + - Creates the widget, updates the widget-dependent properties. + + Creates the handle for the widgetset class and updates it Menu and Icons - + +

    + CreateWnd is an overridden method in TCustomForm used to create (or re-create) the Handle for the widgetset class. It sets the initial values for FormState, and calls the inherited method to handle auto-sizing and scroll bars. +

    +

    + CreateWnd ensures that a handle is allocated for the Menu and the Handle for the form is used as its WindowHandle. The CM_ICONCHANGED control message is performed to (re-)create handles for menu glyphs, and to post the changes to the widgetset class. +

    +
    - TWinControl.CreateWnd - TScrollingWinControl.CreateWnd + TScrollingWinControl.CreateWnd + TWinControl.CreateWnd
    + - Called when the form looses the focus. Notifies the OnDeactivate handler - - - - - Notifies the form close handlers - + Performs actions when the form loses focus + +

    + Called when the form loses focus in the application. Signals the OnDeactivate event handler (when assigned). Called from the CMDeactivate and WndProc methods. +

    +
    + + + + + +
    + + + Notifies handlers of the close action for the form + +

    + DoClose is a method used to notify close handlers for the form instance of the action requested in the CloseAction parameter. +

    +

    + It is called from the Close method for a form that is not displayed as a modal dialog; i. e. FormState does not contain fsModal. It occurs after CloseQuery (and OnCloseQuery) have been called to determine if the form can in fact be closed, and the CloseAction has been set for the form style. +

    +

    + DoClose signals the OnClose event handler (when assigned) to allow the form instance to modify the CloseAction argument. It iterates over the close handlers in the form instance, and signals each of the TCloseEvent instances in the method list using CloseAction as an argument. +

    +
    - + + + + + + +
    - + Close action to perform for the from instance + - Notifies the form create handlers - + Notifies the create handlers for the form instance + +

    + DoCreate is a method used to signal the create handlers for the form instance. DoCreate signals the OnCreate event handler (when assigned) to perform any actions needed for the new form instance. DoCreate also signals other create handlers to perform the methods using the current form instance as an argument. +

    +

    + If an Exception occurs in one of the event handlers, it is handled in the method when HandleCreateException returns True. When it returns False, the exception is re-raised in the method. +

    +

    + DoCreate calls LockRealizeBounds on entry to disable sending bounds changes to the widgetset class. UnlockRealizeBounds is called prior to exit to re-enable sending bounds changes to the widgetset class. +

    +

    + DoCreate is a called from the AfterConstruction method after the initial bounds for the form have been set, and before scaling and automatic layout adjustment are performed (if needed) for the new form instance. +

    +
    - + + + + +
    + - Notifies the OnDestroy handler - + Signals the OnDestroy event handler for the form instance + +

    + DoDestroy is a method used to signal the OnDestroy event handlers assigned for the form instance. If an Exception occurs in the event handler, it is handled in the method when HandleDestroyException is set to True. When set to False, the exception is re-raised in the method. +

    +

    + DoDestroy is called from the BeforeDestruction method, and allows the application to perform actions needed before the form instance is physically freed. It is called after the form has been removed from the focus list for the Screen, hidden by calling the Hide method, and merged menu items have been removed from the MainForm for the Application. +

    +
    + + + + + + + +
    + - Notifies the OnHide handler - + Signals the OnHide event handler for the form instance + +

    + Called from the CMShowingChanged method when Showing is set to False. +

    +
    + - Notifies the OnShow handler - + Signals the OnShow event handler when needed + +

    + No actions are performed in the method when a maximized or full-screen window (WindowState contains wsMaximized or wsFullScreen) is displayed for the first time. +

    +

    + DoShow is called from the DelayedEvent method in response to queued OnResize or OnChangeBounds events, and from the CMShowingChanged method when Showing is set to True. +

    +
    + Unlocks form updates; used with BeginFormUpdate @@ -2745,17 +3205,28 @@ TWinControl.FormEndUpdated
    + - Placeholder for exception handlers in derived classes - By default the Application exception handler is invoked. + + Indicates if an exception in the OnCreate event handler is handled by the application + + +

    + HandleCreateException is a Boolean function which indicates if an exception raised in the OnCreate event handler is handled in the form instance. The return value is True when the Application.CaptureExceptions property is set to True; the HandleException method in Application is called to notify its exception handlers of the exception. When the return value is False, the exception is re-raised in the caller. +

    +

    + HandleCreateException is called from the DoCreate method. +

    +
    - True when the exception was handled + True when the exception is handled by the application + Placeholder for exception handlers in derived classes By default the Application exception handler is invoked. @@ -2764,6 +3235,7 @@ + True when the exception was handled @@ -2775,22 +3247,38 @@
    + True when the exception was handled + Initializes the widget, also for AlphaBlend and AllowDropFiles + - Also renews ActiveControl and Visible - + + Performs actions when the component has been loaded using the LCL streaming mechanism + + +

    + Loaded is an overridden method in TCustomForm. +

    +

    + It disables alignment in the form, and adjusts the PixelsPerInch setting for the Font when it differs from the design-time setting. It is performed when Scaled is enabled for the form and the Application. This action is also performed for any child Controls. Calls the inherited Loaded method, and re-enables alignment for the form instance. +

    +

    + Ensures that the ActiveControl (when assigned) can receive focus. ActiveControl is set to Nil if the control cannot be focused for the form instance. Sets the Visible property to True when FormState contains the value fsVisible. +

    +
    TComponent.Loaded
    + Called when handles for child control are created in the form instance @@ -2804,6 +3292,7 @@ TWinControl.ChildHandlesCreated + @@ -2811,7 +3300,25 @@ - + + + + Calls the Paint method using the specified device context in the control Canvas + + +

    + PaintWindow is an overridden method in TCustomForm. It re-implements the method from the ancestor class, and does not call the inherited method. +

    +

    + PaintWindow assigns the device context in dc to the Canvas handle. The Paint method is called to signal the OnPaint event handler (when assigned). If a design surface is active for the form instance, its PaintGrid method is called. The Canvas handle is reset to 0 prior to exiting from the method. +

    +
    + +
    + + Device context (Handle) assigned to the Canvas for the form + + Calls the user Alignment handler (AlignControls). Here: NOP for a top-level form. @@ -2819,13 +3326,14 @@ + Performs actions needed when the form processes the WMSize message

    - Uses the value in State to determine the action required in the method. The LCL interface is used to determine if the window state is valid for the widget set. When allowed, the following methods are called for the corresponding TWindowState value: + Uses the value in State to determine the action required in the method. The LCL interface is used to determine if the window state is valid for the widgetset. When allowed, the following methods are called for the corresponding TWindowState value:

    wsMinimized
    @@ -2848,6 +3356,7 @@ Window state applied in the method + Here: clip width and height of a top-level form to the monitor WorkArea @@ -2864,167 +3373,453 @@ + - Here: Moves a top-level form in front or back of all forms + Moves a top-level form in front or back of all forms True for BringToFront - - - - - - Moves the form to its initial Position + + + Sets the value for the Parent property +

    + SetParent is an overridden method in TCustomForm used to set the value for the Parent property. +

    +

    + SetParent disables auto-sizing before updating the property value. The Handle for the form is destroyed and re-created when Parent is both assigned and Visible. +

    +

    + SetParent ensures that the PixelsPerInch settings for the form instance and its Parent are the same. AutoAdjustLayout is called when the values differ and Scaled has been enabled for both the Parent form and the Application. +

    +

    + SetParent re-enables auto-sizing prior to exiting from the method. +

    + TControl.Parent + TControl.SetParent
    + + New value for the property + + + + Moves the form to the location specified in the Position property + +

    + MoveToDefaultPosition is a method used to move the form instance to the location specified in its Position property. Position indicates the size and relative position for the form instance. See and for information about the property values and their meanings. +

    +

    + MoveToDefaultPosition gets the display rectangle for the form instance. Its dimensions and coordinates are translated to the Monitor and/or relative layout indicated in Position. SetBounds is called to apply the + translated origin, height and width to the form instance. +

    +

    + No actions are performed in the method when either Parent or the ParentWindow handle has been assigned for the form instance. No actions are performed in the method when WindowState contains wsFullScreen or wsMaximized. +

    +

    + MoveToDefaultPosition is called from the AllAutoSized, SetRestoredBounds, and UpdateShowing methods. It is also called when a new value is assigned to the Position property. +

    +
    + +
    + - Called when the widget visibility (Showing) is changed. Updates (and realizes?) all properties affecting the visual representation for the form. + Configures and position the form when its visibility has been changed - + +

    + UpdateShowing is an overridden method used to configure and position the form instance when the visibility for the form has been changed. +

    +

    + When Visible is set to True at run-time, the MoveToDefaultPosition method is called to move the form to the monitor / location in the Position property. This action is not needed (or allowed) at design-time. When FormState indicates it is the first time the form is being displayed, the DoFirstShow method is called to notify event handlers for the form. +

    +

    + UpdateShowing calls the inherited method to update the Handle for the form and the visibility for any child Controls. +

    +

    + If ActiveControl is not assigned, and there is no Parent form, the FindDefaultForActiveControl method is called to locate the first visible and enabled child control on the form. Its Handle is used to focus the control using the LCL SetFocus routine. +

    +

    + Finally, the visibility of the form in the task bar is updated and passed to the widgetset class. +

    +
    TWinControl.UpdateShowing
    - + + + Sets the value for the Visible property + +

    + SetVisible is an overridden method used to set the value for the Visible property. It ensures that FormState is updated to reflect the new value for the property. When set to True, fsVisible is included in the FormState property. Otherwise, fsVisible is excluded from FormState. No actions are performed in the method if FormState already already reflects the new value for the property. +

    +

    + SetVisible calls the inherited method to store the new property value, and to perform resizing and control messages as needed. The UpdateVisible method in Application is called to ensure that the application is visible in the task bar when one of its forms is visible. +

    +
    + +
    New value for the property + If the the form is about to show, calculate its metrics +

    + AllAutoSized is an overridden method used to apply the position and layout for a visible form that about to be displayed. AllAutoSized implements the virtual method defined in the ancestor class. +

    +

    + AllAutoSized is called from the DoAllAutoSize method when AutoSize has been enabled, and occurs after the bounds for the form have been calculated. It calls the MoveToDefaultPosition method to move the form to the monitor and relative location in Position. +

    +

    + No actions are performed in the method if the form is already Showing or it is not Visible. +

    + + + + + TWinControl.AllAutoSize + TWinControl.DoAllAutoSize
    + - Notifies the FirstShow handlers - + Executes handlers using the FirstShow handler type + +

    + Calls CallNotifyEvents in the internal method list for any methods using the fhtFirstShow handler type. The form instance is passed as an argument to the handler(s). +

    +

    + Called from the UpdateShowing method when the form is Visible and its Showing property is changed to True. Occurs after MoveToDefaultPosition has been to called to position the form on its monitor, and after the value fsFirstShow has been included in the FormState property. +

    +
    + + + + + +
    + UpdateWindowState is an empty implementation in TCustomForm - + +

    + Has an empty implementation in the current LCL version. +

    +
    - An empty implementation in the current LCL version.
    + Notifies all VisibleChanging handlers - - - - - Notifies all VisibleChanged handlers +

    + Calls the inherited method prior to exit. +

    - + TControl.VisibleChanging
    + + + Notifies all handlers when the visibility for the form has been changed + +

    + Calls the inherited method on entry. +

    +

    + When the Screen singleton has been assigned, its NotifyScreenFormHandler method is called to signal all snFormVisibleChanged handlers in the class instance. +

    +
    + + + + + +
    + Handled messages include: Activate, SetFocus, KillFocus, Exit, Enter, Window Position Changing, and DrawItem + +

    + WndProc is an overridden method which implements the processing loop for window and control messags received for the form instance. It extends the method from the ancestor class to provide form-specific support for messages including: +

    +
    +
    LM_SETFOCUS
    +
    + Chooses the active control for the form at run-time, and ensures that the control is focused. +
    +
    CM_EXIT
    +
    + Deactivates a HostDockSite (when asssigned) when the form loses focus. +
    +
    CM_ENTER
    +
    + Activates a HostDockSite (when assigned) when the form receives focus. +
    +
    LM_WINDOWPOSCHANGING
    +
    + Suppresses move or resize window messages as needed for the Position or BorderStyle properties. +
    +
    LM_DRAWITEM
    +
    + Handles owner-drawn Menu items for the item and command in the message. +
    +
    +

    + WndProc calls the inherited method to handle control-specific messages not handled in the method. +

    +
    +
    + + + Implements the storage specifier for the Visible property + +

    + Returns the value in the Visible property. +

    +
    +
    - - + True when the Visible property is set to True + - + + + Sets the value for the AutoSize property + +

    + SetAutoSize is an overridden method in TCustomForm used to set the value for the AutoSize property. +

    +

    + When set to True, it updates FormState to exclude the value fsDisableAutoSize, and modifies Position to use poDefault when it contains poDefaultPosOnly. +

    +
    + + + + + TControl.AutoSize + +
    - + New value for the property + + + + Sets the value for the AutoScroll property + +

    + SetAutoScroll is an overridden method in TCustomForm used to set the value for the AutoScroll property. It calls the inherited method to apply the new property value, but includes an additional test for the BorderStyle used on the form. AutoScroll cannot be set to True when BorderStyle has a value other than bsSizeable or bsSizeToolWin. +

    +
    + + + + +
    - - + New value for the property + + + Sets the value for the Scaled property + +

    + SetScaled is an overridden method in TCustomForm used to set the value for the Scaled property. It calls the inherited method on entry. At run-time, the AutoScale method is called when the new property value is set to True and differs from the existing property value. +

    +
    + + + + + + + +
    + + New value for the property + + Adds the specified list of actions to the ActionList for the form +

    + Ensures that the TList instance is allocated for the internal member. Calls the IndexOf method in the list to locate the value in the List argument. If it is not found, the Add method for the list is called to append the value. +

    +

    + DoAddActionList is called from the Notification method when a TCustomActionList instance is added to the form (during LCL streaming). +

    - + List with actions added to the form instance + - Removes an ActionList + Removes the specified list of actions from the internal list +

    + Calls the Remove method in the TList member to delete the TCustomActionList specified in List. +

    +

    + DoRemoveActionList is called from the Notification method when a TCustomActionList instance is removed from the form. +

    - - + + TCustomActionList
    - List of actions removed in the method + TCustomActionList instance removed in the method + Loads resources needed for the form - Calls InitResourceComponent to load form resources for the current form instance. + Calls InitResourceComponent to load resources for the current form instance. - Raises an EResNotFound exception if RequireDerivedFormResource is set for the application, and a resource is not found for the form. + Raises an EResNotFound exception if RequireDerivedFormResource is set for the application, and a resource is not found for the form. + - Checked BeginDrag + Re-implements the auto-drag behavior for forms - Allow form dragging only if it is docked into a site without a DockManager. +

    + BeginAutoDrag is an overridden method in TCustomForm which re-implements the auto-drag and dock behavior for form instances. It allows form dragging only if it is docked (HostDockSite is assigned) to a site where a DockManager is not used (UseDockManager is False). It does not call the inherited method. +

    - - why? + + TControl.HostDockSite + TWinControl.UseDockManager + +
    + + + Docks or undocks the form in the specified dock site + +

    + DoDock is an overridden method used to dock / undock the form instance in the dock site specified in NewDockSite. When NewDockSite is unassigned (contains Nil), the form instance is undocked from the host dock site. +

    +

    + ARect contains the bounds for the new dock site after resizing and alignment (when needed). +

    +

    + When a form is docked, its BorderStyle is set to bsNone. DoDock ensures that the value in the BorderStyle property is saved or restored for the form when the value in HostDockSite is changed. If NewDockSite has been assigned, the value in BorderStyle is saved to an internal member. If NewDockSite is Nil, the value in BorderStyle is restored from the internal member. +

    + + Changes needed for the Align property must be handled in the DockManager. + +

    + DoDock calls the inherited method prior to exit. +

    +

    + DoDock is called from the Dock method in an ancestor class. +

    +
    + + + TControl.DoDock + TControl.HostDockSite + TWinControl.Dock +
    - - + New dock site for the form instance - + + Rectangle with the bounds for the new dock site after resizing and alignment + - - - - - - Here: returns the Caption + + + Gets the value for the Floating properting - + + TControl.Floating + TControl.GetFloating + + + + Value for the property + + + + Default caption displayed when the form is docked + +

    + GetDefaultDockCaption is an overridden String function used to get the default caption displayed when the form is docked. GetDefaultDockCaption returns the value in the Caption property. +

    +

    + Called from the GetDockCaption method in an ancestor class. The value is passed as an argument to the OnGetDockCaption event handler. +

    +
    + + + + TWinControl.GetDockCaption + TWinControl.OnGetDockCaption +
    - + Default caption displayed when the form is docked + - Handler for ActionExecute messages - + Handles the CM_ACTIONEXECUTE control message + +

    + Calls DoExecuteAction to execute the TBasicAction passed as an argument in Message. Sets the Result member in Message to 1 to indicate that the action was performed in the method. +

    +

    + Called when a CM_ACTIONEXECUTE control message dispatched in the WndProc method in TApplication is processed for the form instance. +

    +
    - + Control message examined in the method + - Handler for ActionUpdate messages + Handles the CM_ACTIONUPDATE control message - + Control message examined in the method + Asks all applicable components to execute an action @@ -3039,6 +3834,7 @@ Action to execute + Tries all applicable components to update an action @@ -3052,6 +3848,7 @@ + Asks all components on the form to update their actions @@ -3074,6 +3871,7 @@ TControl.InitiateAction + The Handle of the MDIForm client (container for MDI children) @@ -3081,22 +3879,51 @@ - + + + Constructor for the class instance + +

    + Create is the overridden constructor for the class instance. Create sets the default values for internal members used in the form instance, and calls the CreateNew method to configure the visible aspects of the form instance. At run-time, it also calls ProcessResource to load the form content from its resource file. +

    +
    + + + + +
    Owner for the class instance + - Creates a form without a resource - + Creates a form instance without a resource (.lfm) file + +

    + CreateNew is an alternate constructor for the class instance. CreateNew is used to create a new TCustomForm instance which is not loaded from a resource file (.lfm). It performs actions to initialize properties for the form instance, including: +

    +
      +
    • Sets the FormState to fsFirstShow and calls BeginFormUpdate.
    • +
    • Sets the default BorderIcons for the form.
    • +
    • Sets the FormStyle, ControlsStyle, and BorderStyle for the form.
    • +
    • Calls the inherited Create constructor.
    • +
    • Sets the default bounds for the form instance.
    • +
    • Sets Visible to False.
    • +
    • Sets WindowState to wsNormal.
    • +
    • Allocates resources for the Icon property but does not assign a bitmap.
    • +
    • Sets the default value for Color.
    • +
    • Calls Screen.AddForm to register the form instance on the current screen.
    • +
    +
    Owner for the new class instance - Here: ignored - purpose? + Ignored in the current implementation + Destructor for the class instance @@ -3121,18 +3948,54 @@ - - + + + + Performs actions when the form has been created and loaded from its resource file + + +

    + Implements the virtual method defined in the ancestor class. +

    +

    + Called after the form instance has been created and loaded from its resource file (when needed). +

    +

    + Ensures that the initial bounds for the form are set to the values in the Left, Top, Bottom, and Right properties. Calls DoCreate to signal the OnCreate event handler (when assigned). Ends the form update started in the CreateNew constructor. Ensures that scaling and automatic layout are applied to form instance (if needed) when Scaled is enabled for both the form instance and the Application. +

    +
    + + TObject.AfterConstruction + +
    + + + Performs actions before the form instance is physically freed + +

    + Calls the inherited method on entry to signal any OnBeforeDestruction event handlers assigned to the form instance. +

    +

    + Removes the form instance from the list of focused forms in the Screen singleton. At run-time, the Hide method is called when the form is not a MDI child form in the application. If the form is a MDI child form, merged menu items are removed from the menu in the MainForm for the Application. +

    +
    + + TControl.BeforeDestruction + +
    + + - The Handle of the big form icon + Handle for the large icon used on the form + Closes the form @@ -3147,8 +4010,9 @@ + - Asks the OnCloseQuery handler whether the form can close + Asks the OnCloseQuery handler whether the form can be closed @@ -3157,18 +4021,21 @@ + - Updates ActiveControl if it is to be defocused + Updates ActiveControl if it is to be de-focused - The control that looses the focus + The control which will lose focus - True when the control is removed + True if the control is no longer the ActiveControl + + Ensures that the form is fully visible, and optionally brings it in front of all other forms @@ -3179,6 +4046,7 @@ Bring the form to front if True + Gives focus to the specified control @@ -3196,6 +4064,7 @@ The control receiving the focus + Indicates if the BeginFormUpdate method has been called without a corresponding EndFormUpdate method call @@ -3216,12 +4085,27 @@ non-zero value + Makes a Bitmap image with the Form content + +

    + GetFormImage is a TBitmap function used to get a bitmap image with the contents for the form instance. The return value must be managed by the caller to ensure that the image is freed. +

    +

    + GetFormImage sets the size for the TBitmap instance to the values in the ClientWidth and ClientHeight properties. The GetWindowRect routine in lclintf is called to get the display rectangle for the form Handle. The PaintTo method is called to draw the rectangle to the Canvas in the bitmap. +

    +

    + The return value can be Nil if an Exception was raised and handled in the method. +

    +
    + +
    - + Bitmap created in the method with the image for the form + The role(s) for the control in a modal form (default or cancel button) @@ -3233,6 +4117,7 @@ + Gets the form that is the effective parent for the pop-up, dialog, or splash screen @@ -3245,7 +4130,9 @@ Form instance that is the parent for the pop-up form, or Nil for a splash screen + + Invokes the OnDropFiles handler of the form. This function is called by the LCL interface. @@ -3260,6 +4147,7 @@ + Show help for control or menu item. This function is called by the LCL interface. @@ -3272,46 +4160,83 @@ + - Asks all applicable components to interpret a keystroke as a shortcut. Returns True when the specified Key and Message are active as a shortcut. + Determines whether the specified message contains a shortcut or accelerator key - + +

    + Checks form components to determine whether the specified message is a shortcut or accelerator key used on the form. This includes signalling the OnShortcut event handler (when assigned), calling IsShortCut for the form Menu, or calling IsShortcut for the ActionLists for the form instance. +

    +

    + Returns True when the specified Message is an active as a shortcut. +

    +
    - True when the specified Key was handled as a shortcut. - + True when the specified Key was handled as a shortcut - + Control message examined in the method + - Extends or shrinks the form to a monitor - - + Resizes the form for the specified monitor + +

    + MakeFullyVisible is a method used to make the form instance fully visible on the specified monitor. This prevents the form from being partially visible on multiple monitors. +

    +

    + AMonitor is the TMonitor instance where the form is displayed. If AMonitor is not specified (contains Nil), the value in the Monitor property is used. +

    +

    + UseWorkarea indicates whether the work area for the target monitor is used. When set to True, the form uses the bounds established for the work area instead of the physical monitor. The default value for the parameter is False. +

    +

    + MakeFullyVisible ensures the form fits within the required bounds for the monitor or work area. If the form is too wide or too tall, the form bounds are adjusted so that the form fits within the required bounds. +

    +
    - The monitor to use, Nil means the design-time monitor + + The monitor where the form is displayed, or Nil to use the design-time monitor + - If True then extend to the WorkArea for the monitor. Otherwise, clip the form to the monitor bounds. + When True the form is adjusted to the bounds for the WorkArea for the monitor. Otherwise, the form is clipped to the monitor bounds. + - Returns True if AutoSize should be skipped or delayed because of a missing handle + Returns True if an auto-size action should be skipped when a form handle is not available - - + +

    + AutoSizeDelayedHandle is an overridden Boolean function used to determine if an AutoSize action must be deferred due to a missing form Handle. +

    +

    + When either Parent or ParentWindow has been assigned, the form is treated like a TWinControl; the return value is set to the value from the inherited method. +

    +

    + If one of the values is unassigned, the return value is always set to False. The form has its own handle, and the resize action does not need to be delayed. +

    +

    + Called from the AutoSizeDelayed method in an ancestor class. +

    +
    - propagate back into TControl?
    - + + True if an auto-size action should be skipped when a form handle is not available + + @@ -3325,6 +4250,7 @@ + Marks the form for destruction @@ -3341,6 +4267,7 @@
    + True when the form can receive focus @@ -3357,9 +4284,11 @@ True when the form can receive focus in the application + + - Handles focus switch to a control (enter/exit messages) + Handles a focus change for a control (enter/exit messages) @@ -3367,29 +4296,58 @@ False when the focused control cannot be changed - The control that received the focus + The control with focus on the form + Sets the bounds for the restored control - Temporarily goes into the normal (restored) window state, if required. + +

    + Ensures that the parameter values are used in the form instance. No actions are performed in the method when ALeft, ATop, AWidth, and AHeight are already assigned to the corresponding properties in the form instance. +

    +

    + Temporarily sets WindowState to wsNormal, and calls SetBounds to apply the parameter values to the form instance. Calls MoveToDefaultPosition when ADefaultPosition is True. Restores WindowState to its original value, and updates the values for the RestoredLeft, RestoredRight, RestoredWidth, and RestoredHeight properties. +

    +

    + Called from the AfterConstruction method prior to signalling the OnCreate event handler and applying the automatic layout policy for the form instance. +

    +
    - + Value to restore to the Left property for the form - + Value to restore to the Top property for the form - + Value to restore to the Width property for the form - + Value to restore to the Height property for the form - + + True if the form is moved to the monitor and location in the Position property + - + + + Displays the form instance with support for High DPI scaling + +

    + Show is a method used to display the form in an LCL application. It re-implements the method defined in an ancestor class, and does not call the inherited method. +

    +

    + Show ensures that scaling is performed using the automatic layout policy for the form instance. The PixelsPerInch setting for the Monitor is applied (when needed) by calling the AutoAdjustLayout method. This action is performed when both the Application and the form instance have their Scaled properties set to True. +

    +

    + Show sets the value in the Visible property to True, and calls the ShowWindow routine in the LCL interface at run-time using the Handle and WindowState for the form. The BringToFront method is called to apply the Z-Order for the form instance and its siblings. +

    +
    + +
    + Displays the form as a modal Dialog @@ -3413,25 +4371,38 @@ The modal result for the dialog + - Shows this form in front of all other forms - + Displays the form in front of all other forms + +

    + Makes the form Visible and moves it to the top of the Z-Order. WindowState is changed to wsNormal if the form is currently in a minimized state (wsMinimized). Sets the value in Visible to True, and calls BringToFront to move the form to the top of the Z-Order among its siblings. +

    +
    + - Returns (and eventually creates) the Handle of the small Form or Application Icon. + Returns (and optionally creates) the Handle for the small Icon used for the form - + Handle for the small Icon for the form + - Invokes Proc for all Controls and also for all Components with no Parent - + + Executes the specified callback for all child Controls, and Components with no Parent + + +

    + GetChildren is an overridden method in TCustomForm which executes the callback method specified in Proc for child Controls owned by Root, or Components which do not have a Parent. It calls the inherited method in TWinControl to execute the callback for Child controls owned by Root. GetChildren iterates over the values in Component, and calls Proc when the HasParent method for a given component returns False. +

    +
    TWinControl.GetChildren @@ -3442,14 +4413,14 @@ Components are enumerated only if Root is Self + Always returns False in TCustomForm - ? - Here: always False + Returns False in TCustomForm Control with the key message for the method @@ -3457,14 +4428,17 @@ Key message from the child control + + Adds a handler for the first Show of the form + Used in TAnchorDockHostSite.CreateNew. @@ -3472,14 +4446,17 @@ + Removes a handler for the first Show of the form + Not used in the current LCL version. + Adds a handler for form Close @@ -3491,6 +4468,7 @@ + Removes a handler for form Close @@ -3499,6 +4477,7 @@ + Adds a handler for form Create @@ -3510,6 +4489,7 @@ + Removes a handler for form Create @@ -3518,16 +4498,18 @@ + Returns the currently active MDI child form - A non-nil result is returned only when FormStyle contains fsMDIForm or fsMDIChild; otherwise Result is nil. + A non-Nil result is returned only when FormStyle contains fsMDIForm or fsMDIChild; otherwise Result is nil. Nil if the form is neither an MDI host nor child + Nil if caller isn't an MDI type or handle isn't allocated @@ -3535,53 +4517,138 @@ + -1 if caller isn't an MDI form or handle is not allocated + - Sets scaled to True and AutoAdjustLayout to current monitor PPI - + + Sets scaled to True and calls AutoAdjustLayout with the current PPI for the monitor + + +

    + AutoScale is a method used to apply an automatic layout adjustment policy to scale the form and its controls when enabled and needed. +

    +

    + AutoScale sets the value in the Scaled property to True if it is not already enabled. This causes AutoScale to be called again, so no additional actions are performed in the current method call. +

    +

    + AutoScale uses the value in the PixelsPerInch property for the Monitor where the form is displayed to determine if the form and its controls need to be scaled. When Scaled is enabled for the Application, and the run-time PixelsPerInch setting differs from the design-time value, the AutoAdjustLayout method is called. The lapAutoAdjustForDPI policy is applied in the method using scaling factors for the Width and Height values on the form and its Controls. +

    +

    + AutoScale is called when a new value is assigned to the Scaled property. +

    +
    + +
    + + + + +

    + Calls the inherited method using the values in NewDockSite and ARect as arguments. +

    +
    - - + + + Gets the combined Caption for DockClients on the form + +

    + UpdateDockCaption is an overridden method used to get the combined Caption for all DockClients on the form. It does not call the inherited method. +

    +

    + Exclude contains a control which is omitted from the Caption values (when assigned). UpdateDockCaption iterates over the controls in DockClients to build the combined Caption for visible controls (other than the control in Exclude). Blank control captions are ignored. UTF8FixBroken is called to ensure that a given caption does not contain invalid UTF-8 characters. The caption for a TMemo control is truncated after 20 characters. +

    +

    + The Caption values for the controls are concatenated into a comma-delimited list of values which are assigned to the Caption property. An empty string is never assigned to the Caption property. +

    +

    + UpdateDockCaption is called when a new value is assigned to the Text property for a DockClient control with an assigned HostDockSite. +

    +
    + + TWinControl.UpdateDockCaption + +
    - + Control to omit from the combined caption value + - Contains True when the form has the focus - Use active to check if the form has the focus - - - - Specifies the active control on the form - Use this to get or set the active control on this form. - - - - Specifies the Default control for the Form - The Default control reacts on the Enter key pressed. + Indicates if the form is enabled, visible, and has focus + +

    + Active is a read-only Boolean property which indicates if the form is enabled, visible, and has focus. +

    +

    + The SetActive method is used to update the value for the property, locate an ActiveControl for the form, and give focus to the form control. SetActive is called from the WMActivate method when the LM_ACTIVATE window control message is handled for the form. +

    +

    + The value in Active is used in the FocusControl method. It causes SetFocus to be called when its value is False. It is also used in the SetActiveControl method to determine if the window already has focus when the active control is changed. +

    + + + Specifies the active control on the form + +

    + ActiveControl is a TWinControl property which contains the control which has focus on the form. The property value can be Nil if the form is hidden, disabled, or has never been activated. +

    +

    + Setting a new value for the property causes validity checks to be performed to ensure that the specified control can receive focus when the form is Visible. An EInvalidOperation exception is raised when the new property value contains: +

    +
      +
    • The current form instance.
    • +
    • A control not parented by the current form instance.
    • +
    • A control that returns False from its CanFocus method.
    • +
    +

    + The SetWindowFocus method is called if the form is Active, and the ActiveChanged method is called. +

    +

    + The value in ActiveControl is updated in the FocusControl and DefocusControl methods. +

    +
    + +
    + + + Specifies the active default control on the form + +

    + The active control which is the default control executed when the Enter key is pressed. When setting a new value for the property, a previous default control is notified of the change to the property value using the ActiveDefaultControlChanged method. +

    +
    + + + + +
    + Specifies whether files can be dropped onto this form

    - AllowDropFiles is a Boolean property which indicates whether this form receives an OnDropFiles event when files are dropped on form during a drag-and-drop operation. + AllowDropFiles is a Boolean property which indicates whether this form receives an OnDropFiles event when files are dropped on the form during a drag-and-drop operation.

    + Allows the form to be drawn with translucency @@ -3592,13 +4659,13 @@ Use AlphaBlendValue to specify the degree of transparency and diffusion applied to the form content.

    - Changing the value in AlphaBlend causes the widgetset class to be notified of the property change at run-time when a handle has been allocated for the form instance. A change to the property value is not rendered at design-time. + Changing the value in AlphaBlend causes the widgetset class to be notified of the change at run-time when a handle has been allocated for the form instance. A change to the property value is not rendered at design-time.

    AlphaBlend and AlphaBlendValue are used in the implementation of the InitializeWnd method, and passed as arguments to methods in the widgetset class when either of the values are changed.

    - Please note: AlphaBlend requires support from both the Desktop Environment (DE) and the hardware for the system; it may not work on all hardware, or platform / operating system combinations supported as Lazarus targets. + AlphaBlend requires support from both the Desktop Environment (DE) and the hardware for the system; it may not work on all hardware, or platform / operating system combinations supported as Lazarus targets.
    @@ -3606,6 +4673,7 @@
    + The translucence level for the form (0=transparent, 255=opaque) @@ -3622,7 +4690,7 @@ AlphaBlend and AlphaBlendValue are used in the implementation of the InitializeWnd method, and passed as arguments to methods in the widgetset class when either of the values are changed.

    - Please note: AlphaBlend and AlphaBlendValue require support from both the Desktop Environment (DE) and the hardware for the system; it may not work on all hardware, or platform / operating system combinations supported as Lazarus targets. + AlphaBlend and AlphaBlendValue require support from both the Desktop Environment (DE) and the hardware for the system; it may not work on all hardware, or platform / operating system combinations supported as Lazarus targets.
    @@ -3630,17 +4698,19 @@
    + Indicates if the form can automatically show or hide scroll bars

    - AutoScroll is a Boolean property which indicates if the form can automatically show or hide its scroll bars. Set AutoScroll to True to enable scroll bars when the form size is too small to display its content in its entirety. AutoScroll can only be True when the BorderStyle for the form is bsSizeable or bsSizeToolWin, and may be changed to False at run-time when setting the value in the BorderStyle property to another value. + AutoScroll is a Boolean property which indicates if the form can automatically show or hide its scroll bars. Set AutoScroll to True to enable scroll bars when the form size is too small to display its content in its entirety. AutoScroll can only be True when the BorderStyle for the form is bsSizeable or bsSizeToolWin, and may be changed to False at run-time when BorderStyle is changed to another value.

    + Specifies the icons which appear in the title bar for the form @@ -3669,14 +4739,14 @@ - + The border style affects the title bar, border and resize behavior of the form.

    - Use borderstyle to get or set the appearance of the form's border. + Use BorderStyle to get or set the appearance of the form's border.

    By default it is a sizeable window, but it could, for example, be a dialog form @@ -3685,7 +4755,7 @@

    This property is slightly different (has a different base type) from the TCustomControl.BorderStyle property. When the form is put into - another control the window borders depend on the widget set. There are no + another control the window borders depend on the widgetset. There are no borders under GTK.

    @@ -3696,7 +4766,7 @@ TCustomControl.BorderStyle
    - + The control associated with the Cancel action @@ -3708,33 +4778,47 @@ - + The text displayed in the title bar for the form - - + +

    + Setting the value in Caption also causes the caption in HostDockSite to be updated. +

    +
    + + TControl.Caption + TControl.HostDockSite +
    - + The background color for the form - The form's background color. - + + Color is a TColor property with the background color used for the form. Color is re-declared in TCustomForm to use either clDefault or clBtnFace as the default value for the property. clDefault is used when the UseCLDefault compiler define exists, and indicates that the color is resolved to the value in a Parent control (when assigned). + + + TControl.Color + TControl.GetDefaultColor + - + The control associated with the default action for this form

    - This is typically a button such as 'Accept' which is highlighted in some way on-screen to indicate that this is the default action, and is selected either by hitting 'Return' or 'Enter' or by selecting that control with the mouse. + This is typically a button such as 'Ok' or 'Accept' which is highlighted in some way on-screen to indicate that this is the default action. It is selected either by hitting 'Return' or 'Enter', or by clicking the control with the mouse.

    - + The monitor on which the form is displayed -

    Possible values:

    +

    + Possible values: +

    dmDesktop
    No attempt to choose specific monitor.
    @@ -3750,15 +4834,16 @@
    - - + + How is it different than Monitor? Design-time setting?
    - + - The designer object when the form is in design state + The designer object when the form is in design mode + Value from ShowInTaskBar adjusted for the default taskbar behavior in the application @@ -3766,12 +4851,12 @@ - + State flags for the form

    - FormState is a read-only TFormState property which contains state flags enacted for the form instance. Values from the TFormStateType enumeration are included in, or excluded from, the set type when corresponding actions occur (or are resolved) for the form instance. + FormState is a read-only TFormState property which contains state flags enabled for the form instance. Values from the TFormStateType enumeration are included in, or excluded from, the set type when corresponding actions occur (or are resolved) for the form instance.

    See TFormStateType for more information on the values and meanings in the enumeration. @@ -3785,11 +4870,13 @@ - + Indicates the style for the form -

    Possible values:

    +

    + Possible values: +

    fsNormal
    Usual style.
    @@ -3810,12 +4897,12 @@ TFormStyle - + The name of the help file for the form

    - HelpFile is a String property which contains the name of the help file for the form instance. HelpFile can use a fully-qualified path to the help file if it is not locate in the same directory as the application which implements the form. + HelpFile is a String property which contains the name of the help file for the form instance. HelpFile can use a fully-qualified path to the help file if it is not located in the same directory as the application which implements the form.

    The value in HelpFile is used in TApplication when it retrieves the help file name from the active form in the application. @@ -3826,7 +4913,7 @@ - + The Icon associated with this Form (in minimized state) @@ -3843,23 +4930,23 @@ TIcon - + Allows the form to intercept keystrokes in child controls

    - KeyPreview is a Boolean property which controls whether the form can intercept key strokes from child controls. When KeyPreview is set to True, the form is allowed to receive KeyDown, KeyUp, and KeyPress events before they are received/applied to the ActiveControl in the form. + KeyPreview is a Boolean property which controls whether the form can intercept key strokes from child controls.

    - The default value for the property is False. + When KeyPreview is set to True, the form is allowed to receive KeyDown, KeyUp, and KeyPress events before they are received / applied to the ActiveControl in the form. The default value for the property is False.

    - KeyPreview is used in the implementation of key handling methods in TWinControl. KeyPreview is often enabled for modal dialogs to allow the parent form to handle specific user interactions. + KeyPreview is used in the implementation of key handling methods in TWinControl. KeyPreview is often enabled for modal dialogs to allow the parent form to handle specific interactions with the user.

    - + Provides indexed access to MDI child forms, when this is a MDI form @@ -3867,13 +4954,13 @@ MDIChildren is a read-only indexed TCustomForm property which provides access to the child forms in a Multi-Document Interface (MDI) application. In an MDI application, one of the forms acts as the main form for the application, and is the container for its MDI child forms. In addition, an MDI child form can be nested in another MDI child form.

    - Please note: Historically, support for MDI is dependent on the underlying widgetset or platform. Some widgetsets provide better support for MDI than others. The consensus is that the QT/QT5 widgetsets offers the best level of support for MDI applications. + Historically, support for MDI is dependent on the underlying widgetset or platform. Some widgetsets provide better support for MDI than others. The consensus is that the QT/QT5 widgetsets offers the best level of support for MDI applications.

    - The form role is determined by the value in the FormStyle property. fsMDIForm is used for the main form, and fsMDIChild for the child forms. MDIChildren is relevant when the current form instance uses one of those MDI from style values. + The form role is determined by the value in the FormStyle property. fsMDIForm is used for the main form, and fsMDIChild for the child forms. MDIChildren is relevant when the current form instance uses one of these MDI form style values.

    - The Integer Index value is used to access the MDI child forms for the current form instance by the ordinal for the requested form. The return value contains the TCustomForm instance at the specified position, as determined using the GetMDIChildren method in the widgetset class. The return value can be Nil when the current form does not use a FormStyle with the value fsMDIForm or fsMDIChild, or when a handle has not yet been allocated for the form instance. The return value is always Nil at design-time. + Index is an Integer value is used to access a MDI child form by its ordinal position in MDIChildren. The return value contains the TCustomForm instance at the specified position, as determined using the GetMDIChildren method in the widgetset class. The return value can be Nil when the current form does not use a FormStyle with the value fsMDIForm or fsMDIChild, or when a handle has not yet been allocated for the form instance. The return value is always Nil at design-time.

    Use MDIChildCount to get the number MDI child forms for the form instance. @@ -3894,7 +4981,7 @@ Ordinal position for the MDI Child form requested - + The main menu for the form instance @@ -3902,7 +4989,7 @@ Menu is the TMainMenu instance assigned to the form.

    - Assigning a new value to Menu causes other forms on the Screen to be checked for a duplicate menu assignment. A singlular TMainMenu instance cannot be assigned to more than one form. An EInvalidOperation is raised if another form alreasy uses the menu instance. The UpdateMenu method is called when the new property value has been set. + Assigning a new value to Menu causes other forms on the Screen to be checked for a duplicate menu assignment. A singular TMainMenu instance cannot be assigned to more than one form. An EInvalidOperation is raised if another form already uses the menu instance. The UpdateMenu method is called when the new property value has been set.

    @@ -3911,7 +4998,7 @@
    - + Specifies the return value for a form (or dialog) displayed modally @@ -3922,7 +5009,7 @@ The value in ModalResult is updated when the ShowModal method is called for the form instance. It may is updated in the CloseModal method when CloseQuery is False and CloseAction is caNone. Finally, it is set to mrCancel in the Close method when FormState contains the value fsModal.

    - See TModalResult for more information about the enumertation values and their meanings. + See TModalResult for more information about the enumeration values and their meanings.

    @@ -3933,6 +5020,7 @@
    + The Monitor where the form is shown @@ -3953,6 +5041,7 @@ + Tracks changes in the focus for the active form or the last active control for the current form @@ -3967,7 +5056,7 @@ - + Defines where popup menus are shown @@ -3987,9 +5076,8 @@ - ? - + Parent form which owns the current form instance when displayed as a pop-up window @@ -4002,14 +5090,14 @@ Setting a new value for the property causes the existing pop-up parent form to be removed from the free notifications for the application. A new non-Nil pop-up parent is added to the free notification list, and its PopupMode property is set to pmExplicit.

    - At run-time, the widget set class is notified of the change in the PopupParent property. The notification is not performed at design-time. + At run-time, the widgetset class is notified of the change in the PopupParent property. The notification is not performed at design-time.

    - + Handler called when the form receives focus @@ -4024,7 +5112,7 @@ TApplication.OnActivate - + Handler called when the form is closed. It determines what happens to the form (destroy, hide...). @@ -4034,7 +5122,7 @@ OnClose is a TCloseEvent property which represents the event handler signalled when a form calls its Close or CloseModal method.

    - OnClose is triggered from the DoClose method immediately before calling any internal form handlers registered for the fhtClose form handler action type. OnClose can be used to detemine the action performed in subsequent form handlers by setting the value in the CloseAction argument. + OnClose is triggered from the DoClose method immediately before calling any internal form handlers registered for the fhtClose form handler action type. OnClose can be used to determine the action performed in subsequent form handlers by setting the value in the CloseAction argument.

    An application must implement and assign an object procedure using the signature for TCloseEvent to respond to the event notification. @@ -4046,7 +5134,7 @@ - + Event handler signalled when trying to close a form @@ -4071,7 +5159,7 @@ - + Handler called when the form has been created @@ -4091,7 +5179,7 @@ TNotifyEvent - + Handler called when the form is deactivated (loses focus) @@ -4101,7 +5189,7 @@ - + Handler called when the form is destroyed @@ -4112,7 +5200,7 @@ - + Handler called when files have been dropped @@ -4123,7 +5211,7 @@ The Sender argument contains the current form instance. The FileName argument contains an array with the file names for the drop operation.

    - Set AllowDropFiles to True to enable drog and drop operations, and execution of this event handler. + Set AllowDropFiles to True to enable drag and drop operations, and execution of this event handler.

    @@ -4131,7 +5219,7 @@
    - + Handler called when Help is requested @@ -4145,7 +5233,7 @@ Data is a PtrInt type which points the context information for the help request.

    - The CallHelp argument indicates if handler(s) in the Application instance should be called when the event handler in the form is completed. Set CallHelp to False when the help request has been satified in the event handler. + The CallHelp argument indicates if handler(s) in the Application instance should be called when the event handler in the form is completed. Set CallHelp to False when the help request has been satisfied in the event handler.

    An application must implement and assign an object function using the signature for the handler to respond to the event notification. @@ -4164,7 +5252,7 @@ - + Handler called when the form is being hidden @@ -4181,12 +5269,30 @@ TNotifyEvent - - - + + + Event handler signalled when the size for the form is changed + +

    + OnResize is a TNotifyEvent property with the event handler signalled when the dimensions for the form have been changed. It is signalled (when assigned) from the DoOnResize method, and occurs in the inherited DoOnResize method in the ancestor class. +

    +

    + Create and assign a procedure to the event handler to perform any actions needed after the form has been resized. +

    +

    + Use the OnConstrainedResize event handler to set the height and/or width for the form using minimum and maximum height and width values. +

    +
    + + + + TControl.OnResize + +
    + - Handler called when a key is pressed, before further handling of the key + Event handler signalled when a key is pressed, before further handling of the key

    @@ -4203,12 +5309,20 @@ - + Handler called when the form becomes visible - + +

    + OnShow is a TNotifyEvent property with the event handler signalled (when assigned) when the form becomes visible. It is signalled from the DoShow method when the CM_SHOWINGCHANGED control messages is handled for the form, and when queued OnResize and OnChangeBounds events are executed for the form. +

    +

    + Create and assign a procedure to OnShow to perform any actions needed when the Visible property for the form is set to True. +

    +
    + Event handler signalled when modal display of the form has been completed @@ -4222,11 +5336,11 @@ - Is this a remnant? Not used in ShowModal or CloseModal. It does not appear to be used anywhere in the current LCL version. + Is this still needed? Not used in ShowModal or CloseModal. It does not appear to be signalled anywhere in the current LCL version. - + Handler called when the form is minimized, maximized or restored @@ -4234,29 +5348,40 @@ OnWindowStateChange is a TNotifyEvent property which represents the event handler signalled when the value for the WindowState property is changed. OnWindowStateChange is triggered (when assigned) from the Resizing method, and occurs when the WM_SIZE window message for the action is handled.

    - See TWindowState for details about the values and meanings in the enumeration. + See TWindowState for details about the values and meanings in the enumeration.

    - +
    - - + + + + +

    + The default value for the property is False in TCustomForm. +

    +
    + + TControl.ParentFont + +
    + The initial placement for the form

    - Position is a TPosition property which indicates the size and position policy used to display the form instance. The default value for the property is poDesigned, and indicates that the coordinates used in the form designer are used at run-time. See TPosition for the other values, and their meanings, available for the property. + Position is a TPosition property which indicates the size and position policy used to display the form instance. The default value for the property is poDesigned, and indicates that the coordinates used in the form designer are used at run-time. See TPosition for the other values, and their meanings, available for the property.

    Changing the value in Position causes the value in AutoSize to be updated when needed, and calls UpdateControlState. No additional actions are performed at design-time.

    - MoveToDefaultPosition is called when a handle exists for the form instance and it has not been displayed yet. + MoveToDefaultPosition is called when a handle exists for the form instance and the form has not been displayed.

    @@ -4265,14 +5390,14 @@
    - + The Left coordinate for the form when it is restored (i.e. changes from minimized or maximized)

    - RestoredLeft is a read-only Integer property which contains the left coordinate for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the aynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method. + RestoredLeft is a read-only Integer property which contains the left coordinate for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the asynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method.

    @@ -4281,14 +5406,14 @@ TControl.Left
    - + The Top coordinate for the form when it is restored (i.e. changes from minimized or maximized)

    - RestoredTop is a read-only Integer property which contains the top coordinate for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the aynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method. + RestoredTop is a read-only Integer property which contains the top coordinate for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the asynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method.

    @@ -4297,12 +5422,12 @@ TControl.Left
    - + The width of the form when it is resized

    - RestoredWidth is a read-only Integer property which contains the Width for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the aynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method. + RestoredWidth is a read-only Integer property which contains the Width for the form when its size is altered in WMSize or WMMove message handlers. The property value is applied when the asynchronous queued event handler for the form is executed and calls the DoOnChangeBounds method.

    @@ -4311,12 +5436,12 @@ TControl.Width
    - + The height of the form when it is resized

    - RestoredHeight is a read-only Integer property which contains the height for the form when size is altered in WMSize or WMMove message handlers. The property value is applied when the aynchronous queued event handler for the form is executed, and calls the DoOnChangeBounds method. + RestoredHeight is a read-only Integer property which contains the height for the form when size is altered in WMSize or WMMove message handlers. The property value is applied when the asynchronous queued event handler for the form is executed and calls the DoOnChangeBounds method.

    @@ -4346,15 +5471,23 @@
    - + + + +

    + Re-declared in TCustomForm to use a different storage specifier than the ancestor class. In TCustomForm, visibility is not tied to an Action or an ActionLink; it uses the value in the Visible property. +

    +
    + +
    - Indicates whether the form is displayed in a minimized, maximized, fullscreen or normal state + Indicates whether the form is displayed in a minimized, maximized, full-screen or normal state

    - WindowState is a TWindowState property which indicates whether the form is currently displayed minimized, maximized, fullscreen or normal (restored) state. The default value is wsNormal (i. e. neither minimized nor maximized). + WindowState is a TWindowState property which indicates whether the form is currently displayed minimized, maximized, full-screen or normal (restored) state. The default value is wsNormal (i. e. neither minimized nor maximized).

    Changing the value for the property at run-time causes the ShowWindow routine to be called with the Integer display command representing the new property value. The action is not performed at design-time, or when Showing is set to False. @@ -4380,52 +5513,75 @@ - + + Implements a form used in an LCL application + +

    + TForm is a TCustomForm descendant which implements a form displayed in an LCL application. It sets the visibility and default values for properties introduced in ancestor classes. It also adds methods needed for use as an MDI form in an application. LCL version information is available in the LCLVersion property, and is streamed to to the component resource file when a Parent is not assigned for the form. +

    +

    + Forms created at design-time using the Lazarus IDE are TForm descendants. A form can be used as the main form in an application, or it can be displayed as a MDI forms, dialog box, or tool window. Controls can added to the form, such as: TEdit, TLabel, TButton, TCheckBox, TComboBox, TListView, TTreeView, et. al. +

    +
    + + + +
    - + - WSRegisterClass is an overridden class procedure used to register the widget set class used to create new instances of the form. + WSRegisterClass is an overridden class procedure used to register the widgetset class used to create new instances of the form. - - + Arranges MDI child forms so they overlap - + +

    + Cascade is a method used to arrange MDI Chid forms so that they overlap in a cascading fashion. +

    +

    + No actions are performed in the method when FormStyle has a value other than fsMDIForm. At run-time, the Cascade method in th widgetset class is called when its Handle has been allocated. +

    +

    + Use Tile to arrange MDI child forms in a grid format. +

    +
    - + Activates the next child MDI form (fsMDIChild) in the form sequence - + Activates the previous MDI child form in the form sequence - + - Arranges MDI child forms side by side + Arranges MDI child forms side-by-side in a grid format + @@ -4511,38 +5667,52 @@ + - The version of the LCL as string. Used to distinguish form streams using - different versions of the LCL + + The LCL version number as a String type + + +

    + Used to distinguish form streaming content for different versions of the LCL. +

    +
    + - + Class of TForm - + A floating DockSite, usable to make TControls float - + - Makes the client occupy the entire client area (alClient) - + + Adds Client as a child control which fills the entire area for the docked form + + +

    + DoAddDockClient is an overridden method used to add the control in Client to the docked form. It calls the inherited method on entry to set the Parent in Client to the current class instance. It sets the Align property in Client to alAlign to align the control to the bounds for the docked form. Values in the BorderSpacing property in Client are reset to 0; the current class instance provides the BorderSpacing values for the docked control. At run-time, the VIsible property is set to True to display the docked form after the Client has been added. +

    +
    - + Control added to the docked form instance - + Not used in the current implementation - + Closes (releases) the form after the last client has been undocked @@ -4551,7 +5721,7 @@ - + Disallows docking of an second client @@ -4569,7 +5739,7 @@ - + Tries to make all child controls dockclients. This is of little use in practice, @@ -4578,23 +5748,28 @@ - + Owner for the class instance - + - + - The popup box containing helpful information that appears when the mouse pointer hovers over an object + The pop-up box containing helpful information that appears when the mouse pointer hovers over an object -

    Usage:

    +

    + THintWindow is a TCustomForm descendant used to display text hints. It is not intended for use with child controls. +

    +

    + Usage: +

    HintWindow := THintWindow.Create(nil); Rect := HintWindow.CalcHintRect(0, 'This is the hint',nil); @@ -4603,23 +5778,26 @@
    - + True during ActivateHint + + The timer used to make the hint disappear - + + Adjusts HintRect to fit on the current monitor Used in the implementation of the OffsetHintRect method. @@ -4629,13 +5807,14 @@ + Indicates that the width for HintRect should not be decreased Indicates that the height for HintRect should not be decreased - + Collects the flags for Draw Text formatting @@ -4651,12 +5830,12 @@ Draw Text flags for the hint window - + New value for the property - + Hides the hint window when the hint timer has expired @@ -4672,11 +5851,12 @@ - + New value for the property + Sets the value for the HintRectAdjust property @@ -4687,8 +5867,9 @@ New value for the property + - + Treats the whole window as transparent @@ -4697,6 +5878,7 @@ + Sets the bounds for the hint window and configures the auto-hide timer @@ -4714,9 +5896,9 @@ TControl.Visible - + - + Updates the Window Region fir the hint window @@ -4724,7 +5906,7 @@ UpdateRegion calls the SetWindowRgn routine to set the window region for the hint window. The window region contains the area where the system can perform drawing operations; no area outside of the window region can be updated.

    - Please note: SetWindowRgn requires access to the Handle for the hint window; no actions are performed in the method when HandleAllocated returns False. + SetWindowRgn requires access to the Handle for the hint window; no actions are performed in the method when HandleAllocated returns False.

    When UseBGThemes is enabled, ThemeServices are used to get the theme element details needed for the client rectangle in the hint window. @@ -4735,6 +5917,7 @@ + Sets the value for the Color property @@ -4745,6 +5928,7 @@ New value for the property + Indicates if a background from theme services is used when drawing the hint window @@ -4755,6 +5939,7 @@ True when ThemeServices are used for the background + Indicates if theme services are used for the foreground rendered for the hint window @@ -4767,18 +5952,20 @@ True when ThemeServices are used to draw the foreground for the hint window - + + + System font used to draw text in the hint window - TFont instance for the system font provided by the widget set + TFont instance for the system font provided by the widgetset - + Destructor for the class instance @@ -4788,7 +5975,7 @@ - + Constructor for the class instance @@ -4827,7 +6014,7 @@ Owner of the class instance - + Shows the specified hint @@ -4835,7 +6022,7 @@ ActivateHint is an overloaded procedure used to display the Hint text specified in AHint. An overloaded variant allows the display area for the hint window to be specified in the ARect argument.

    - Please note: No actions are performed in the method if ActivateHint has been previously called with the same hint text and display area. + No actions are performed in the method if ActivateHint has been previously called with the same hint text and display area.
    @@ -4848,6 +6035,7 @@ TRect with the display area for the hint window + Sets the bounds in HintRect and activates the hint window @@ -4866,7 +6054,7 @@ Text displayed in the hint window - + An extended version of ActivateHint with additional data used for the hint display @@ -4892,7 +6080,7 @@ Pointer to additional data used to construct the hint text - + Determines the rectangle required for the hint display @@ -4914,6 +6102,7 @@ Pointer to additional data used to construct the hint text + Moves the hint rectangle by the specified amounts @@ -4928,19 +6117,20 @@ - TPoint with the horizontal and vertical offets for the hint display + TPoint with the horizontal and vertical offsets for the hint display Additional vertical offset applied to the hint rectangle - Indicates the width for the hint rectanlge must be maintained + Indicates the width for the hint rectangle must be maintained - Indicates the height for the hint rectanlge must be maintained + Indicates the height for the hint rectangle must be maintained - + + Indicates if the specified message is relevant to a hint window display @@ -4952,14 +6142,14 @@ - + Destroys an allocated handle for the widget TWinControl.DestroyHandle - + @@ -4973,16 +6163,17 @@ - + + - + Text alignment used for the hint window @@ -4990,7 +6181,7 @@ Alignment is a TAlignment property that indicates the alignment used for the text displayed in the hint window.

    - The default value for the property is taLeftJustify, as assigned in the Create constructor. The value in Alignment is used to derive the draw text flags required for the BidiMode in the hint display, and passed to to DrawText routine in theme services or widget set classes. + The default value for the property is taLeftJustify, as assigned in the Create constructor. The value in Alignment is used to derive the draw text flags required for the BidiMode in the hint display, and passed to to DrawText routine in theme services or widgetset classes.

    @@ -4998,6 +6189,7 @@
    + Contains the bounds used to display the text for the hint @@ -5012,17 +6204,19 @@
    + Contains the bounds with additional space used for the hint display + Pointer to data used to formulate text displayed in the hint window - + Does the hint disappear (get hidden) after a while? @@ -5031,9 +6225,9 @@ - + - + The time after which the displayed hint disappears @@ -5041,12 +6235,13 @@ - + Class of THintWindow + For a rendered hint with a child control added by an external provider @@ -5060,17 +6255,19 @@ Owner of the class instance + Destructor for the class instance + Shows hint contents are rendered by a provider on child control - + Provides information about a physical monitor @@ -5086,15 +6283,15 @@ - + - + Retrieves monitor information from the OS or platform

    - Getinfo is a Boolean function used to get monitor information from the OS or platform hosting the LCL application. Getinfo initializes the Info output parameter to the size required for the TMonitorInfo type, and calls the GetMonitorInfo routine for the widget set. + Getinfo is a Boolean function used to get monitor information from the OS or platform hosting the LCL application. Getinfo initializes the Info output parameter to the size required for the TMonitorInfo type, and calls the GetMonitorInfo routine for the widgetset.

    The return value is True when monitor information is successfully retrieved for the OS or platform. Info contains the size, display rectangle, work area, and flags for the monitor. @@ -5110,7 +6307,7 @@ TMonitorInfo with values retrieved for the OS or platform - + Gets the value for the Left property @@ -5121,11 +6318,12 @@ Value for the property - + + Gets the value for the PixelsPerInch property @@ -5136,68 +6334,77 @@ Value for the property - + - + - + - + - + + Handle which identifies this monitor to the system + Index of the monitor in the list + The leftmost screen coordinate of the display + The height of the display + - The topmost screen coordinate of the display + The top-most screen coordinate of the display + The width of the display - + The logical dimensions of the monitor, within the desktop. + The usable display area, excluding a taskbar etc + True if this is the primary monitor of the system + Contains the Pixels Per Inch or display density for the monitor - + A list of all available monitors - + @@ -5205,7 +6412,7 @@ - + @@ -5213,7 +6420,7 @@ - + List notification handler, destroys the Monitor object on removal from the list @@ -5227,7 +6434,7 @@ The list operation - + The indexed list of all Monitors @@ -5238,33 +6445,33 @@ Ordinal position for a monitor in the list - + - + An element of the Cursor list - + The next list element - + The list index - + The OS identifier for this cursor - + Type used for a screen notification handler, for form related events @@ -5272,17 +6479,14 @@ - ? - TObject for the event notification - The affected form - + Type for a screen notification handler used for control related events @@ -5290,17 +6494,14 @@ - ? - TObject for the event notification - The new active control - + Screen notification events and handler types @@ -5324,10 +6525,10 @@ The visibility of a form changed - + - The monitor to use when screen coordinates are outside of the physical screen bounds + The monitor to use when screen coordinates are outside of the physical bounds for the screens @@ -5343,35 +6544,41 @@ Default to the primary monitor - + - Provides information about the display and related objects + Provides information about the screen display in an application

    - The virtual screen (desktop) can include multiple physical Monitors. Screen objects are Cursors, Fonts and Forms. For Delphi compatibility, non-visual DataModules are included. + TScreen is a TLCLComponent descendant which provides information about multiple monitors in an LCL application. TScreen allows the GUI for an application to be managed on multiple monitors. It includes the size and resolution for a screen, and allows mapping the virtual Desktop and Workareas to the physical Monitors known to the application. +

    +

    + TScreen also provides access to objects displayed on a given screen, including: Forms, Cursors, and Fonts. For Delphi compatibility, non-visual DataModules are also included in the TScreen information. Properties are provided in the class with the currently active Form, Control and Cursor for a screen. +

    +

    + TScreen is the type used for the Screen singleton in an LCL application.

    -

    The currently active Form, Control and Cursor also are tracked.

    - + +
    - + + - @@ -5386,7 +6593,6 @@ - The last active form, used to detect focus changes @@ -5394,130 +6600,232 @@ - - + + - Removes a cursor from the Cursors property + Removes the specified cursor from the Cursors property - + + + The logical cursor ID - + Deletes all TCursor instances in the Cursors property - + + + - + Clears the Monitors list - + + + + + + + Gets the value for the indexed Cursors property + + + + - - - + Value for the indexed property The logical cursor ID - - - - + + + Gets the value for the CustomFormCount property + + + + - + + Value for the property + + - - + + + Gets the value for the indexed CustomForms property + + + + + - + Value for the indexed property - + Ordinal position for the property value + + + + Gets the value for the indexed CustomFormsZOrdered property + + + + - - - + TCustomForm instance at the specified position in the Z-Order - + + Ordinal position for the property value; smaller values are higher in the Z-Order + + + + + Gets the value for the DataModuleCount property + + + + - - - + Value for the property + + + + Gets the value for the indexed DataModules property + + + + - - - + Value for the indexed property - + Ordinal position for the property value + + + + Gets the value for the DesktopLeft property + + + + - - - + Value for the property + + + + Gets the value for the DesktopTop property + + + + - - - + Value for the property + + + + Gets the value for the DesktopHeight property + + + + - - - + Value for the property + + + + Gets the value for the DesktopWidth property + + + + - - - + Value for the property + + + + Gets the value for the DesktopRect property + + + + - - - + Value for the property + + + + Gets the value for the Fonts property + + + + - - - + Value for the property + + + + Gets the value for the GetFormCount property + + + + - - - + Value for the property + + + + Gets the value for the indexed Forms property + + + + - - - + Value for the property - - + + Ordinal position for the form instance in the property value + + + + Gets the value for the Height property + +

    + Calls GetSystemMetrics to get the value for the property. +

    +
    + + +
    - - - + Value for the property - + @@ -5525,22 +6833,22 @@ - + - + - + - + Internal notification handler, adds a new form to the lists @@ -5549,7 +6857,7 @@ Form instance added in the method - + Internal notification handler, removes the form from the lists @@ -5558,7 +6866,7 @@ Form instance removed from the list - + @@ -5566,12 +6874,12 @@ - + - + @@ -5579,27 +6887,27 @@ - + - + - + - + - + Stores the currently active form and control in the last active members. @@ -5608,16 +6916,15 @@ - + Moves the Focus back to the previously focused control - - + - Adds a notification handler + Adds a notification handler with the specified type @@ -5630,9 +6937,9 @@ Add the handler as the first (True) or last (False) handler - + - Removes a notification handler + Removes a notification handler with the specified type @@ -5642,31 +6949,28 @@ The notification handler - + - Adds the specified DataModule to the list + Adds the specified data module to the list - Data module instance added in the method - + - Removes the specified DataModule from the list + Removes the specified data module from the list - Data module removed in the method - + - Notifies all registered handlers for the given event + Notifies all registered handlers for the given event type - @@ -5675,88 +6979,168 @@ Form instance for the notification - + - + - + - + - + - - + + + Gets the value for the HintFont property + +

    + Ensures that a TFont instance exists for the member, that it has been initialized to the stock hint font for the WidgetSet class, or uses the default font and the color in clInfoText. +

    +
    + + + +
    - + Value for the property + + + + Gets the value for the IconFont property + +

    + Ensures that a TFont instance exists for the member, that it has been initialized to the stock ison font for the WidgetSet class, or uses the default font and the color in clDefault or clWIndowText (depends on the UseCLDefault define for the platform). +

    +
    + + +
    - - - + Value for the property - - - - - - - - - - - - - - - - - - - - The ordinal position in CustomForms the requested form + + + Gets the value for the MenuFont property - + + + + + + Value for the property + + + + Gets the value for the SystemFont property + + + + + + + Value for the property + + + + Constructor for the class instance + +

    + Create is the overridden constructor for the class instance, and calls the inherited method on entry. +

    +

    + Create allocates resources needed for properties, including: Fonts, Monitors, CustomForms, CustomFormsZOrdered, and + DataModules. Resources for internal members are also allocated. +

    +

    + Create gets the default value used for the PixelsPerInch property from the ScreenInfo variable in the LCL interface. +

    +

    + Create assigns methods in the class instance as the routines used by the Lazarus IDE to provide support for data modules. Create assigns the routine used to get system fonts for the application. +

    +
    + + + +
    + + Owner of the class instance + + + + Destructor for the class insrtance + +

    + Destroy is the overridden destructor for the class instance. Destroy ensures that screen handlers registered using AddHandler are freed. Destroy also frees resource allocated for the class instance in the Create constructor. It calls the inherited method prior to exit. +

    +
    + + + +
    + + + Gets the ordinal position in CustomForms the requested form + +

    + CustomFormIndex is an Integer function used to get the position in CustomForms for the specified TCustomForm instance. It iterates over the values in CustomForms in reverse order. The return value contains the ordinal position in CustomForms where the TCustomForm instance in AForm was found, or -1 when AForm does not exist in CustomForms. +

    +

    + Use the FormIndex method to locate a form instance derived from TForm in the Forms property. +

    +
    + + + + +
    - The form Index, -1 if not found + The ordinal postion for the form in CustomForms, or -1 when not found - The Form to which the Index refers + The form instance to locate in CustomForms - + - The ordinal position in Forms for the requested form - + Gets the ordinal position in Forms for the requested form + +

    + FormIndex is an Integer function used to get the position in Forms where the specified TForm instance in located. It iterates over the values in Forms in reverse order. The return value contains the ordinal position in Forms where the TForm instance in AForm was found, or -1 when AForm does not exist in Forms. +

    +

    + Use the CustomFormIndex method to locate a form instance derived from TCustomForm in the CustomForms property. +

    +
    - The form Index, -1 if not found + Ordinal position in Forms for the TForm instance, or -1 when not found - The Form to which the Index refers + The TForm instance to locate in Forms - + - The index of the form in the Z dimension (Front to Back) + Gets the position in CustomFormsZOrdered for the specified form

    - The return value contains the activation order for the specified form, with the currently active form at index position zero (0). + The return value contains the z-order for the specified form, with the currently active form at index position zero (0).

    @@ -5765,11 +7149,11 @@
    - + Form instance to locate in CustomFormsZOrdered - + - Moves the specified form to the front of all form lists + Moves the specified form to the front of all other forms Raises a GDB exception when the form is being destroyed, or the application is shutting down. @@ -5779,9 +7163,9 @@ - + - Moves the form to the front of the Z-order list (notification only) + Moves the form to the front of the Z-order (notification only) Raises a GDB exception when the form is being destroyed, or the application is shutting down. @@ -5793,27 +7177,27 @@ - + - Returns the topmost Modal form (i.e. a form that is awaiting a user response). + Returns the top-most Modal form (i. e. the form that is awaiting a user response). - The modal form, or Nil if none is active + The modal form, or Nil if a modal form is not active - + - Returns the index of the topmost modal form in CustomFormsZOrdered[] + Returns the index of the top-most modal form in CustomFormsZOrdered The index for the form, or -1 if no modal form is active - + Checks whether the form is visible, and whether modal or not blocked by @@ -5821,7 +7205,6 @@ - ? @@ -5829,9 +7212,9 @@ - + - Finds the named form, excluding designer forms + Finds the form with the specified name, excluding designer forms @@ -5841,9 +7224,9 @@ - + Name of the form to locate in the method - + Finds a form by its name @@ -5852,81 +7235,92 @@ - + Form instance with the specified name - + Name for the form to locate in the method - + Finds the named DataModule, excluding designer modules - - + - + Data module with the specified name - + Name for the data module to locate in the method - - - - - - - + - Finds the named DataModule + Finds the DataModule with the specified name - + + TDataModule instance with the specified name + + + Name for the data module to locate in the method + + - Builds the list of available monitors - - + Rebuilds the list of available monitors + +

    + Calls DestroyMonitors to clear existing TMonitor instances in the Monitors property. Calls EnumDisplayMonitors in the LCL interface to create and store TMonitor instances in the Monitors property. +

    +

    + UpdateMonitors is called when the private UpdatedMonitor function needs to access information for a monitor using its Handle. It is also called when the value for the Monitor or MonitorCount property is read. +

    +
    - + Updates the property - + +

    + Updates the value for the PixelsPerInch property from the ScreenInfo in the LCL interface. +

    +
    - + - + - Adds a notification handler + Adds a form added notification handler to the class instance - + Routine added as the form added notification handler - + + True when OnFormAdded should be the first entry in the list of handlers for the type + - + - Removes a notification handler + Removes a form added notification handler - + - Adds a notification handler + Adds a form removed notification handler @@ -5936,18 +7330,18 @@ - + - Removes a notification handler + Removes a from removed notification handler - + - Adds a notification handler + Adds a control changed notification handler @@ -5957,18 +7351,18 @@ - + - Removes a notification handler + Removes a control changed notification handler - + - Adds a notification handler + Adds a form changed notification handler @@ -5978,20 +7372,19 @@ - + - Removes a notification handler + Removes a form changed notification handler - + - Adds a notification handler + Adds a visible changed notification handler - @@ -6000,26 +7393,27 @@ - + - Removes a notification handler + Removes a visible changed notification handler - + - Disables all forms except SkipForm. + Disables all forms except for SkipForm -

    Used to show modal forms or dialogs.

    -

    The enabled state is determined from the widget, not from LCL properties.

    -

    If DisabledList is Nil, a new list is created. Then all disabled forms - are added to that list.

    -

    When the modal form returns, call EnableForms to restore all forms.

    +

    + Used to show modal forms or dialogs. +

    +

    + The enabled state for the forms is determined from the widgetset class, and not from LCL properties. If DisabledList is Nil, a new list is created. All forms disabled in the method are added to the list. When the modal form returns, EnableForms is called to restore forms disabled in the method. +

    @@ -6034,11 +7428,16 @@ The list to update. If Nil, a new list is created and returned - + - Use this method to restore all previously disabled forms. + Re-enables forms disabled in the DisableForms method + +

    + Use this method to restore all previously disabled forms. +

    +
    @@ -6046,9 +7445,9 @@ The list containing the forms to enable. The list is destroyed on exit. - + - Find the monitor containing the given screen coordinates + Finds the monitor containing the given screen coordinates @@ -6056,15 +7455,15 @@ - The monitor found + The monitor where the coordinates are located - The screen coordinates to find + The screen coordinates used to find a monitor - What to return when no monitor was found + Monitor returned when the coordinates are not found on a monitor - + Find the monitor containing (most of) the given screen coordinates @@ -6082,15 +7481,13 @@ What to return when no monitor was found - + - Finds the monitor containing (most of) the given window handle - - - - - - + + Finds the monitor containing (most of) the form with the given window handle + + + The monitor found @@ -6101,29 +7498,35 @@ What to return when no monitor was found + - Override the Cursor property with a temporary value. Use EndTempCursor to release it. + + Sets the Cursor property to a temporary shape. Use EndTempCursor to release it. + + Release the temporary cursor set with BeginTempCursor. + - + Sets the cursor to the shape in crHourGlass + - + Removes the crHourGlass cursor shape - + The control which has the Focus for the screen @@ -6132,51 +7535,62 @@
    - + - The custom form which has the Focus + The TCustomForm instance which has the Focus - + - The form which has the Focus + The TForm instance which has the Focus - + The current mouse cursor shape - Use one of the predefined cursor styles, e.g. crHourGlass. + + Use one of the predefined cursor styles, e.g. crHourGlass. + - Gets the value for the Cursor property taking temporary cursors into account + + Gets the value for the Cursor property taking temporary cursors into account + - + Provides indexed access to the available cursor shapes for the screen + + - + Ordinal position for the value requested + + - + - The number of Custom Forms + Number of form instances in the CustomForms property + - + - Provides indexed access to the list of Custom Forms for the screen + + Provides indexed access to the TCustomForm instances on the screen + @@ -6185,9 +7599,9 @@ Ordinal position for the requested form - + - The list of Custom Forms, indexed by Z-order (zero is topmost) + The list of Custom Forms, indexed by Z-order (zero is top-most) @@ -6196,7 +7610,7 @@ - + CustomFormZOrderCount - the number of forms arranged in Z-plane order (i.e. Front to Back) @@ -6206,33 +7620,37 @@ - + The leftmost coordinate of the desktop - + - The topmost coordinate of the desktop + The top-most coordinate of the desktop - + The total vertical size of the desktop - - - - The total horizontal size of the display - - - - The total extent of the desktop, spanning all monitors - + + + The total horizontal size of the display + + + + + + The total width for the desktop, spanning all monitors + + + + The form that holds Focus @@ -6240,16 +7658,16 @@ - really?what's different from ActiveForm? - + - The number of existing Forms + The number of Forms on the screen + - + - The indexed list of all Forms, in Z-order + Provides indexed access to TForm instances on the screen @@ -6257,46 +7675,49 @@ - + Ordinal position for the form in the property value - + - The number of existing data modules + The number of data modules for the screen - + - The indexed list of Data Modules + Provides indexed access to data modules on the screen - + Ordinal position for the TDataModule instance in the property value - + The font used to display Hints + - + The Icon font, used for desktop icons - IconFont is passed to the InitStockFont method in the widgetset to load the font required. +

    + IconFont is passed to the InitStockFont method in the widgetset to load the font required. +

    - + The font used in menus - + The default font used for system task dialogs and controls like TSpeedButton @@ -6304,7 +7725,7 @@ - + The names of the available (installed) fonts @@ -6314,32 +7735,34 @@ - + The height of the primary monitor + - + The number of available Monitors - + - The indexed list of available monitors. + + Provides indexed access to the available monitors in the class instance - + Ordinal position for the TMonitor instance in the property value - + - The number of screen pixels for an virtual inch (DPI), in the vertical direction. + The number of screen pixels per virtual inch (Dots Per Inch)(DPI), in the vertical direction.

    @@ -6348,36 +7771,36 @@ - + The primary monitor typically shows the taskbar - + The width of the primary monitor - + - The usable display area on the primary monitor, excluding e.g. the taskbar + The usable display area on the primary monitor excluding the taskbar - + - The usable height of the primary monitor + The usable height of the primary monitor exclusing the task bar - + The usable left coordinate on the primary monitor @@ -6385,7 +7808,7 @@ - + The usable top coordinate on the primary monitor @@ -6393,7 +7816,7 @@ - + The usable width of the primary monitor @@ -6401,23 +7824,23 @@ - + - Handler for a Focus changed notification + Handler for a focus changed notification - + - Handler for a Focus changed notification + Handler for a form changed notification - + The type of an handler @@ -6426,7 +7849,7 @@ Set Cancel to True to prevent a logoff - + Defines an event handler signalled to perform exception handling in an application @@ -6450,7 +7873,7 @@ Exception instance for the notification - + Specifies an event handler used to get the handle for the main form in an application @@ -6470,7 +7893,7 @@ Handle for the form instance used as the main form - + Type of an Idle event handler @@ -6486,14 +7909,14 @@ Set to True when everything is done - + Specifies an event handler signalled to respond to user input messages in an application

    - TOnUserInputEvent is an object procedure type which defines an event handler signalled to respond to user input messages in an application. It is used as a callback which forwards input messages from widget set classes to the current application. + TOnUserInputEvent is an object procedure type which defines an event handler signalled to respond to user input messages in an application. It is used as a callback which forwards input messages from widgetset classes to the current application.

    TOnUserInputEvent is the type used for the OnUserInput event handler in TApplication and TApplicationProperties. @@ -6512,7 +7935,7 @@ - + The type of an asynchronous callback method @@ -6523,7 +7946,7 @@ The argument passed to the method - + Provides access to members in a CM_HINTSHOW control message @@ -6533,31 +7956,31 @@ TControl.CMHintShow - + - Cardinal value represnting the control message + Cardinal value representing the control message - + Reserved parameter values for the message - + Pointer to the hint information for the control message - + Result returned for the control message - + @@ -6565,31 +7988,31 @@ - + - + - + - + - + The TApplication hint timer state @@ -6602,12 +8025,12 @@ Waiting to show a hint; used when a hint timer is started - Waiting to hide an hint; used when the hint control is changed or the mouse leaevs a hint rectangle + Waiting to hide an hint; used when the hint control is changed or the mouse leaves a hint rectangle Waiting to show the next hint; used when the hide hint timer is started - + Defines an event handler signalled to perform hint display @@ -6632,7 +8055,7 @@ - + Stores control and mouse position information for a hint display @@ -6660,7 +8083,7 @@ Indicates if hint text is available for form or control - + Application state flags @@ -6707,9 +8130,9 @@ Application has been initialized - + - + Which keys can be used for the navigation within a form @@ -6738,17 +8161,19 @@ The Arrow keys move the focus - ? - + - + Types of Application notification handlers - TApplicationHandlerType is an enumerated type with values that identify handler categories used in TApplication. - - TApplicationHandlerType is used as an index value for the internal array of TMethodList instances used in TApplication. It is passed as an argument to the AddHandler and RemoveHandler methods in TApplication to identify the method list where the handler is stored. It is also used in the implementation of TApplication methods used to retrieve, execute, or maintain handlers such as: Destroy and RemoveAllHandlersOfObject. +

    + TApplicationHandlerType is an enumerated type with values that identify handler categories used in TApplication. +

    +

    + TApplicationHandlerType is used as an index value for the internal array of TMethodList instances used in TApplication. It is passed as an argument to the AddHandler and RemoveHandler methods in TApplication to identify the method list where the handler is stored. It is also used in the implementation of TApplication methods used to retrieve, execute, or maintain handlers such as: Destroy and RemoveAllHandlersOfObject. +

    @@ -6780,7 +8205,6 @@
    Handler invoked on handled exception - ? Handler invoked on session end @@ -6818,13 +8242,13 @@ Handler provides the Handle for the main form - + A queued asynchronous callback request node - + A queued asynchronous callback request node @@ -6848,9 +8272,8 @@ The preceding list node - superfluous, could be removed? - + The queue head for asynchronous callbacks @@ -6865,15 +8288,12 @@ The last queued method - + Management information for asynchronous callbacks

    - Two queues are used: -

    -

    - New calls are added to the Next queue. + Two queues are used in TAsyncCallQueues. New calls are added to the Next queue. Cur contains the callbacks currently being processed in the queue.

    When the application starts processing the calls, the Next queue becomes the Cur queue, and a new Next queue is created. This simplifies thread-safe addition in subsequent calls. @@ -6883,23 +8303,25 @@ + The critical section for adding and removing queue elements + The currently processed queue. Processed entries are removed - + New calls are added to this queue - + Identifies the kind of device where the application currently runs @@ -6926,6 +8348,7 @@ Devices without any pointing device, such as keypad feature phones or kiosk machines + Enumeration with dialog types for an application @@ -6944,12 +8367,12 @@ Exception handler window will be a simple message box - + Describes the policy for the application of how to show menu and button glyphs

    - TApplicationShowGlyphs is an enuemrated type with values that indicate the policy for displaying glyphs on menus and buttons. TApplicationShowGlyphs is the type used to implement the ShowButtonGlyphs and ShowMenuGlyphs properties in both TApplication and TApplicationProperties. + TApplicationShowGlyphs is an enumerated type with values that indicate the policy for displaying glyphs on menus and buttons. TApplicationShowGlyphs is the type used to implement the ShowButtonGlyphs and ShowMenuGlyphs properties in both TApplication and TApplicationProperties.

    @@ -6969,7 +8392,7 @@ Show glyphs according to the platform or OS preferences - + How forms are represented in the TaskBar @@ -6977,7 +8400,7 @@ TTaskBarBehavior is an enumerated type with values that define how forms are displayed in the task bar. TTaskBarBehavior is the type used to implement the TaskBarBehavior property in TApplication.

    - Please note: Some Linux window managers do not support task bar behaviors. For example: Cinnamon. + Some Linux window managers do not support task bar behaviors. For example: Cinnamon.
    @@ -6999,11 +8422,10 @@
    - ?
    - Widget set dependent; for LCL/Win32 it is True, unless in a remote desktop connection. For other widget sets it is False. + Widgetset dependent; for LCL/Win32 it is True, unless in a remote desktop connection. For other widgetsets it is False. @@ -7012,35 +8434,28 @@ - + Application management and configuration for a GUI application

    - TApplication is a TCustomApplication descendant which provides facilities used to manage and configure a GUI application. Properties, methods, and event handlers are provided which allow a program to create, execute, monitor, maintain and destroy an application and its forms. Every GUI application contains an Application variable that represents the TApplication or descendent class instance. + TApplication is a TCustomApplication descendant which provides facilities used to manage and configure a GUI application. Properties, methods, and event handlers are provided which allow a program to create, execute, monitor, maintain and destroy an application and its forms. Every GUI application contains an Application variable that represents the TApplication or descendent class instance.

    - TApplication provides a message processing loop that includes hooks for event handlers and exception handling, and supports dispatching messages for TCustomAction instances used in application forms. TApplication provides support for Hints and content-sensitive help for forms and controls used in the application. Convenience methods, like MessageBox, are provided to simplify access to dialogs and error messages in the application. + TApplication provides a message processing loop that includes hooks for event handlers and exception handling, and supports dispatching messages for TCustomAction instances used in application forms. TApplication provides support for hints and content-sensitive help for forms and controls used in the application. Convenience methods, like MessageBox, are provided to simplify access to dialogs and error messages in the application.

    - - - Needs more (or better) descriptions. - -
    - + - Holds the registered notification handlers for the application + Holds the registered handler routines for the application - - - + The list of components marked for release @@ -7048,7 +8463,6 @@ - The list of components which currently are released (destroyed) @@ -7056,7 +8470,6 @@ - @@ -7170,13 +8583,18 @@ + - Notifies the OnIdleEnd handlers; called when the application exits Idle state + + Notifies the OnIdleEnd handlers; called when the application exits Idle state + + + Gets the HelpFile name for the active form, or the Application @@ -7196,11 +8614,12 @@ Help file name located in the method + Gets the name of the executable for the application

    - GetExename is a String function used to get the name of the executable file which started the application. The return value contains the first commandline parameter (ordinal position 0) returned from the ParamStrUTF8 routine in LazUtils. + GetExename is a String function used to get the name of the executable file which started the application. The return value contains the first command line parameter (ordinal position 0) returned from the ParamStrUTF8 routine in LazUtils.

    @@ -7210,10 +8629,13 @@ Name of the executable file used to start the application + Gets the value for the Handle property - Returns the AppHandle property from the WidgetSet singleton. +

    + Returns the AppHandle property from the WidgetSet singleton. +

    @@ -7222,8 +8644,10 @@ The Handle for the application + Determines the main form handle, using all available handlers + @@ -7232,28 +8656,31 @@ + - When no Title was stored, extracts the program name from the commandline arguments + Gets the value for the Title when it is not already stored in the property - + +

    + Extracts the program name from the command line arguments when Title is unassigned. +

    +
    - + Value for the Title property - + Destroys the application icons

    - FreeIconHandles is a procedure used to free icon handles used in the application. FreeIconHandles ensures that the internal members for the small and large icon handles are destroyed (when assigned). The DestroyIcon routine is called to destroy each of the icon handles using the correct routine for the widget set implementation. + FreeIconHandles is a procedure used to free icon handles used in the application. FreeIconHandles ensures that the internal members for the small and large icon handles are destroyed (when assigned). The DestroyIcon routine is called to destroy each of the icon handles using the correct routine for the widgetset implementation.

    FreeIconHandles is called from the destructor for the class instance, and when an icon for the application has been changed.

    - - @@ -7261,51 +8688,51 @@
    - + - Loads the new application icons, notifies the widget set and all forms + Loads the new application icons, notifies the widgetset and all forms - + - + - + - + - + - + - + - + Handles mouse moving onto a new control @@ -7314,7 +8741,7 @@ - + Sets Hint to the (new) hint that applies to CurrentControl @@ -7326,38 +8753,38 @@ The control under the mouse - + - + - + - + - + - + Disables the Hint timer - + Checks for an installed HelpManager @@ -7368,18 +8795,18 @@ True when HelpManager is not Nil - + - + Asks the active form and MainForm to handle the action - + True when the action was handled @@ -7389,12 +8816,11 @@ - + Adds an application notification handler - @@ -7406,12 +8832,11 @@ - + Removes an application notification handler - @@ -7420,26 +8845,26 @@ - + Encapsulates the application message loop (HandleMessage) - + Handler for application activation, notifies all activation handlers - + Handler for application deactivation, notifies all deactivation handlers - True when called from the widget set + True when called from the widgetset - + Here: returns False, because this is a GUI application. @@ -7449,7 +8874,7 @@ False for a GUI application - + Notifies all Idle handlers @@ -7461,7 +8886,7 @@ True when all handlers are done, meaning: wait for next message - + Notifies all Idle End handlers, when a new message arrived @@ -7470,7 +8895,7 @@
    - + Notifies all Activation handlers @@ -7479,7 +8904,7 @@
    - + Notifies all Deactivation handlers @@ -7488,7 +8913,7 @@
    - + Notifies all CustomForms of Msg arrived @@ -7499,7 +8924,7 @@ The message to process - + NOP, exists for Delphi compatibility only @@ -7511,7 +8936,7 @@ - + OnHelp message handler. Tries the OnHelp handlers for the active form, and the Application, as well as application Help handlers. @@ -7534,15 +8959,14 @@ - ? - + OnMouseMove message handler, updates the Hint - + Shows or hides the Hint window @@ -7551,7 +8975,7 @@ Is updated with the Hint related information - + Event handler for timing the duration of hints @@ -7560,12 +8984,12 @@ - + - + Starts the timer for display of a hint message @@ -7579,20 +9003,19 @@ - + - Asks the widget set to update the TaskBar entries + Asks the widgetset to update the TaskBar entries - ? - + Updates all Actions, hides splash screens - + Hides the Hint window @@ -7601,24 +9024,24 @@ - + Calls all methods queued by QueueAsyncCall - + Ignored, should be zero - + Destroys all components marked for release - + Destroys all components @@ -7628,9 +9051,9 @@ - + - Returns the commandline argument at the specified position + Returns the command line argument at the specified position @@ -7638,12 +9061,12 @@ - + The Owner object that invoked this instance of TApplication - + Destructor for the class instance @@ -7673,7 +9096,7 @@
    - + Configures a hint window for the specified mouse position @@ -7684,14 +9107,12 @@ ActivateHint retrieves the hint information at the mouse position. If the control for the hint differs from the current hint control, the existing hint is deactivated. The new hint window sets its hint timer and calculates the rectangle for the hint window.

    - If a hint is not availabe for the specified mouse position, the CancelHint method is called. + If a hint is not available for the specified mouse position, the CancelHint method is called.

    ActivateHint is used in the implementation of the DoOnMouseMove and ShowHintWindow methods.

    - - @@ -7708,7 +9129,7 @@ Indicates if hint controls are used to compared existing and new hint windows - + Finds the control under the mouse Updates the LastMouse... info. @@ -7717,7 +9138,7 @@ The control, or Nil if no control is found - + Clears all references to the destroyed control @@ -7726,7 +9147,7 @@ - + The Handle of the large application Icon @@ -7736,7 +9157,7 @@ - + The Handle of the small application Icon @@ -7746,20 +9167,19 @@ - + - Asks the widget set to bring the application's form(s) to the front + Asks the widgetset to bring the application's form(s) to the front - ? - + Creates a Form or component, owned by Application - Please note: The method name is confusing and kept only for Delphi compatibility. The method can actually create any kind of component. + The method name is confusing and kept only for Delphi compatibility. The method can actually create any kind of component.

    CreateForm creates a Component instance of the given class, and sets the pointer to the component variable. If it is a form, it will be added to the form list in the application. @@ -7769,9 +9189,6 @@

    - - and loads the component? -
    The component class @@ -7779,18 +9196,18 @@ The variable receiving the new component reference - + - When MainForm is Nil, this form becomes the application MainForm + Makes the specified form the MainForm in the Application (when not already assigned) - The form that may become the MainForm + The form to use as the MainForm in the Application - + Inserts an asynchronous call into the queue This is thread safe. @@ -7805,7 +9222,7 @@ The argument passed to the method - + Removes all calls added via QueueAsyncCall This is thread safe. @@ -7814,10 +9231,11 @@ - + - Safe destruction of a component, can be requested - by the component itself + + Safely destroys a component; can be requested by the component itself +

    Unless the application is shutting down, all requests are queued. Queued requests are processed when the application is not currently processing a message. @@ -7828,9 +9246,10 @@ The component to destroy - + - Invokes the OnActionExecute handler + Signals the OnActionExecute handler + TComponent.ExecuteAction @@ -7841,9 +9260,9 @@ The Action to execute - + - Invokes the OnActionUpdate handler + Signals the OnActionUpdate handler TComponent.UpdateAction @@ -7855,7 +9274,7 @@ - + HandleException method for handling an exception; @@ -7873,21 +9292,18 @@ - + Handles all messages, and enters the Idle state - + Show help Currently relies on OnHelp handlers. CallHelp is not implemented. - - - ? @@ -7898,7 +9314,7 @@ - + Show context sensitive help @@ -7906,12 +9322,11 @@ Request handled - ? - + Show help for a keyword @@ -7923,7 +9338,7 @@ - + When Sender is a TControl, invoke its ShowHelp method @@ -7932,7 +9347,7 @@ Should be a TControl, else nothing will happen - + Remove StayOnTop from all forms. Builds a form list for use in RestoreStayOnTop. @@ -7945,9 +9360,8 @@ - ? - + Restores StayOnTop for all forms changed by RemoveStayOnTop @@ -7958,38 +9372,33 @@ - ? - + True if the application is awaiting an event - ? True if the application is in AppWaiting state - + Called when the Hint time has expired, to stop showing the Hint. - + Hides the Hint window - + Called when the the mouse is over a control with a Hint - Does nothing + Does nothing. - - ?exists for Delphi compatibility only? - @@ -7997,25 +9406,25 @@ - + - Initializes the widget set (and more) + Initializes the widgetset (and more)

    - Initialize is an overridden procedure in TApplication used to perform initialization tasks for the application. Initialize calls the inherited method to provide supprt for instance counting in the custom application. Initialize ensures that the WidgetSet class type is assigned for the application, and that the Screen singleton is initialized and updated. + Initialize is an overridden procedure in TApplication used to perform initialization tasks for the application. Initialize calls the inherited method to provide support for instance counting in the custom application. Initialize ensures that the WidgetSet class type is assigned for the application, and that the Screen singleton is initialized and updated.

    Initialize raises an Exception if WidgetSet has not been assigned, or contains a class type other than TWidgetSet, for the application.

    - Initialize updates the Flags property to include the value AppInitialized when both the LCL interface (Widget set) and the Screen singleton have been configured. + Initialize updates the Flags property to include the value AppInitialized when both the LCL interface (Widgetset) and the Screen singleton have been configured.

    Initialize loads the graphic image used in the Icon property. If a resource with the name MAINICON is included in the Lazarus Resource, it is loaded and used as the application icon. Otherwise, FindResource is called to locate and load the named icon from the resource handle.

    - Raises an Exception if the Widget Set class is invalid or not assigned. + Raises an Exception if the WidgetSet class is invalid or not assigned. @@ -8025,7 +9434,7 @@ TCustomApplication.Initialize
    - + Display an message dialog with several response buttons @@ -8091,21 +9500,21 @@
  • MB_ICONQUESTION
  • MB_ICONEXCLAMATION
  • MB_ICONASTERISK
  • -
  • MB_ICONWARNING = MB_ICONEXCLAMATION
  • -
  • MB_ICONERROR = MB_ICONHAND
  • -
  • MB_ICONSTOP = MB_ICONHAND
  • -
  • MB_ICONINFORMATION = MB_ICONASTERISK
  • +
  • MB_ICONWARNING (same as MB_ICONEXCLAMATION)
  • +
  • MB_ICONERROR (same as MB_ICONHAND)
  • +
  • MB_ICONSTOP (same as MB_ICONHAND)
  • +
  • MB_ICONINFORMATION (same as MB_ICONASTERISK)
  • - + - Asks the widget set to minimize the application. + Asks the widgetset to minimize the application. - + Called when a form is shown modally Invokes all OnModalBegin handlers when entering Modal state. @@ -8114,7 +9523,7 @@
    - + Called when a modal form is closed Invokes all OnModalEnd handlers when exiting Modal state. @@ -8123,7 +9532,7 @@
    - + Restores the previously minimized application. @@ -8132,7 +9541,7 @@
    - + Invokes the notification handlers. @@ -8151,7 +9560,7 @@ - + Call this method during lengthy operations, to keep the GUI responsive @@ -8161,7 +9570,7 @@
    - + Invoked when the application enters the idle state @@ -8170,7 +9579,7 @@ Wait for next message? - + MainForm is loaded and control is passed to the event loop @@ -8179,7 +9588,7 @@ - + Shows the exception message and asks the user to abort or continue @@ -8191,13 +9600,13 @@ Exception - + The application is terminated and the component engine is shutdown - + Blocks Idle handling. Can be called more often, every call must be followed by EnableIdleHandler. @@ -8206,9 +9615,8 @@ - what does this mean to application behavior? - + Resume Idle handling @@ -8217,19 +9625,18 @@ - + Notifies all user input handlers - of what? - + Notifies all ahtKeyDownBefore handlers @@ -8246,7 +9653,7 @@ - + Notifies all ahtKeyDownAfter handlers, eventually reacts on F1 (Help) @@ -8263,7 +9670,7 @@ - + Handles KeyDown events in a Control, e.g. handles navigation keys @@ -8278,7 +9685,7 @@ - + Handles KeyUp events in a Control, e.g. handles Enter and Esc keys @@ -8293,7 +9700,7 @@ - + Adds an application Idle handler @@ -8307,7 +9714,7 @@ - + Removes an application Idle handler @@ -8318,7 +9725,7 @@ - + Adds an application IdleEnd handler @@ -8332,7 +9739,7 @@ - + Removes an application IdleEnd handler @@ -8343,7 +9750,7 @@ - + Adds an application user input handler @@ -8357,7 +9764,7 @@ - + Removes an application user input handler @@ -8368,7 +9775,7 @@ - + Adds an application key down before interface handler @@ -8382,7 +9789,7 @@ - + Removes an application key down before interface handler @@ -8393,7 +9800,7 @@ - + Adds an application key down after interface handler @@ -8407,7 +9814,7 @@ - + Removes an application key down after interface handler @@ -8418,7 +9825,7 @@ - + Adds an application activation handler @@ -8432,7 +9839,7 @@ - + Removes an application activation handler @@ -8443,7 +9850,7 @@ - + Adds an application deactivation handler @@ -8457,7 +9864,7 @@ - + Removes an application deactivation handler @@ -8468,7 +9875,7 @@ - + Adds an application exception handler @@ -8482,7 +9889,7 @@ - + Removes an application exception handler @@ -8493,14 +9900,13 @@ - + Adds an application logoff handler - ? @@ -8508,19 +9914,18 @@ - + Removes an application logoff handler - ? - + Adds an application logoff query handler @@ -8534,7 +9939,7 @@ - + Removes an application logoff query handler @@ -8545,7 +9950,7 @@ - + Adds an application minimizing handler @@ -8559,7 +9964,7 @@ - + Removes an application minimizing handler @@ -8570,7 +9975,7 @@ - + Adds an application becoming modal handler @@ -8584,7 +9989,7 @@ - + Removes an application becoming modal handler @@ -8595,7 +10000,7 @@ - + Adds an application exiting modal state handler @@ -8609,7 +10014,7 @@ - + Removes an application exiting modal state handler @@ -8620,7 +10025,7 @@ - + Adds an application exiting minimized state handler @@ -8634,7 +10039,7 @@ - + Removes an application exiting minimized state handler @@ -8645,7 +10050,7 @@ - + Adds an application dropped files handler @@ -8659,7 +10064,7 @@ - + Removes an application dropped files handler @@ -8670,7 +10075,7 @@ - + Adds an application Help handler @@ -8684,7 +10089,7 @@ - + Removes an application Help handler @@ -8695,7 +10100,7 @@ - + Adds an application Hint handler @@ -8709,7 +10114,7 @@ - + Removes an application Hint handler @@ -8720,7 +10125,7 @@ - + Adds an application Hint show handler @@ -8734,7 +10139,7 @@ - + Removes an application Hint show handler @@ -8745,7 +10150,7 @@ - + Adds an application MainForm Handle handler @@ -8759,7 +10164,7 @@ - + Removes an application MainForm Handle handler @@ -8770,7 +10175,7 @@ - + Removes all handlers implemented in the given object @@ -8779,7 +10184,7 @@ - + Things to be done before a mouse message is processed @@ -8788,7 +10193,7 @@ - + Asks all shortcut handlers to handle the key @@ -8800,7 +10205,7 @@ - + Called by the interface to confirm the end of a session Asks all QueryEndSession handlers to confirm termination of the application. @@ -8813,7 +10218,7 @@ - + Called by the interface when the session ends Notifies all OnEndSession handlers. @@ -8822,7 +10227,7 @@ - + Called by the interface on application activation Notifies all activation handlers. @@ -8830,9 +10235,8 @@ - ? - + Called by the interface on application deactivation @@ -8840,9 +10244,8 @@ - ? - + Called by the interface when the application is minimized @@ -8851,7 +10254,7 @@ - + Called by the interface when the application is restored @@ -8860,7 +10263,7 @@ - + Called by the interface when files have been dropped @@ -8872,7 +10275,7 @@ - + Called by the interface when a theme option has changed @@ -8892,7 +10295,7 @@ - + Checks the given language name for use of right-to-left reading @@ -8904,11 +10307,10 @@ ISO language code examined in the method - + Gets the BidiMode value for the specified language name - @@ -8917,7 +10319,7 @@ ISO language name examined in the method - + Uses arrow keys for navigation, if enabled @@ -8930,7 +10332,7 @@ The active modifier keys - + Uses the Tab key for navigation, if enabled @@ -8945,7 +10347,7 @@ - + Interprets Esc as Cancel action, if applicable @@ -8960,7 +10362,7 @@ The active modifier keys - + Interprets Enter as the default action, if applicable @@ -8975,13 +10377,13 @@ The active modifier keys - + True if the application has the focus - + The type of the application (i.e. the sort of device for which it is intended) @@ -8992,11 +10394,11 @@ - + The bidirectional mode to use - + Enables exception handling by Application @@ -9028,24 +10430,23 @@ - + Enables searching for global components by name - ? - + Application state flags - Provides access to the widget set handle for the application instance + Provides access to the widgetset handle for the application instance

    - Handle is a THandle property which provides access to the widget set handle used for the application instance. Reading the value for the property is redirected to the AppHandle allocated in the widget set class. Setting the value for the property causes the AppHandle in the widget set class to be updated with the new value. + Handle is a THandle property which provides access to the widgetset handle used for the application instance. Reading the value for the property is redirected to the AppHandle allocated in the widgetset class. Setting the value for the property causes the AppHandle in the widgetset class to be updated with the new value.

    Handle is used to send and receive window messages and state change notifications for the application instance using the LCL interface. @@ -9055,12 +10456,12 @@ - + The current Hint text

    - A hint is a pop-up message that appears briefly while the mouse hovers over a control. It usually displays useful information about how to the UI element, or the type of data that should be entered, etc. + A hint is a pop-up message that appears briefly while the mouse hovers over a control. It usually displays useful information about how to use the UI element, or the type of data that should be entered, etc.

    Other properties can be used to customize the delay before a Hint is shown, after the mouse is moved away from the control or form, and how long it will remain visible. @@ -9072,7 +10473,7 @@ - + The color of Hint windows @@ -9080,7 +10481,7 @@ - + How long a Hint stays visible, after an mouse move @@ -9088,7 +10489,7 @@ - + How long a keystroke extends the time a Hint remains visible (added to HintHidePause) @@ -9099,7 +10500,7 @@ - + The delay before a Hint is shown @@ -9107,16 +10508,15 @@ - + Enables the display of keyboard shortcuts (e.g. on menu entries) - not implemented? - + The pause before a different Hint is displayed @@ -9124,7 +10524,7 @@ - + The icon associated with this application @@ -9139,35 +10539,41 @@ - + Allows switching between controls using keyboard navigation -

    These keys can be enabled for navigation:

    -
      -
    • The Tab key moves the Focus to the next (or previous) control - in TabOrder.
    • -
    • The Enter key triggers the default action.
    • -
    • The Escape key triggers the Cancel action.
    • -
    • The F1 key brings up context sensitive help.
    • -
    • The Arrow keys move the focus.
    • -
    +

    + By default, the following keys can be used for keyboard navigation in an LCL application: +

    +
    +
    Tab, Shift+Tab
    +
    Moves the Focus to the next (or previous) control in TabOrder.
    +
    Enter
    +
    Triggers the default action for the form or control.
    +
    Escape
    +
    Triggers the Cancel action for the form or control.
    +
    F1
    +
    Displays context sensitive help (when available).
    +
    Cursor or arrow keys
    +
    Moves the focus or cursor.
    +
    - + The application terminates when this form is closed

    - This property is set when the first form is created using the CreateForm method when FormStyle contains a valueother than fsSplash. + This property is set when the first form is created using the CreateForm method when FormStyle contains a value other than fsSplash.

    - + Window handle for the MainForm in the application @@ -9187,14 +10593,14 @@ - + Controls whether a button is displayed on the task bar for the main form in the application

    - MainFormOnTaskBar is a Boolean property which determines whether the icon for the main form in the appliciation is displayed on the task bar. When MainFormOnTaskBar is set to True, a button representing the main form is displayed on the task bar area in the window manager. When set to False, the button is not displayed in the task bar area. + MainFormOnTaskBar is a Boolean property which determines whether the icon for the main form in the application is displayed on the task bar. When MainFormOnTaskBar is set to True, a button representing the main form is displayed on the task bar area in the window manager. When set to False, the button is not displayed in the task bar area.

    Changing the value in the property causes the Widgetset class to be notified of the new property value. @@ -9212,7 +10618,7 @@ - + The number of modal forms shown Tracks modal forms showing another form modally. @@ -9235,7 +10641,7 @@ - + The control currently under the mouse Used to detect mouse entering and leaving a control. @@ -9250,33 +10656,31 @@ - Indicates if application format settings are updated when changed in a widget set class + Indicates if application format settings are updated when changed in a widgetset class - + Default handler for unhandled Actions - ? - + Default handler for unhandled Action updates - ? - + Event handler for activation of the application - + Event handler for deactivation of the application @@ -9317,7 +10721,6 @@ - or logoff? This event handler can deny to end the session @@ -9336,7 +10739,7 @@ Used in the CustomDraw interface. - + Event handler for a modal form opened (application entering modal mode) @@ -9345,7 +10748,7 @@ - + Event handler for closing modal forms (application exiting modal mode) @@ -9354,20 +10757,19 @@ - + Event handler for application restored (from minimized/maximized state) - + The default handler for dropped files - ? - + Event handler when help is requested @@ -9375,7 +10777,7 @@ - + Event handler when a hint is requested @@ -9383,7 +10785,7 @@ - + This event handler can interpret keystrokes as shortcuts, before the normal target handles the key @@ -9391,9 +10793,8 @@ - ? - + Event handler for showing an Hint @@ -9401,7 +10802,7 @@ - + Event handler signalled for application handler notifications for user input messages @@ -9412,7 +10813,7 @@ - + Event handler signalled when the application is freed @@ -9433,23 +10834,22 @@ - + Allows to override the platform default for glyphs on buttons Some platforms show glyphs on all buttons, others don't. - + Sets the default policy for showing or hiding glyph images in menus TGlyphShowMode - ? - + Indicates if Hints are displayed for the application @@ -9467,7 +10867,7 @@ - + Allows the main form to be shown or hidden when an application is started. @@ -9489,37 +10889,37 @@ Default value is bdLeftToRight. - + The default hint window color - + The default pause before the hint window displays (in milliseconds) - + - The default Hint reshow pause (in milliseconds) + The default Hint re-display pause (in milliseconds) - + The default pause before hint is hidden (in milliseconds) - + The default pause added to DefHintHidePause (in milliseconds) - + A component that provides access to the properties for the current application @@ -9574,7 +10974,7 @@ - + @@ -9616,7 +11016,7 @@ New value for the property - + Sets the value for the CaptureExceptions property @@ -9627,7 +11027,7 @@ New value for the property - + Sets the value for the HelpFile property @@ -9638,7 +11038,7 @@ New value for the property - + Sets the value for the Hint property @@ -9649,7 +11049,7 @@ New value for the property - + Sets the value for the HintColor property @@ -9660,7 +11060,7 @@ New value for the property - + Sets the value for the HintHidePause property @@ -9671,7 +11071,7 @@ New value for the property - + Sets the value for the HintPause property @@ -9682,7 +11082,7 @@ New value for the property - + Sets the value for the HintShortCuts property @@ -9693,7 +11093,7 @@ New value for the property - + Sets the value for the HintShortPause property @@ -9704,7 +11104,7 @@ New value for the property - + Sets the value for the ShowButtonGlyphs property @@ -9715,7 +11115,7 @@ New value for the property - + Sets the value for the ShowMenuGlyphs property @@ -9726,7 +11126,7 @@ New value for the property - + Sets the value for the ShowHint property @@ -9737,7 +11137,7 @@ New value for the property - + Sets the value for the ShowMainForm property @@ -9748,7 +11148,7 @@ New value for the property - + Sets the value for the Title property @@ -9779,7 +11179,7 @@ New value for the property - + Sets the value for the OnException property @@ -9790,7 +11190,7 @@ New value for the property - + Sets the value for the OnGetMainFormHandle property @@ -9801,7 +11201,7 @@ New value for the property - + Sets the value for the OnIdle property @@ -9812,7 +11212,7 @@ New value for the property - + Sets the value for the OnIdleEnd property @@ -9823,7 +11223,7 @@ New value for the property - + Sets the value for the OnEndSession property @@ -9834,7 +11234,7 @@ New value for the property - + Sets the value for the OnQueryEndSession property @@ -9845,7 +11245,7 @@ New value for the property - + Sets the value for the OnMinimize property @@ -9856,7 +11256,7 @@ New value for the property - + Sets the value for the OnModalBegin property @@ -9867,7 +11267,7 @@ New value for the property - + Sets the value for the OnModalEnd property @@ -9878,7 +11278,7 @@ New value for the property - + Sets the value for the OnRestore property @@ -9889,7 +11289,7 @@ New value for the property - + Sets the value for the OnDropFiles property @@ -9900,7 +11300,7 @@ New value for the property - + Sets the value for the OnHelp property @@ -9911,7 +11311,7 @@ New value for the property - + Sets the value for the OnHint property @@ -9922,7 +11322,7 @@ New value for the property - + Sets the value for the OnShowHint property @@ -9933,7 +11333,7 @@ New value for the property - + Sets the value for the OnUserInput property @@ -9944,7 +11344,7 @@ New value for the property - + Constructor for the class instance @@ -9959,7 +11359,7 @@ Owner of the class instance - + Destructor for the class instance @@ -9967,7 +11367,7 @@ Destroy is the overridden destructor for the class instance. Destroy ensures that event handlers in the class instance are removed from the handlers registered in the global TApplication instance.

    - Please note: Event handlers are not removed from the Application variable at design-time; they were not added at design-time either. + Event handlers are not removed from the Application variable at design-time; they were not added at design-time either.

    Destroy calls the inherited destructor prior to exiting from the method. @@ -10036,7 +11436,7 @@ - + The abstract base class for visual Form designers @@ -10052,7 +11452,7 @@ - + IsDesignMsg - receives a message from Sender, and returns True if it is a design message @@ -10068,14 +11468,14 @@ - + Method when design is Modified - + Notification that the supplied Operation has been applied to the @@ -10083,7 +11483,6 @@ - ? @@ -10091,14 +11490,14 @@ - + PaintGrid - method for painting the grid in the designer - + ValidateRename - method to validate the Rename process @@ -10114,7 +11513,7 @@ - + GetShiftState - returns the value of the shift state (whether shifted, Cntl key, Alt key etc) @@ -10124,7 +11523,7 @@ - + SelectOnlyThisComponent - method to select only the current component in the designer @@ -10134,28 +11533,33 @@ - + UniqueName - returns a Unique name for the designer, using the BaseName as a starting point - + - + - TFormPropertyStorage - class for storage of a Form's properties - + TFormPropertyStorage - class for storage of a Form's properties + + +

    + TFormPropertyStorage is a TControlPropertyStorage descendant which extends the ancestor class to read and write form values. It provides additional methods called when a form is created, closed, or freed. TFormPropertyStorage is the base class for descendants like TCustomIniPropStorage, TCustomJSONPropStorage, and TCustomXMLPropStorage. +

    +
    - + Calls the Restore method. @@ -10164,7 +11568,7 @@ - + @@ -10176,17 +11580,18 @@ - + - + - + - Converts modifier keys from the LParam of a - mouse message to a TShiftState + + Converts modifier keys in the LParam of a mouse message to a TShiftState value + @@ -10207,7 +11612,7 @@ The asynchronous keyboard state - + Converts modifier keys from the LParam keyboard message (WM_KEYUP for @@ -10233,14 +11638,14 @@ - + Converts a shift state into a key state value compatible with the key state of a Windows API LParam

    - The Keys value is of the type PtrUInt and is a or'ed combination of the following constants: + The return value is a PtrUInt type and contains an OR'ed combination of the following constants:

    • MK_Shift
    • @@ -10264,42 +11669,50 @@ MK_XBUTTON1 MK_XBUTTON2 - into what? - ? - + - - WindowStateToStr - converts a Window state to a string - - + Converts a TWindowState enumeration value to its String representation + +

      + WindowStateToStr is a String function used to get the string representation for the TWindowState enumeration value in the State argument. Calls GetEnumName in lazutilities to get the String representation for the value in State. +

      +
      + + +
      - + String representing the specified enumeration value - + TWindowState enumeration value converted in the routine - + - - StrToWindowState - converts a string to a Window state - - + Converts a string to a TWindowState enumeration value + +

      + StrToWindowState is a TWindowState function used to get the value from the TWindowState enumeration for the specified string. StrToWindowState calls the GetEnumValueDef routine in lazutilities to convert the string to its value in the TWindowState enumeration. The return value defaults to wsNormal when Name does not represent a value in the TWindowState enumeration. +

      +
      + + GetEnumValueDef +
      - + TWindowState value for the specified string, or wsNormal by default - + String representation for the window state enumeration value - + Formats various typed values into readable text @@ -10317,26 +11730,36 @@ - + - Pointer to focus state information for the last active control in an application - - - ? + + Pointer to focus state information for the last active control in an application + + +

      + Alias for the Pointer type. Used as the return value for the SaveFocusState function. +

      +
      + + +
      - + - Returns the last focused control in an application - + Returns the last focused control (focus state) in an application + +

      + Returns the value from the LastFocusedControl variable in the implementation for the unit. The type used for the return value is TFocusState. +

      +
      - ?
      - + Last control which had focus in the application - + Restores the last focused control in an application to specified value @@ -10347,12 +11770,11 @@ - + - ? @@ -10375,33 +11797,47 @@ - + OnGetDesignerForm is a TGetDesignerFormEvent variable that contains the event handler signalled to get a form with a design surface for the specified form or control. - ? - + - Gets the topmost Form containing the specified Control - + Gets the form instance for the specified Control + +

      + GetParentForm is a TCustomForm function used to the form instance for the control specified in the Control argument. +

      +

      + Control is the TControl instance examined in the method. The Parent property is used to navigate to preceding parent controls until a TCustomForm instance is found. +

      +

      + TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False (the default), the first TCustomForm instance found in the control hierarchy is used. Otherwise, all Parent controls in the hierarchy are examined until a Parent control has not been assigned. +

      +

      + The return value can contain the value in Control if it is a TCustomForm descendant and no other form instances are used in the control hierarchy. This is Delphi compatible. +

      +
      - + Form instance that is the parent for the specified control - + Control used to locate the parent form in the control hierarchy - + + True if the top-most form instance in the control hierarchy is needed + + - ? @@ -10412,18 +11848,28 @@ - + Does a recursive search for the first Parent of type TCustomForm - - + +

      + GetFirstParentForm is a TCustomForm function used to find the first form instance in the Parents for the specified Control. GetFirstParentForm calls the GetParentForm routine to get the form instance used as the return value. The return value is Nil when Control has not been assigned, or a form is not found in GetParentForm. +

      +

      + GetFirstParentForm is called from the IntfGetDropFilesTarget method in TWinControl, and from routines which handle accelerator keys for widgetset classes. +

      +
      + + +
      - + The first custom form instance found by ascending the control hierarchy - + TControl instance where the search for a parent form is started + @@ -10459,12 +11905,11 @@ True if all parent forms are located in the routine - + - ? @@ -10494,7 +11939,7 @@ - + Searches for the given virtual key, used as an accelerator @@ -10513,7 +11958,7 @@ The string to scan - + Invokes all application user input handlers @@ -10522,7 +11967,7 @@ The message to process - + Returns the short version of a Hint string @@ -10538,7 +11983,7 @@ The string containing both a short and long Hint - + Returns the long version of a Hint string @@ -10552,7 +11997,7 @@ - + The TApplication singleton @@ -10560,7 +12005,7 @@ - + The TScreen singleton @@ -10568,7 +12013,7 @@ - + Variable representing the current exception object in an application @@ -10580,7 +12025,7 @@ - + The class used to create hint window instances for an application @@ -10618,7 +12063,7 @@ - + The type used for the MessageBox variable @@ -10629,7 +12074,7 @@ Arguments passed to the function identify the content for the message dialog, including:

        -
      • Text displayed in the mesaage dialog
      • +
      • Text displayed in the message dialog
      • Title used on dialog form
      • Flag values that control the buttons and icon for the dialog
      @@ -10652,21 +12097,21 @@ - + - Provides the routine used to display a message dialog in widget set implementations + Provides the routine used to display a message dialog in widgetset implementations

      - Normally contains a reference to the DefaultMessageBox function. It may have another function reference assigned to the variable in specific widget set implementations (such as CustomDraw controls). + Normally contains a reference to the DefaultMessageBox function. It may have another function reference assigned to the variable in specific widgetset implementations (such as CustomDraw controls).

      DefaultMessageBox
      - + Maps form border styles to their border icons @@ -10696,21 +12141,21 @@ - + - Creates the widget set + Creates the widgetset singleton

      - CreateWidgetset is a procedure used to create the WidgetSet singleton. CreateWidgetset executes the nitialization handlers for the LCL interface. + CreateWidgetset is a procedure used to create the WidgetSet singleton. CreateWidgetset executes the initialization handlers for the LCL interface.

      - AWidgetsetClass is the TWidgetsetClass class type used to create the WidgetSet singleton. CreateWidgetset is called from the interfaces.pp unit for a specific widget set implementation (win32, gtk, gtk2, gtk3, qt, qt5, et. al.). + AWidgetsetClass is the TWidgetsetClass class type used to create the WidgetSet singleton. CreateWidgetset is called from the interfaces.pp unit for a specific widgetset implementation (win32, gtk, gtk2, gtk3, qt, qt5, et. al.).

      - TWidgetsetClass class type for the desired widget set implementation + TWidgetsetClass class type for the desired widgetset implementation @@ -10733,13 +12178,26 @@ CallInterfaceFinalizationHandlers - + Registers components declared in this unit

      - Register is a procedure used to register components declared in the forms.pp unit for use in the Lazarus IDE. The TFrame component is added to the Standard tab. In addition, the TScrollBox and TApplicationProperties components are added to the Additional tab. + Register is a procedure used to register components declared in the forms.pp unit for use in the Lazarus IDE. The following components are added to the component palette in the Lazarus IDE:

      +

      + Standard Tab +

      +
        +
      • TFrame
      • +
      +

      + Additional Tab +

      +
        +
      • TScrollBox
      • +
      • TApplicationProperties
      • +