- BeginUpdate is a method used to start an update process for the component. It increments an internal update counter used to consolidate OnChanging and OnChange event notifcations. The counter value is used in the Changing and Changed methods, and controls when the event notifications are enabled and performed. + BeginUpdate is a method used to start an update process for the component. It increments an internal update counter used to consolidate OnChanging and OnChange event notifications. The counter value is used in the Changing and Changed methods, and controls when the event notifications are enabled and performed.
Use EndUpdate to decrement the internal update counter. @@ -600,7 +600,7 @@ EndUpdate is a method used to finish an active update process for the component.
- For each call to BeginUpdate, there needs to be a corresponding call to EndUpdate. The methods are used as a pair to consolidate OnChanging and OnChange event notifcations. + For each call to BeginUpdate, there needs to be a corresponding call to EndUpdate. The methods are used as a pair to consolidate OnChanging and OnChange event notifications.
EndUpdate decrements the internal update counter incremented by calling BeginUpdate. When the update counter is a postive non-zero value, the Changed method is not called and the OnChange event handler is not signalled.
diff --git a/docs/xml/lcl/comboex.xml b/docs/xml/lcl/comboex.xml
index e4dc3e9b30..b03343d81f 100644
--- a/docs/xml/lcl/comboex.xml
+++ b/docs/xml/lcl/comboex.xml
@@ -697,7 +697,7 @@
Update is an overridden method in TListControlItems used to send a notification to observers when the value in AItem has been changed. Update calls the inherited method in TCollection.
diff --git a/docs/xml/lcl/dialogs.xml b/docs/xml/lcl/dialogs.xml
index 9e6bb47999..9c65e2206d 100644
--- a/docs/xml/lcl/dialogs.xml
+++ b/docs/xml/lcl/dialogs.xml
@@ -3569,7 +3569,7 @@ ADialog.FooterText := '(c) Copyright 1960-2021, Acme Corporation LLC.' + #10 +
- RadioButtons is a TTaskDialogButtons proprety with the collection of defined radio buttons for the Task dialog.
+ RadioButtons is a TTaskDialogButtons property with the collection of defined radio buttons for the Task dialog.
Radio buttons are displayed in the main content area for the Task dialog, below the values in Text and ExpandedText. Use of radio buttons is optional. They are displayed when items have been added to the collection. The TTaskDialogRadioButtonItem items in the collection are passed as an argument when the Execute method is called.
diff --git a/docs/xml/lcl/lazcanvas.xml b/docs/xml/lcl/lazcanvas.xml
index 623b1a02d4..eb93159d8d 100644
--- a/docs/xml/lcl/lazcanvas.xml
+++ b/docs/xml/lcl/lazcanvas.xml
@@ -92,16 +92,16 @@
This is a safer version for use where the destination pixels may not be consistent or valid. It will draw as if the target area contained opaque white pixels.
diff --git a/docs/xml/lcl/ldocktree.xml b/docs/xml/lcl/ldocktree.xml
index d1e19ec42a..2c9401b948 100644
--- a/docs/xml/lcl/ldocktree.xml
+++ b/docs/xml/lcl/ldocktree.xml
@@ -317,8 +317,12 @@
+ Returns the DockSite if no controls are found using the specified zone and anchor side.
+
@@ -32,9 +32,13 @@
+ The list is sorted, if required.
+
+ Allocates resources needed for the internal lists used in the class instance, and sets the default values for internal members.
+
+ Frees the values in and resources allocated to the internal lists for the class instance.
+
+ ValueType is stored in uppercase.
+
+ Calls the UnlockResource and FreeResource routines when resource descriptors are used for the platform. Calls the inherited method prior to exit.
+
+ TAbstractTranslator is a class which specifies the base class string and property translators used in the Lazarus Component Library (LCL). It defines an abstract virtual method used to translate string properties when they are read from a Lazarus Resource Stream (LRS).
+
+ Do not create instances of TAbstractTranslator; use one of the descendent class like TUpdateTranslator, TDefaultTranslator, or TPOTranslator.
+
+ TranslateStringProperty is an abstract virtual method which defines the method used to translate a String property in a persistent object instance. TranslateStringProperty must be implemented in a descendent class to perform the actions needed to retrieve and translate the specified property value.
+
+ The address for the method is assigned as the OnReadStringProperty event handler in TReader class instances.
+
+ The value for the variable is assigned when SetDefaultLang is called.
+
+ Allocates the internal list used to store values in the Data property.
+
+ Frees resources allocated for the Data property, and calls the inherited method prior to exit.
+
+ Sets the value in the Count property to 0, which causes the items stored in Data to be freed.
+
+ Create is the constructor for the class instance.
+
+ Create allocates a 4K buffer used to store the values read from Stream. The buffer is examined in the methods for the class. It initializes internal members used in the parser implementation to their default values. The internal buffer is loaded with the first 4K block of values in Stream, and the NextToken method is called to position the parser on the first token in the buffered values.
+
+ Destroy is the overridden destructor for the class instance. It moves the stream to the position returned from SourcePos (the position for the last processed value in the internal buffer). Destroy free the memory allocated for the internal buffer in the class instance.
+
- The function ConvertComponentAsString converts a component to binary format
- with a leading size information (using WriteLRSInt64MB).
-
- When streaming components over network, they will arrive in chunks.
-
- TCustomLazComponentQueue tells you, if a whole component has arrived.
+ ConvertComponentAsString converts a component to binary format with a leading size information (using WriteLRSInt64MB).
+
+ When streaming components over network, they will arrive in chunks. TCustomLazComponentQueue tells you, if a whole component has arrived.
+ Allocates resources needed for the internal queue storage.
+
+ Frees resources allocated to the internal queue storage.
+
+ TPropertyToSkip is a record type with information about a property in a persistent class that is omitted during LCL component streaming. TPropertyToSkip is the type maintained in the TPropertiesToSkip list when the RegisterPropertyToSkip routine is called.
+
+ Items is an indexed PRemovedProperty property used to access skipped property definitions by their ordinal position in the list. Read and write access for the property value ensures the inherited Get or Put methods are called.
+
+ FPC is not optimized for building a constant string out of thousands of lines. It needs huge amounts of memory and becomes very slow. Therefore big files are split into several strings.
+
+ This file is part of the Lazarus Component Library (LCL).
+
@@ -194,31 +197,33 @@
- TNotifierForm is a THintWindow descendant that implements the form used for TPopupNotifier. TNotifierForm has private members that are used for the title, text, icon, and button in the popup notification.TNotifierForm provides methods which paint, hide, and handle resizing for the form.
+ TNotifierForm is a THintWindow descendant that implements the form used for TPopupNotifier. TNotifierForm has private members that are used for the title, text, icon, and button on the pop-up notification form.TNotifierForm provides methods which paint, hide, and handle resizing for the form.
Create is the constructor for the class instance. Create calls the inherited constructor using AOwner as the owner for the class instance. Create sets the BorderStyle to bsNone, and calculates the Width and Height for the form. Create allocates resources and initializes the Icon, Title, Text, and Button for the form. The Color for the form is set to clInfoBk.
@@ -316,14 +320,33 @@
+ Paint is an overridden method in TNotifierForm used to render the form to its Canvas using values in the Color and ImgIcon properties. Canvas is updated with the brush style and color needed, and its FillRect method is called to paint the background for the form. The bitmap in ImgIcon is drawn on the Canvas when it has been assigned. +
++ Paint re-implements the method, and does not call the inherited method. +
+- TPopupNotifier is a TComponent descendant which implements a popup notification component. TPopupNotifier includes a TNotifierForm member which displays the contents of the notification. TPopupNotifier provides methods and properties that allow access to the form and its controls. TPopupNotifier also provides methods which display and hide the form. + TPopupNotifier is a TComponent descendant which implements a pop-up notification component. TPopupNotifier includes a TNotifierForm member which displays the contents of the notification. TPopupNotifier provides methods and properties that allow access to the form and its controls. TPopupNotifier also provides methods which display and hide the form.
- GetColor is a TColor function used to get the value for the Color property in the form which displays the popup notification. GetColor is the read access specifier for the Color property. + GetColor is a TColor function used to get the value for the Color property in the form which displays the pop-up notification. GetColor is the read access specifier for the Color property.
Use Color to read or write the value for the property.
@@ -357,7 +380,7 @@
- SetColor is procedure used to set color for the form which displays the popup notification. SetColor is the write access specifier for the Color property. SetColor stores the specified value in the Color property for the notification form.
+ SetColor is procedure used to set color for the form which displays the pop-up notification. SetColor is the write access specifier for the Color property. SetColor stores the specified value in the Color property for the notification form.
Use Color to read or write the value for the property.
@@ -378,7 +401,7 @@
- GetIcon is a TPicture function which gets the icon for the popup notification form. GetIcon is the read access specifier for the Icon property.
+ GetIcon is a TPicture function which gets the icon for the pop-up notification form. GetIcon is the read access specifier for the Icon property.
Use Icon to read or write the value for the property.
@@ -397,7 +420,7 @@
- SetIcon is a procedure which sets the Icon for the popup notification form to the specified value. SetIcon is the write access specifier for the Icon property.
+ SetIcon is a procedure which sets the Icon for the pop-up notification form to the specified value. SetIcon is the write access specifier for the Icon property.
Use Icon to read or write the value in the property.
@@ -418,7 +441,7 @@
- GetText is a String function which gets the value of the Text label for the popup notification form. GetText is the read access specifier for the Text property. GetText returns the Caption for the corresponding TLabel on the popup notification form.
+ GetText is a String function which gets the value of the Text label for the pop-up notification form. GetText is the read access specifier for the Text property. GetText returns the Caption for the corresponding TLabel on the pop-up notification form.
Use Text to read or write the value for the property.
@@ -439,7 +462,7 @@
- SetText is a procedure which sets the text on the popup notification form to the specified value. SetText is the write access specifier for the Text property. SetText stores the specified value in the caption of the corresponding TLabel on the popup notification form.
+ SetText is a procedure which sets the text on the pop-up notification form to the specified value. SetText is the write access specifier for the Text property. SetText stores the specified value in the caption of the corresponding TLabel on the pop-up notification form.
Use Text to read or write the value for the property.
@@ -458,7 +481,7 @@
- GetTitle is a String function which gets the title displayed on the popup notification form. GetTitle is the read access specifier for the Title property. GetTitle returns the value for the caption in the corresponding TLabel on the notification form.
+ GetTitle is a String function which gets the title displayed on the pop-up notification form. GetTitle is the read access specifier for the Title property. GetTitle returns the value for the caption in the corresponding TLabel on the notification form.
Use Title to read or write the value in the property.
@@ -479,7 +502,7 @@
- SetTitle is a procedure which sets the value for the title on the popup notification form. SetTitle is the write access specifier for the Title property. SetTitle stores the specified value in the caption of the TLabel for the popup notification form.
+ SetTitle is a procedure which sets the value for the title on the pop-up notification form. SetTitle is the write access specifier for the Title property. SetTitle stores the specified value in the caption of the TLabel for the pop-up notification form.
Use Title to read or write the value for the property.
@@ -500,7 +523,7 @@
- GetVisible is a Boolean function which gets the value for the Visible property in the popup notification form. GetVisible is the read access specifier for the Visible property.
+ GetVisible is a Boolean function which gets the value for the Visible property in the pop-up notification form. GetVisible is the read access specifier for the Visible property.
Use Visible to read or write the value for the property.
@@ -521,13 +544,13 @@
- SetVisible is a procedure which sets the value in the Visible property for the popup notification form. SetVisible is the write access specifier for the Visible property.
+ SetVisible is a procedure which sets the value in the Visible property for the pop-up notification form. SetVisible is the write access specifier for the Visible property.
Use Visible to read or write the value for the property.
- Use Show or ShowAtPos to display the popup notification form for the component. Use Hide to close the popup notification form for the component.
+ Use Show or ShowAtPos to display the pop-up notification form for the component. Use Hide to close the pop-up notification form for the component.
- GetOnClose is a TCloseEvent function which gets the OnClose event handler assigned to the popup notification form. GetOnClose is the read access specifier for the OnClose property.
+ GetOnClose is a TCloseEvent function which gets the OnClose event handler assigned to the pop-up notification form. GetOnClose is the read access specifier for the OnClose property.
Use OnClose to read or write the value for the property.
@@ -562,11 +585,11 @@
- SetOnClose is a procedure which sets the OnClose event handler in the popup notification form to the specified value. SetOnClose is the write access specifier for the OnClose property.
+ SetOnClose is a procedure which sets the OnClose event handler in the pop-up notification form to the specified value. SetOnClose is the write access specifier for the OnClose property.
Use OnClose to read or write the value in the property.
@@ -583,11 +606,11 @@
- vNotifierForm is a public TNotifierForm member which represents the form used to display the popup notification. vNotifierForm is instantiated in Create but not displayed; its Visible property is set to False. vNotifierForm is displayed using the Show or ShowAtPos methods. Use the Hide method to hide the form. vNotifierForm is freed in the Destroy method.
+ vNotifierForm is a public TNotifierForm member which represents the form used to display the pop-up notification. vNotifierForm is instantiated in Create but not displayed; its Visible property is set to False. vNotifierForm is displayed using the Show or ShowAtPos methods. Use the Hide method to hide the form. vNotifierForm is freed in the Destroy method.
- Destroy is the destructor for the component instance. Destroy calls the Hide method for the popup notification form, and frees the the vNotifierForm member. Destroy calls the inherited destructor prior to exiting from the method.
+ Destroy is the destructor for the component instance. Destroy calls the Hide method for the pop-up notification form, and frees the the vNotifierForm member. Destroy calls the inherited destructor prior to exiting from the method.
- Hide is a procedure which hides the popup notification form for the component. Hide calls the Hide method in VNotifierForm.
+ Hide is a procedure which hides the pop-up notification form for the component. Hide calls the Hide method in VNotifierForm.
- Show is a procedure which displays the popup notification form for the component. Show calls the Show method in vNotifierForm.
+ Show is a procedure which displays the pop-up notification form for the component. Show calls the Show method in vNotifierForm.
- ShowAtPos is a procedure which displays the popup notification form at the specified position on the screen. Values in X and Y are corrected to fit the screen dimensions, similar to the mechanism used for TPopupMenu. ShowAtPos calls the Show method in vNotifierForm to display the popup notification form.
+ ShowAtPos is a procedure which displays the pop-up notification form at the specified position on the screen. Values in X and Y are corrected to fit the screen dimensions, similar to the mechanism used for TPopupMenu. ShowAtPos calls the Show method in vNotifierForm to display the pop-up notification form.
- Color is a TColor property that provides access to the Color property in the popup notification form. GetColor is the read access specifier for the property. SetColor is the write access specifier for the property.
+ Color is a TColor property that provides access to the background color for the pop-up notification form. GetColor is the read access specifier for the property. SetColor is the write access specifier for the property.
- Icon is a TPicture property that provides access to the Icon for the popup notification form. GetIcon is the read access specifier for the property. SetIcon is the write access specifier for the property.
+ Icon is a TPicture property that provides access to the Icon for the pop-up notification form. GetIcon is the read access specifier for the property. SetIcon is the write access specifier for the property.
- Text is a String property that provides access to the text for the popup notification form. GetText is the read access specifier for the property. SetText is the write access specifier for the property.
+ Text is a String property that provides access to the text for the pop-up notification form. GetText is the read access specifier for the property. SetText is the write access specifier for the property.
+ TextFont is a TFont property with the font face used for the Text displayed on the form. Changing the value for the property causes the font to be assigned to the TLabel instance used to display the value in Text.
+
- Title is a String property that provides access to the title for the popup notification form. GetTitle is the read access specifier for the property. SetTitle is the write access specifier for the property.
+ Title is a String property that provides access to the title for the pop-up notification form. GetTitle is the read access specifier for the property. SetTitle is the write access specifier for the property.
+ TitleFont is a TFont property with the font face used for the
+ Title displayed on the form. Changing the value for the property causes the font to be assigned to the TLabel instance used to display the value in Title.
+
- Visible is a Boolean property that provides access to the Visible property for the popup notification form. GetVisible is the read access specifier for the property. SetVisible is the write access specifier for the property.
+ Visible is a Boolean property that provides access to the Visible property for the pop-up notification form. GetVisible is the read access specifier for the property. SetVisible is the write access specifier for the property.
- OnClose is a TCloseEven property that provides access to the OnClose event handler for the popup notification form. GetOnClose is the read access specifier for the property. SetOnClose is the write access specifier for the property.
+ OnClose is a TCloseEven property that provides access to the OnClose event handler for the pop-up notification form. GetOnClose is the read access specifier for the property. SetOnClose is the write access specifier for the property.
+ Register adds the following components to the Lazarus IDE component palette:
+
+ Common Controls Tab
+
Only the .lfm file is used by the LCL (dialogs.pp). This unit is itself is not compiled into the LCL. This form is used to design the .lfm file.
@@ -31,7 +31,7 @@
+ TEditAction is a TAction descendant which defines the base class for standard editing actions applied to an edit control. It provides a Control property with the TCustomEdit control where the action is applied. It provides an overridden HandlesTarget method to determine if the action can be applied to a specified control.
+
+ Do not create instances of TEditAction. Use one of the descendent classes that implement UpdateTarget and ExecuteTarget methods, like:
+
+ Calls the inherited method on entry. Ensures that the value in the Control member is set to Nil when the component is removed from the class instance.
+
+ HandlesTarget is a Boolean function which indicates if the editing action can be applied to the object in Target. The return value is True when:
+
- Limits the target for the action to a specific control.
+ Control is a TCustomEdit property with the control for the standard editing action. Control limits the target for the action to a specific control. Setting a new value for the property causes a free notification to be added or removed as needed for the new property value.
+ TEditCut is a TEditAction descendant which performs a cut to clipboard editing action for a TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its CutToClipboard method is called to perform the editing action.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ Target is the object instance examined in the method. It is cast to the TCustomEdit type used in the Control property. The Enabled property is set to True when the control in Target has an active text selection (SelLength is not 0).
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ TEditCopy is a TEditAction descendant which performs a copy to clipboard editing action for the selected value in a TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its CopyToClipboard method is called to perform the editing action.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ Target is the object instance examined in the method. It is cast to the TCustomEdit type used in the Control property. The Enabled property is set to True when the control in Target has an active text selection (SelLength is not 0).
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ TEditPaste is a TEditAction descendant which copies the contents of the clipboard editing action into the specified TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ UpdateTarget sets the value in Enabled to True when values in the Clipboard includes the CF_TEXT content format.
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its PasteFromClipboard method is called to perform the editing action.
+
+ TEditSelectAll is a TEditAction descendant which selects all of the content in the value for the specified TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its SelectAll method is called to perform the editing action.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ Target is the object instance with values examined in the method. It is cast to the TCustomEdit type used in the Control property, and its Text property is checked for an existing text value. UpdateTarget sets the value in Enabled to True when Text is not an empty string ('').
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ TEditUndo is a TEditAction descendant which reverses the previous change to the value for the specified TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its Undo method is called to perform the editing action.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ Target is the object instance with values examined in the method. It is cast to the TCustomEdit type used in the Control property, and its CanUndo method is called to get the value assigned to the Enabled property.
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ TEditDelete is a TEditAction descendant which removes the current selected text for the specified TCustomEdit control. It re-implements the UpdateTarget and ExecuteTarget methods to use the TCustomEdit type for the affected control.
+
+ ExecuteTarget is an overridden method used to execute the editing action for the specified target control. It re-implements the method introduced in the ancestor class.
+
+ Target is the object instance where the editing action is applied. It is cast to a TCustomEdit type, and its ClearSelection method is called to perform the editing action.
+
+ UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.
+
+ Target is the object instance with values examined in the method. It is cast to the TCustomEdit type used in the Control property, and sets Enabled to True when text is currently selected in the control.
+
+ UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.
+
+ THelpAction is a TAction descendant which implements the base class for help actions. It is used as the ancestor for classes including: THelpContents, THelpTopicSearch, THelpOnHelp , and THelpContextAction.
+
+ Calls the inherited constructor.
+
+ Calls the inherited method.
+
+ Calls the inherited method.
+
+ Calls the inherited method.
+
+ Contains the class reference used to create new dialog instances in TCommonDialogAction. TCommonDialogClass is the type returned from the GetDialogClass method in TCommonDialogAction.
+
- Calls GetDialogClass to get the class reference used to create
- the dialog instance. When assigned, it is created and stored in
- the Dialog property. It Name is set to the ClassName for the
- class reference, and it is marked as a sub-component for the
- class instance.
+ Calls GetDialogClass to get the class reference used to create the dialog instance. When assigned, it is created and stored in the Dialog property. It Name is set to the ClassName for the class reference, and it is marked as a sub-component for the class instance.
+ Create is the overridden constructor for the class instance, and calls the inherited method on entry. Create calls CreateDialog to create and configure a new instance of the dialog class type used in the implementation. It sets the value in Enabled to True.
+
- Calls the inherited constructor, and sets the value for the
- internal Control to Nil.
+ Calls the inherited constructor, and sets the value for the internal Control to Nil.
- Removes the free notification for the internal Control
- (when assigned), and calls the inherited destructor.
+ Removes the free notification for the internal Control (when assigned), and calls the inherited destructor.
+
+
+
+
+
+