diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml
index 8bf1369a2c..6f3bd30354 100644
--- a/docs/xml/lcl/forms.xml
+++ b/docs/xml/lcl/forms.xml
@@ -8,7 +8,7 @@
-->
@@ -165,7 +165,9 @@
Used in methods which call LCL interface routines to avoid exceptions resulting from an unassigned control or an invalid handle value.
@@ -434,7 +438,9 @@
- 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.
+ 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.
@@ -501,7 +507,7 @@
- Assigns the contents of the source object to the current object; in particular finds the Increment, Position, Range and whether smooth scrolling is to be feature and whether the scroll bar is visible.
+ Assigns the contents of the source object to the current object; in particular finds the Increment, Position, Range and whether smooth scrolling is to be feature and whether the scroll bar is visible.
- ClientSize is used in methods like ClientSizeWithBar and ClientSizeWithoutBar to get the size for the scroll bar adjusted for scroll bar spacing returned from GetSystemMetrics.
+ ClientSize is used in methods like ClientSizeWithBar and ClientSizeWithoutBar to get the size for the scroll bar adjusted for scroll bar spacing returned from GetSystemMetrics.
- When it takes a significant amount of time to repaint the parent control at a new position, Tracking should be False to prevent flicker. This causes the control to be updated only when the slider is released.
+ When it takes a significant amount of time to repaint the parent control at a new position, Tracking should be False to prevent flicker. This causes the control to be updated only when the slider is released.
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.
+ Set Visible to False to disallow the user to scroll the content, while the content still can be scrolled by code.
Use IsScrollBarVisible to get the current visible state of the widget.
@@ -996,7 +1002,9 @@
+ Used in the implementation of the ComputeScrollbars method.
+
- ParentBackground is a Boolean property which indicates if the background for the Parent control is drawn as the background for the current control instance. The default value in TScrollBox is False.
+ ParentBackground is a Boolean property which indicates if the background for the Parent control is drawn as the background for the current control instance. The default value in TScrollBox is False.
- ParentBackground is True when csParentBackground is included in the ControlStyle property. Setting the value in ParentBackground causes ControlStyle to be updated to include or exclude the csParentBackground enumeration value; it is included when True.
+ ParentBackground is True when csParentBackground is included in the ControlStyle property. Setting the value in ParentBackground causes ControlStyle to be updated to include or exclude the csParentBackground enumeration value; it is included when True.
TCustomDesignControl is a TScrollingWinControl descendant which provides a designer surface used for scaling and layout of its child controls.
@@ -1646,7 +1661,7 @@
DoAutoAdjustLayout adjusts the height and width for the design surface by the specified scaling factors. Similarly, the BorderSpacing and Constraints in the control are adjusted using the scaling factors. Finally, the SetBounds method is called to apply the new values for Height and Width to the design surface.
- TCustomFrame is a TCustomDesignControl descendant which implements the base class for TFrame. A Frame is a named container for related components. Groups of controls can be place on a frame, and re-used in your applications.
+ TCustomFrame is a TCustomDesignControl descendant which implements the base class for TFrame. A Frame is a named container for related components. Groups of controls can be place on a frame, and re-used in your applications.
- A Frame has behavior very similar to a Form. Their unique ability is that they can be embedded into forms or other frames in the designer. Like forms, they are stored in two separate files: the code is stored in a .pas unit file, and the design is stored in a .lfm file.
+ A Frame has behavior very similar to a Form. Their unique ability is that they can be embedded into forms or other frames in the designer. Like forms, they are stored in two separate files: the code is stored in a .pas unit file, and the design is stored in a .lfm file.
Frames can be created and designed in the Lazarus IDE by creating a new Frame module, and using the unit in your application. An existing frame can be added using the TFrame component on the Standard tab in the Lazarus IDE; you will be prompted for the TFrame class to use for the component.
@@ -1788,14 +1803,16 @@
- AddActionList is called from the Notification method when a TCustomActionList instance has been added to the control. This occurs when a new Parent is assigned for the frame instance.
-
+ AddActionList is called from the Notification method when a TCustomActionList instance has been added to the control. This occurs when a new Parent is assigned for the frame instance.
+
- Ensures that Color is changed to the value in the Parent control when the property is set to True. Color is set to clDefault when the property is set to False. Calls UpdateOpaque to ensure that the csOpaque style flag is applied to the ControlStyle property as needed.
+ Ensures that Color is changed to the value in the Parent control when the property is set to True. Color is set to clDefault when the property is set to False. Calls UpdateOpaque to ensure that the csOpaque style flag is applied to the ControlStyle property as needed.
- CMParentColorChanged is an overridden method in TCustomFrame. It calls the inherited method on entry to update the values in Color and ParentColor. If the control has finished loading using the LCL component streaming mechanism, the UpdateOpaque method is called to update flag values in the ControlStyle property. ControlStyle is not updated if csLoading is included in the ComponentState property.
+ CMParentColorChanged is an overridden method in TCustomFrame. It calls the inherited method on entry to update the values in Color and ParentColor. If the control has finished loading using the LCL component streaming mechanism, the UpdateOpaque method is called to update flag values in the ControlStyle property. ControlStyle is not updated if csLoading is included in the ComponentState property.
CalculatePreferredSize is an overridden method in TCustomFrame. It ensures that the inherited method is not called when the frame is an un-parented component and visible on the form designer. This allows the dimensions to be freely resized on the design surface. Values in the PreferredWidth, PreferredHeight, and WithThemeSpace arguments are not modified at design-time.
@@ -2002,7 +2021,9 @@
- If the new property value is True and ParentColor is True, the color assigned to the Parent control is stored in the Color property. Otherwise, Color is set to the value clDefault. The UpdateOpaque method is called to adjust the control style flags for the control. + If the new property value is True and ParentColor is True, the color assigned to the Parent control is stored in the Color property. Otherwise, Color is set to the value clDefault. The UpdateOpaque method is called to adjust the control style flags for the control.
The default value for the property is True.
@@ -2101,10 +2122,10 @@
- TFrame is a TCustomFrame descendant which implements a named container for related components. Groups of controls can be place on a frame, and re-used in your applications.
+ TFrame is a TCustomFrame descendant which implements a named container for related components. Groups of controls can be place on a frame, and re-used in your applications.
- A Frame has behavior very similar to a Form. Their unique ability is that they can be embedded into forms or other frames in the designer. Like forms, they are stored in two separate files: the code is stored in a .pas unit file, and the design is stored in a .lfm file.
+ A Frame has behavior very similar to a Form. Their unique ability is that they can be embedded into forms or other frames in the designer. Like forms, they are stored in two separate files: the code is stored in a .pas unit file, and the design is stored in a .lfm file.
Frames can be created and designed in the Lazarus IDE by creating a new Frame module, and using the unit in your application. An existing frame can be added using the TFrame component on the Standard tab in the Lazarus IDE; you will be prompted for the TFrame class to use for the component.
@@ -2257,11 +2278,15 @@
- When WindowState is changed to wsNormal, the window origin or size is restored. For delayed OnChangeBounds and OnChangeBounds messages, the DoOnShow and/or Activate methods are called when the form is Active. If the form has not already been displayed and activated, the DoOnResize or the DoOnChangeBounds method is called for the corresponding delayed message. + When WindowState is changed to wsNormal, the window origin or size is restored. For delayed OnChangeBounds and OnChangeBounds messages, the DoOnShow and/or Activate methods are called when the form is Active. If the form has not already been displayed and activated, the DoOnResize or the DoOnChangeBounds method is called for the corresponding delayed message.
- Raises a catchable exception if the Code property has not been assigned for the TMethod instance in Handler. Raised with the message 'TCustomForm.AddHandler'. + Raises a catchable exception if the Code property has not been assigned for the TMethod instance in Handler. Raised with the message 'TCustomForm.AddHandler'.
- Calls SetActive to update the value in the Active property to reflect the value for the Active member in Message. + 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.
@@ -3142,7 +3167,7 @@
- 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.
+ 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.
- 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.
+ 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.
Activate uses an internal member to determine whether the form is being displayed for the first time, or following a change of focus between forms. No actions are performed in the method when the form is being displayed for the first time and the WindowState property contains wsMaximized or wsFullScreen.
@@ -3334,7 +3359,9 @@
+ Can be implemented in a descendant to perform actions needed when the active form is changed. Just like Delphi VCL.
+
+ When the update counter reaches zero, FormEndUpdated is invoked to realize the pending changes. +
- 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 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. @@ -3568,12 +3597,16 @@
+ By default the Application exception handler is invoked. +
++ By default the Application exception handler is invoked. +
+- 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. + 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.
@@ -3630,7 +3667,7 @@
- ChildHandlesCreated is called after all handles for child controls are created. When this is a top-level form (Parent is Nil), the ParentFormHandleInitialized method is also called.
+ ChildHandlesCreated is called after all handles for child controls are created. When this is a top-level form (Parent is Nil), the ParentFormHandleInitialized method is also called.
- If the value in WindowState has been changed, the method honors the value in the Position property if it was set to maximized at design-time. When the OnWindowStateChange event handler has been assigned for the form, it is signalled for the current class instance. + If the value in WindowState has been changed, the method honors the value in the Position property if it was set to maximized at design-time. When the OnWindowStateChange event handler has been assigned for the form, it is signalled for the current class instance.
- DefaultMonitor is used to determine whether the form needs to be moved to a different monitor for the value in Position. For instance: + DefaultMonitor is used to determine whether the form needs to be moved to a different monitor for the value in Position. For instance:
- 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. + 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. @@ -3936,7 +3979,7 @@ 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. + 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.
- Calls the inherited method prior to exit. Called prior to setting the new value for the Visible property in a control (or form) in the SetVisible method. + Calls the inherited method prior to exit. Called prior to setting the new value for the Visible property in a control (or form) in the SetVisible method.
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. + When the Screen singleton has been assigned, its NotifyScreenFormHandler method is called to signal all snFormVisibleChanged handlers in the class instance.
Called after a new value has been assigned to the Visible property for the control (or form). @@ -4040,7 +4085,7 @@
+ Calls InitResourceComponent to load resources for the current form instance. +
- 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. + 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.
- 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. + 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.
- UpdateActions is a procedure used to update actions assigned to components on the form instance. No actions are performed in the method at design-time, or when the Showing property is set to False in the form instance. + UpdateActions is a procedure used to update actions assigned to components on the form instance. No actions are performed in the method at design-time, or when the Showing property is set to False in the form instance.
UpdateActions applies updates for an assigned Menu in the form instance. Items on the Menu update their actions when the menu item is visible. Finally, all controls on the form instance are recursively searched; controls which are action clients update their actions when they are visible. @@ -4344,10 +4391,10 @@
- GetFormImage sets the size for the TBitmap instance to the values in the ClientWidth and ClientHeight properties. The GetWindowRect routine in
The return value can be Nil if an Exception was raised and handled in the method.
@@ -4618,7 +4665,7 @@
@@ -4675,7 +4722,7 @@
CanFocus is an overridden Boolean function which indicates if the form instance can receive focus. The return value is True when the form is Visible and Enabled, or the inherited CanFocus method returns True. @@ -4724,7 +4771,7 @@
@@ -5120,7 +5167,7 @@ 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. + 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. @@ -5164,7 +5211,7 @@
The SetWindowFocus method is called if the form is Active, and the ActiveChanged method is called. @@ -5211,7 +5258,7 @@ 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 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.
@@ -5257,7 +5304,7 @@
- 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.
+ 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.
+ 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).
+
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. @@ -5596,7 +5645,7 @@
- The Msg argument contains the key event examined in the handler. Handled indicates that the key is handled by the event when set to True. + The Msg argument contains the key event examined in the handler. Handled indicates that the key is handled by the event when set to True.
- If true, the Font will be the same as the one from the Parent. + If True, the Font will be the same as the one from the Parent. The default value for the property is False in TCustomForm.
- While ParentFont is True, all changes to the font in the parent will also be applied to the font for the control. This synchronizes them, keeping them set to the same values. If changes are made directly to the Font property in the control, then ParentFont is automatically be set to False. + While ParentFont is True, all changes to the font in the parent will also be applied to the font for the control. This synchronizes them, keeping them set to the same values. If changes are made directly to the Font property in the control, then ParentFont is automatically be set to False.
- 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. + 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.
- 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. + 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.
+ WSRegisterClass is an overridden class procedure used to register the widgetset class used to create new instances of the 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. + 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.
- Use BorderStyle to get or set the appearance of the form's border. The default value in TCustomDockForm is bsSizeToolWin. + Use BorderStyle to get or set the appearance of the form's border. The default value in TCustomDockForm is bsSizeToolWin.
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 widgetset. There are no borders under GTK. @@ -6562,7 +6613,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
Create uses the default size from the class type for the control to set the initial bounds for the hint window.
@@ -6878,7 +6929,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- ActivateHintData is an extended version of ActivateHint. It provides the additional AData argument which contains a pointer to values which can be used to construct the text displayed in the hint window.
+ ActivateHintData is an extended version of ActivateHint. It provides the additional AData argument which contains a pointer to values which can be used to construct the text displayed in the hint window.
The implementation in THintWindow does not use the values in AData. The method must be overridden in a descendent class to use the additional hint data in AData.
@@ -6930,7 +6981,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- If AutoHide is TRUE, the hint disappears after an interval specified by HideInterval.
+ If AutoHide is True, the hint disappears after an interval specified by HideInterval.
- The return value indicates if the focus state has changed during form deactivation, and may return False if deactivation failed. FocusedForm is set to Nil if deactivation failed.
+ The return value indicates if the focus state has changed during form deactivation, and may return False if deactivation failed. FocusedForm is set to Nil if deactivation failed.
Otherwise, AForm is saved to the FocusedForm property and a CM_ACTIVATE message is performed. The return value is False if the activation failed.
@@ -8003,7 +8054,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- HandlerType is a TScreenNotification enumeration value that defines the situation(s) where the screen handler can be executed. See TScreenNotification for more information about values in the enumeration.
+ HandlerType is a TScreenNotification enumeration value that defines the situation(s) where the screen handler can be executed. See TScreenNotification for more information about values in the enumeration.
Handler is a TMethod record with pointers to the code and optional data executed when the handler is invoked.
@@ -8370,9 +8421,9 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
+
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.
- MoveFormToFocusFront is called when the focused control is changed in the TCustomForm instance. It is also called from the ShowModal method in TCustomForm. + MoveFormToFocusFront is called when the focused control is changed in the TCustomForm instance. It is also called from the ShowModal method in TCustomForm.
It ensures that ACustomForm is moved to the first position in CustomForms (the top of the Z-order). When ACustomForm is a TForm instance, it is also moved to the first position in the Forms property. Calls MoveFormToZFront to ensure that the form is moved to the first position in the CustomFormsZOrdered property.
@@ -8563,7 +8614,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- MonitorDefault is a TMonitorDefaultTo enumeration value which indicates the monitor used when the display area for the form is not found on a monitor. See TMonitorDefaultTo for more information about the values in the enumeration and their meanings. + MonitorDefault is a TMonitorDefaultTo enumeration value which indicates the monitor used when the display area for the form is not found on a monitor. See TMonitorDefaultTo for more information about the values in the enumeration and their meanings.
MonitorFromWindow calls MonitorFromWindow in the widgetset class to get a monitor handle used to locate the monitor in the Monitors property. The UpdatedMonitor method is called to ensure that Monitors contains up-to-date values for the available monitors.
@@ -9116,7 +9167,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- ActiveCustomForm is a read-only TCustomForm property which contains the active custom form instance which has focus on the screen. The property value is updated in TCustomForm methods like SetFocusedControl and MoveToDefaultPosition. It is also updated in TApplication methods like ControlDestroyed.
+ ActiveCustomForm is a read-only TCustomForm property which contains the active custom form instance which has focus on the screen. The property value is updated in TCustomForm methods like SetFocusedControl and MoveToDefaultPosition. It is also updated in TApplication methods like ControlDestroyed.
Use ActiveForm to get the TForm instance that has focus on the screen.
@@ -9176,7 +9227,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
RealCursor is a read-only TCursor property which provides the current shape for the cursor taking temporary cursors into account.
- Temporary cursors are added and removed using the BeginTempCursor and EndTempCursor methods. When a temporary cursor exists, RealCursor returns the most recent cursor shape added to the internal list using BeginTempCursor. If the internal list is empty, the value in Cursor is returned as the property value.
+ Temporary cursors are added and removed using the BeginTempCursor and EndTempCursor methods. When a temporary cursor exists, RealCursor returns the most recent cursor shape added to the internal list using BeginTempCursor. If the internal list is empty, the value in Cursor is returned as the property value.
The value from RealCursor is used in the SetCursor method to determine the value stored in the Cursor property, and passed as an argument to SetCursor in the widgetset class.
@@ -9634,7 +9685,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
PrimaryMonitor is a read-only TMonitor property with the primary monitor for the system. The property value is determined by checking for the TMonitor instance in Monitors with its Primary property set to True. The property value is Nil if a monitor is not found with its Primary property set to True.
- The property value is used in the MoveToDefaultPosition method in TCustomForm. It is also used in widgetset classes to select the monitor for a dialog when the main form for an application has not been assigned.
+ The property value is used in the MoveToDefaultPosition method in TCustomForm. It is also used in widgetset classes to select the monitor for a dialog when the main form for an application has not been assigned.
- TIdleEvent is the type used for the OnIdle event handler in TApplication. The event handler is signalled when the application becomes idle. The event handler can return False in Done to allow other idle event handlers to be signalled. The idle event handlers are called repeatedly until Done is set to True. + TIdleEvent is the type used for the OnIdle event handler in TApplication. The event handler is signalled when the application becomes idle. The event handler can return False in Done to allow other idle event handlers to be signalled. The idle event handlers are called repeatedly until Done is set to True.
Use the TIdleEvent event handler type to provide short duration event handlers which ensure that the application remains responsive.
@@ -9860,7 +9911,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- Two queues are used in TAsyncCallQueues. New calls are added to the Next queue. Cur contains the callbacks currently being processed in the 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.
@@ -10391,7 +10442,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- GetCurrentHelpFile checks for an active form in the Screen singleton. If a form is active, the file name in its HelpFile property is used as the return value. If a form is not active, the HelpFile in the Application instance is used. + GetCurrentHelpFile checks for an active form in the Screen singleton. If a form is active, the file name in its HelpFile property is used as the return value. If a form is not active, the HelpFile in the Application instance is used.
- NotifyIdleHandler is called from the Idle method. It occurs after the ReleaseComponents and ProcessAsyncCallQueue methods have been called. It is also called after the OnIdle event handler in the TApplication has been signalled (when assigned) and when the Done argument to the event handler is True. + NotifyIdleHandler is called from the Idle method. It occurs after the ReleaseComponents and ProcessAsyncCallQueue methods have been called. It is also called after the OnIdle event handler in the TApplication has been signalled (when assigned) and when the Done argument to the event handler is True.
- NotifyActivateHandler signals the OnActivate event handler (when assigned) using the TApplication instance as the Sender for the notification event. The CallNotifyEvents method in the TMethodList is called to signal each of the routines for the handler type. + NotifyActivateHandler signals the OnActivate event handler (when assigned) using the TApplication instance as the Sender for the notification event. The CallNotifyEvents method in the TMethodList is called to signal each of the routines for the handler type.
NotifyActivateHandler is called when an application is initially executed, and when focus is acquired from a different application. @@ -11063,7 +11114,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint'); NotifyDeactivateHandler is a method used to signal all of the deactivate handlers for the application. OnDeactivate is signalled (when assigned) using the application instance as an argument.
- CallNotifyEvents is executed for each of the handlers in the TMethodList for the ahtDeactivate notification type. Use AddOnDeactivateHandler and RemoveOnDeactivateHandler to maintain an additional handler for the notification type. + CallNotifyEvents is executed for each of the handlers in the TMethodList for the ahtDeactivate notification type. Use AddOnDeactivateHandler and RemoveOnDeactivateHandler to maintain an additional handler for the notification type.
NotifyDeactivateHandler is called from the Deactivate method, and occurs when focus is changed to another application or the application is closed.
@@ -11110,7 +11161,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- GetParams is an overridden String function in TApplication used to get the argument at the specified position in the command line. It re-implements the read access specifier for the property from the ancestor class, and does not call the inherited method. + GetParams is an overridden String function in TApplication used to get the argument at the specified position in the command line. It re-implements the read access specifier for the property from the ancestor class, and does not call the inherited method.
Index is the ordinal position for the requested parameter value. Index must be in the range 0..ParamCount-1 or an EListError exception is raised. Position 0 contains the name of the executable file for the application. @@ -11370,7 +11421,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint'); Hint display is cancelled and suppressed while the application is shutting down. The action component for the application is set to Nil to prevent execution of associated actions during shutdown.
- Destroy frees resources allocated in the application instance, including the Icon and any Icon handles currently in use. Handlers added to application instance are also freed. + Destroy frees resources allocated in the application instance, including the Icon and any Icon handles currently in use. Handlers added to application instance are also freed.
Destroy calls the inherited destructor, and discards any pending asynchronous calls not previously handled for the application instance. Exception handling is restored to the state on entry to the Create constructor. Finally, the Application class instance is set to Nil. @@ -11511,7 +11562,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint'); The method name is slightly misleading, 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 list of forms in the application. + 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 list of forms in the application.
A splash form is shown immediately.
@@ -11554,7 +11605,11 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
+ This is thread safe.
+
+ This is thread safe.
+
- The return value is False if the help context could not be handled using any of these options. + The return value is False if the help context could not be handled using any of these options.
+ Builds a list of forms for use in the RestoreStayOnTop method. +
The return value is True when AppWaiting has been included in the Flags for the application.
@@ -11808,7 +11869,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
+ Does nothing. +
+Several constants are declared in the LCLType unit.
-Add (better: OR) an icon constant and a buttons constant. For example:
++ Add (better: OR) an icon constant and a buttons constant. For example: +
MB_ABORTRETRYIGNORE + MB_ICONQUESTION
- Causes the application to display a query (?) icon in a box with three buttons: ABORT RETRY IGNORE.
-Buttons can be one of:
++ Causes the application to display a query (?) icon in a box with three buttons: ABORT RETRY IGNORE. +
++ Buttons can be one of: +
The icon can be one of:
++ The icon can be one of: +
+ Invokes all OnModalBegin handlers when entering Modal state. +
+ Invokes all OnModalEnd handlers when exiting Modal state. +
- When the Wait argument is set to True, the AppWaitMessage method in the widgetset class is called to capture an message on the handles for the application. This action is not performed when Wait is False. + When the Wait argument is set to True, the AppWaitMessage method in the widgetset class is called to capture an message on the handles for the application. This action is not performed when Wait is False.
Idle calls the DoOnIdleEnd method to signal the OnIdleEnd event handler and any application handlers using the ahtIdleEnd handler type.
@@ -12872,7 +12949,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- The return value is set to True if the key code in the message is handled by the application or one of the enabled forms or controls in the application.
+ The return value is set to True if the key code in the message is handled by the application or one of the enabled forms or controls in the application.
IsShortCut signals the OnShortcut event handler (when assigned) to determine if the accelerator is handled at the application level. If it is handled in OnShortcut, no additional actions are performed in the method.
@@ -12887,13 +12964,13 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
Finally, the main form for the application is checked by calling its IsShortCut method.
- The return value is False when the shortcut is not handled in any of the preceding calls to IsShortCut.
+ The return value is False when the shortcut is not handled in any of the preceding calls to IsShortCut.
- Calls GetFormatSettingsUTF8 or GetFormatSettings, depending on use of UTF-8 in the RTL, when UpdateFormatSettings is set to True. This applies to Windows platforms only. + Calls GetFormatSettingsUTF8 or GetFormatSettings, depending on use of UTF-8 in the RTL, when UpdateFormatSettings is set to True. This applies to Windows platforms only.
Active is a read-only Boolean property which indicates if the application is focused. Returns True if the AppActive flag has been included in the Flags for the application. @@ -13140,7 +13217,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint'); The default value for the property is adbDefault and indicates that the application uses the default capabilities provided by the widgetset.
- MainFormOnTaskBar is a platform-dependent property. It may not be implemented for all platforms supported for the Lazarus application. In addition, some platforms which display task bar thumbnails (like Windows Vista) may require the property to be set to True. + MainFormOnTaskBar is a platform-dependent property. It may not be implemented for all platforms supported for the Lazarus application. In addition, some platforms which display task bar thumbnails (like Windows Vista) may require the property to be set to True.
The default value for the property is normally set in the Lazarus project file (.lpr) used to compile the application.
@@ -13572,7 +13649,7 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- OnActionUpdate is a TActionEvent property with the event handler signalled to update actions used in the application. OnActionUpdate is signalled from the UpdateAction method called when the CM_UPDATEACTIONS control message is handled in the application.
+ OnActionUpdate is a TActionEvent property with the event handler signalled to update actions used in the application. OnActionUpdate is signalled from the UpdateAction method called when the CM_UPDATEACTIONS control message is handled in the application.
- It is signalled from the DoOnIdleEnd method, and occurs after the AppWaitMessage method in the widgetset class has been completed. It occurs before the NotifyIdleEndHandler method is called to process other application handlers using the ahtIdleEnd type. + It is signalled from the DoOnIdleEnd method, and occurs after the AppWaitMessage method in the widgetset class has been completed. It occurs before the NotifyIdleEndHandler method is called to process other application handlers using the ahtIdleEnd type.
Use OnIdle to perform actions needed when the application enters the idle state.
@@ -13753,7 +13830,9 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
Event handler signalled when a message dialog in the application has been completed.
+ Used in the CustomDraw interface.
+
- When Scaled is set to True, the application allows the design-time PixelsPerInch value to be adjusted to reflect the run-time value. Forms, frames, image lists, and other controls also have a Scaled property which determines if the feature is enabled for that particular class type. If Scaled is set to False in TApplication, the feature is disabled for all of the other class types. Scaled (at the application-level) is normally checked before the component- or control-level setting. + When Scaled is set to True, the application allows the design-time PixelsPerInch value to be adjusted to reflect the run-time value. Forms, frames, image lists, and other controls also have a Scaled property which determines if the feature is enabled for that particular class type. If Scaled is set to False in TApplication, the feature is disabled for all of the other class types. Scaled (at the application-level) is normally checked before the component- or control-level setting.
- 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. + 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.
- The return value is a set type with the TShiftState values corresponding to the virtual key codes. It may be an empty set when none of the virtual keys are detected. + The return value is a set type with the TShiftState values corresponding to the virtual key codes. It may be an empty set when none of the virtual keys are detected.
- TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False, 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. + TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False, 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. + 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.
- The form resource is the
- If the resource file is missing, there is something wrong with either a resource or the unit which contains the faulty form. If the flag is False, you will see a blank form and probably search a long time what is wrong. If you set this flag to True, you get an exception. + If the resource file is missing, there is something wrong with either a resource or the unit which contains the faulty form. If the flag is False, you will see a blank form and probably search a long time what is wrong. If you set this flag to True, you get an exception.
For creating forms without resources, you have 3 options: @@ -15489,15 +15571,13 @@ HintWindow.ActivateHint(Rect, 'This is the hint');
- History: - Before 0.9.31 there was no exception. Therefore some resource-less forms - might use the standard constructor Create(Owner) and will now get - exceptions. This change is Delphi compatible and compatible with - TFrame and TDataModule components. + History: Before 0.9.31 there was no exception. Therefore some resource-less forms might use the standard constructor Create(Owner) and will now get exceptions. This change is Delphi compatible and compatible with TFrame and TDataModule components.