diff --git a/docs/xml/lazutils/laz2_dom.xml b/docs/xml/lazutils/laz2_dom.xml index 7018804668..fc2ed92c8b 100644 --- a/docs/xml/lazutils/laz2_dom.xml +++ b/docs/xml/lazutils/laz2_dom.xml @@ -5786,7 +5786,7 @@ Destructor for the class instance.

- Destroy is the overridden destructor for the class instance. It ensures that the Flags for the node are updated to include the value nfDestroying. If the OwnerDocument for the node has a hash table for node IDs, its RemoveID method is called to remove the current class isntance. Destroy frees resources allocated for the Attributes property, and calls the inherited destructor prior to exit. + Destroy is the overridden destructor for the class instance. It ensures that the Flags for the node are updated to include the value nfDestroying. If the OwnerDocument for the node has a hash table for node IDs, its RemoveID method is called to remove the current class instance. Destroy frees resources allocated for the Attributes property, and calls the inherited destructor prior to exit.

diff --git a/docs/xml/lcl/actnlist.xml b/docs/xml/lcl/actnlist.xml index 368c983390..88e14bc306 100644 --- a/docs/xml/lcl/actnlist.xml +++ b/docs/xml/lcl/actnlist.xml @@ -40,11 +40,18 @@ - - TContainedAction - parent class for TCustomAction; defines some properties especially relationships with parents. - - - + Implements an Action class which has a category and parent action list. + +

+ TContainedAction is a TBasicAction descendant which allows an action to be given a category, and grouped with related actions. It provides additional properties and methods used to assign an action to the category and an associated list of actions. These values are used at design-time in the Action List editor. +

+

+ TContainedAction is the ancestor for the TCustomAction class. +

+
+ + TBasicAction +
@@ -101,106 +108,150 @@ - - - - + + Reads properties and child components for the class instance. + +

+ ReadState is an overridden method in TContainedAction used to read values for the class instance during LCL component streaming. It calls the inherited method to read properties and child components using the specified TReader class instance. When the Parent in Reader is a TCustomActionList instance, it is stored in the ActionList property. +

+
+ + + + TComponent + TReader.Parent +
- + TReader instance used to read values for the component. - - - - + + Sets the parent component for the class instance. + +

+ SetParentComponent is an overridden method used to set the property in the class instance which contains the parent component. It re-implements the method from the ancestor class. +

+

+ In TContainedAction, it sets the ActionList property to the value in AParent when AParent is derived from TCustomActionList. +

+
+ + + TComponent +
- + Value assigned to the parent component for the class. - - - - - - - - + + Destructor for the class instance.

- If you call Destroy for an object which hasn't being initialized yet it will generate an error. Always use the Free method to deallocate objects, because it verifies if object variable doesn´t contain the value nil. + Destroy is the overridden destructor for the class instance. When ActionList has been assigned, its RemoveAction method is called to delete the current class instance.

- Take the following precautions when creating your own Destroy method: + Destroy calls the inherited method to free the class instance and unregister any action link clients.

-
    -
  • - Declare Destroy with the override directive, because it is a virtual method. -
  • -
  • - Always call 'inherited Destroy;' as the last thing on the destructor code. -
  • -
  • - An exception may be raised on the constructor in case there is not enough memory to create an object, or something else goes wrong. If the exception is not handled inside the constructor, the object will be only partially built. In this case Destroy will be called, so your destructor must check if the resources were really allocated before disposing of them. -
  • -
  • - Remember to call Free for all objects created on the constructor. -
  • -
- + + + + TBasicAction.Destroy + TComponent.Destroy +
- - - - + + Executes the action using a available OnExecute event handler. + +

+ Execute is an overridden method in TContainedAction. It checks for an available OnExecute event handlers in ActionList, the Application singleton, and the class instance. If an OnExecute event handler is not found, it posts a CM_ACTIONEXECUTE control message to the application. +

+
+ + + + + TComponent.ExecuteAction + TBasicAction.Execute +
- + + True if the action was executed using one of the available execution options. + - - - - + + Gets the parent component for the class instance. + +

+ GetParentComponent is an overridden method used to get the property in the class instance which is the parent component for the class instance. It re-implements the method from the ancestor class. +

+

+ In TContainedAction, it gets the value in the ActionList property (when assigned) or calls the inherited method. +

+
+ + + + TComponent +
- + Parent component for the class instance, or Nil when not assigned. - - - - + + + Indicates if a value has been assigned to the property with the parent component for the class instance. + + +

+ HasParent is an overridden method in TContainedAction. It checks for an assigned value in the ActionList property, and sets the return value to True when assigned. Otherwise, the inherited method is called to get the return value. +

+
+ + + TComponent.HasParent +
- + True when the parent component has been assigned. - - + + + Signals an available OnUpdate event handler to update values in the Action. + - + + TBasicAction.Update + - + True if an OnUpdate event handler was found and executed for the Action. - The ActionList in which this action is contained. + + The ActionList where the action is stored, and its parent component. + - The Index of this action in the list of actions. + + Ordinal position for the action in ActionList. + @@ -212,41 +263,112 @@ - + Class type for TContainedAction instances. + + + Implements an enumerator for the Actions in TCustomActionList. + +

+ TActionListEnumerator implements an enumerator for TContainedAction values stored in TCustomActionList. It allows navigation of values in the Actions property using the "for .. in" loop syntax. TActionListEnumerator is the type returned from the TCustomActionList.GetEnumerator method. +

+
+ + + + + +
+ + + + + + + + Constructor for the class instance. + +

+ Stores the value passed in AList to the member variable for the Actions property. Sets the value for the internal position member to -1. +

+
+ +
+ + Action list with the values for the enumerator. + + + + Moves to the next value for the enumerator. + + + + + + True if the next value was available. False when no more values exist for the enumerator. + + + + + Current value for the enumerator. + +

+ Current is a read-only TContainedAction property with the current value for the enumerator. The property value is retrieved from Actions using the position in an internal member. +

+
+ +
+ - - + + Specifies an event handler signalled to implement an action in TCustomActionList. + + +

+ Arguments passed to the event handler include the Action for the notification and a return value that indicates if the action was executed. +

+

+ TActionEvent is the type used for the OnExecute and OnUpdate properties in TCustomActionList. +

+
- + TBasicAction for the event notification. - + True if the action was executed in the action list for t he handler. - - + Represents state values for an action list. + +

+ TActionListState is the type used for the State property in TCustomActionList. +

+
- + The action list is enabled, and can update and execute its actions. - + + The action list is disabled, and the Enabled state for its actions is ignored. + - + + The action list is disabled, but the Enabled state for its actions is set to True. + @@ -333,84 +455,122 @@ - AddAction - adds an action to the list. - + Adds the specified action to the action list. + +

+ Sets the parent component for the action, and adds the value to the internal list for the component. Raises an Exception if the Action has already been added to the action list. +

+
- + TContainedAction instance added in the method. - RemoveAction - removes an action from the list. + Removes the specified action from the action list. - + TContainedAction instance removed from the action list. - Change the action.. - + + Performs action needed when the action list or one of its Actions has been changed. + + +

+ Change signals the OnChange event handler (when assigned) to perform user-specified operations for the action list. Change also visits each of the Actions in the action list, and calls its Change method to signal the OnChange event handler supplied at the action level. It calls the OwnerFormDesignerModified routine at design-time to notify the form designer of the change to the action list. +

+

+ Change is called when a new TCustomImageList value is assigned to the Images property in the action list. +

+
+ + OwnerFormDesignerModified +
- - + + Executes the specified procedure for each of the children in Actions. - + + + TComponent + TGetChildProc + - + Object procedure to execute for each of the children in the component. - + Not used in the method. - - - - + + + Handles the notification performed when a component is added to or removed from the class instance. + + +

+ Calls the inherited method on entry. Sets Images to Nil when the image list is removed from the component. Calls the RemoveAction method when AComponent is a TContainedAction instance removed from the component. +

+
+ + TComponent +
- + Component of the notification. - + Action performed for the specified component. - - - - + + Set the order for the specified child (Action). + +

+ SetChildOrder is an overridden method in TCustomActionList. It sets the ordinal position for the action in Component to the value specified in Order. The IndexOf method in Actions is called to get the current position for Component. The value in Order is assigned to the Index property in the TContainedAction when it exists in Actions. No actions are performed in the method when Component is not stored in the Actions for the action list. +

+
+ + + + TComponent +
- + Child component (action) re-order in the method. - + New position in the Actions list. - SetImages - stores a list of images. + Sets the value for the Images property. - + + + - + New value for the Images property. - OnChange - event handler for a change in the action. + Event handler signalled when the action list has been changed. @@ -467,14 +627,31 @@
- + + + Returns an action identified by its name (as a string). + + + + + + + + + + + + + Examines and executes the specified Action.

ExecuteAction checks whether Action handles the current component, and if yes, calls the ExecuteAction method, passing itself as a parameter. The function returns True if the action handles the current component.

- + + TComponent.ExecuteAction +
@@ -483,14 +660,16 @@ - + Examines and updates the target for the specified Action.

UpdateAction checks whether Action handles the current component, and if yes, calls the UpdateTarget method, passing itself as a parameter. The function returns True if the action handles the current component.

- + + TComponent.UpdateAction +
@@ -499,6 +678,17 @@ + + Gets an enumerator for the action list. + + + + + + + TActionListEnumerator instance for the class. + + The Index value of the name of this action in the ActionList. @@ -520,20 +710,6 @@ - - - Returns an action identified by its name (as a string). - - - - - - - - - - - The indexed list of actions. @@ -572,7 +748,7 @@ TActionList - The basic actions list class. TActionList is the last component on the "Standard" component palette on the Lazarus IDE.

- To use an ActionList, click on the icon on the IDE Standard Components toolbar, then click anywhere on the main form and an ActionList icon will appear. It doesn't matter where you position it, because it is not visible at run-time. + To use an ActionList, click on the icon on the IDE Standard Components toolbar, then click anywhere on the main form and an ActionList icon will appear. It does not matter where you position it, because it is not visible at run-time.

You can add, remove or modify actions on the list by right-clicking on the ActionList icon on the form editor and then choosing "Edit action list...", or by double-clicking on the icon with the left mouse button. This will open the "Action List Editor". @@ -584,7 +760,7 @@ The TActionList class introduces very few properties of its own, but inherits a lot from its ancestor, TCustomActionList, and related components TAction, TCustomAction, TContainedAction and - TBasicAction. + TBasicAction.

Each entry in the ActionList appears in the Object Inspector as an instance of TAction, and its properties are accessible and modifiable from the Object Inspector. @@ -685,23 +861,22 @@ - + - + - + + + + - - - - @@ -856,7 +1031,10 @@ - + + + Copies property from the class instance to the specified persistent object. +

AssignTo is the generic function to assign the class' contents to another class. This method must be overridden by descendent classes to actually assign the content of the source instance to the destination instance. @@ -872,21 +1050,29 @@ Raises an EConvertError exception if the current class cannot be assigned to the persistent class instance in Dest. - + + TPersistent + - - - - + + Sets the value for the Name property. + +

+ SetName is overridden in TCustomAction. It calls the inherited method to ensure that Value is a valid identifier name for the component and its owner (when assigned). The inherited method may raise an EComponentError exception if the name in value is not a valid identifier. The new property value is also assigned to the Caption property in the action when the number of control clients is 0. +

+
+ + TComponent +
- + New value for the Name property. @@ -946,7 +1132,25 @@ HintStr - the text-string for display as a hint.
- + + Executes the action using a available OnExecute event handler. + +

+ Execute is an overridden method in TCustomAction. It checks the State for the ActionList to enusre that it is not suspended. No actions are performed in the method when ActionList.State contains a value other than asNormal. +

+

+ Execute calls Update to signal an available OnUpdate event handler in the ActionList, the Application singleton, or the class instance. It toggles the value in the Checked property when AutoCheck is enabled. The inherited Execute method is called when the class instance is Enabled. +

+

+ The return value is True if the action was executed in the method. +

+
+ + + TBasicAction.Execute + +
+ True if action is to be performed. @@ -1105,7 +1309,7 @@ - + Event called when action is executed.

@@ -1127,13 +1331,18 @@ - + + + Event handler signalled to update an action when the application is idle. +

OnUpdate is the event triggered when the application is idle, and the action is being updated. The OnUpdate event can be used to set the state of the action, for instance disable it if the action cannot be executed at this point in time.

-
- +
+ + TBasicAction.OnUpdate +
diff --git a/docs/xml/lcl/comctrls.xml b/docs/xml/lcl/comctrls.xml index 137ee36650..d1bb7d788d 100644 --- a/docs/xml/lcl/comctrls.xml +++ b/docs/xml/lcl/comctrls.xml @@ -3691,6 +3691,20 @@ + + + Clears the list of tab names for the control, and causes the associated tab sheets or pages to be freed. + + +

+ Calls the Clear method for the protected Tabs property in the TCustomTabControl ancestor. +

+
+ + + +
+ FindNextPage - returns the next page (TTabSheet) in the sequence. diff --git a/docs/xml/lcl/controls.xml b/docs/xml/lcl/controls.xml index c31149804a..491c6f3b88 100644 --- a/docs/xml/lcl/controls.xml +++ b/docs/xml/lcl/controls.xml @@ -1,12 +1,12 @@ - + - + Contains types, constants, classes, and routines used to implement visual controls. @@ -4260,7 +4260,7 @@ - The associated control which owns the class isntance. + The associated control which owns the class instance. @@ -4751,7 +4751,7 @@ - Copies properties from the specifed persistent object into the current class instance. + Copies properties from the specified persistent object into the current class instance.

@@ -6020,20 +6020,26 @@ - Setter for AnchorSideLeft. + Sets the value for the indexed AnchorSide property. - + Index for the element updated in the method. - + New value for the AnchorSize property. - + + Sets the value for the BorderSpacing property. + + + + + - + New value for the BorderSpacing property. @@ -6061,9 +6067,15 @@ - + + Sets the value for the Constraints property. + + + + + - + New value for the Constraints property. @@ -10722,7 +10734,7 @@ - The minimum and maximum Width and Height for this control. + The minimum and maximum Width and Height for the control. @@ -10730,7 +10742,7 @@ - The top left pixel of this control, in screen coordinates. + The top, left pixel of the control in screen coordinates. diff --git a/docs/xml/lcl/customtimer.xml b/docs/xml/lcl/customtimer.xml index bcdcb14083..7b76d086dd 100644 --- a/docs/xml/lcl/customtimer.xml +++ b/docs/xml/lcl/customtimer.xml @@ -185,7 +185,23 @@ - + + + Performs actions needed when LCL component streaming has been completed. + +

+ Loaded is an overridden method in TCustomTimer. It calls the inherited method on entry to remove csLoading from the ComponentState property. +

+

+ Loaded calls UpdateTimer to re-create the timer handle and signal event event handlers as needed for the Enabled property in the timer. An EOutOfResources exception is raised (in UpdateTimer) if a timer handle cannot be allocated in the widgetset class. +

+
+ + + TComponent.ComponentState + +
+ Create - constructor for TCustomTimer: calls inherited Create, sets up handle and initializes timer interval. diff --git a/docs/xml/lcl/dbctrls.xml b/docs/xml/lcl/dbctrls.xml index 599a2fd6b8..b229a129fa 100644 --- a/docs/xml/lcl/dbctrls.xml +++ b/docs/xml/lcl/dbctrls.xml @@ -4383,7 +4383,7 @@ - + True if the field was edited in the linked data set. Performs actions to close the drop down for the combo box. @@ -4414,7 +4414,7 @@ - + Message handled in the method. Deferred messages pending for the control. @@ -5007,7 +5007,7 @@ - + True if the field was edited in the linked data set. Indicates if the control lacks a datasource or field name ("unbound" mode). @@ -5015,7 +5015,9 @@ - + + True if either DataSource or DataField are not assigned in the field data link. + @@ -5137,7 +5139,7 @@ - + Object for the event notification. Performs the OnSelect event handler when in drop-down list mode. @@ -5491,7 +5493,7 @@ - + Message handled in the method. Gets the value for the ReadOnly property. @@ -5517,7 +5519,7 @@ - + Object for the event notification. @@ -5548,7 +5550,7 @@ - + Object for the event notification. Performs actions needed when the value for the control has been changed. @@ -5597,16 +5599,12 @@ Sift modifier for the key code. - - - - - - - - + + + + Registers the widgetset class created for new instances of the control. @@ -6466,7 +6464,27 @@ Object for the event notification. - + + + Register the component class with the widgetset. + +

+ WSRegisterClass is a class method used to register the component class with the widgetset. +

+

+ It is overridden in TDBImage to ensure that the class is registered only once. No actions are performed in the method if the class has already been registered with the widgetset. It calls the inherited method to register ancestor image classes. +

+

+ TDBImage calls RegisterPropertyToSkip to exclude the Picture property during LCL component streaming. TDBImage loads its Picture data from the data set, and not from an LFM resource. Picture was removed in Lazarus version 0.9.29. +

+
+ + TCustomImage.WSRegisterClass + TCustomImage.Picture + RegisterPropertyToSkip + +
+ Implements the clipboard Copy (Ctrl+C) command. diff --git a/docs/xml/lcl/editbtn.xml b/docs/xml/lcl/editbtn.xml index 889173ef3d..02c04ebc6e 100644 --- a/docs/xml/lcl/editbtn.xml +++ b/docs/xml/lcl/editbtn.xml @@ -3041,7 +3041,7 @@ - + diff --git a/docs/xml/lcl/grids.xml b/docs/xml/lcl/grids.xml index 08c7e73310..9987640107 100644 --- a/docs/xml/lcl/grids.xml +++ b/docs/xml/lcl/grids.xml @@ -14044,7 +14044,7 @@ Constructor for the class instance.

- Create is the constructor for the class instance, and calls the inherited constructor on entry. Create stores parameter values to the members used for the associated grid and the map used in the class isntance. + Create is the constructor for the class instance, and calls the inherited constructor on entry. Create stores parameter values to the members used for the associated grid and the map used in the class instance.

diff --git a/docs/xml/lcl/groupededit.xml b/docs/xml/lcl/groupededit.xml index dc3e69c705..246d748b86 100644 --- a/docs/xml/lcl/groupededit.xml +++ b/docs/xml/lcl/groupededit.xml @@ -2331,8 +2331,8 @@ - - + + diff --git a/docs/xml/lcl/pairsplitter.xml b/docs/xml/lcl/pairsplitter.xml index 7a67afae7b..2db978d4d4 100644 --- a/docs/xml/lcl/pairsplitter.xml +++ b/docs/xml/lcl/pairsplitter.xml @@ -517,7 +517,7 @@ - + diff --git a/docs/xml/lcl/shellctrls.xml b/docs/xml/lcl/shellctrls.xml index c9862c8e92..9a6435e461 100644 --- a/docs/xml/lcl/shellctrls.xml +++ b/docs/xml/lcl/shellctrls.xml @@ -828,7 +828,20 @@ - + + + + Tag value for the component. + +

+ Tag can be used to store an integer value in the component. This value is streamed together with all other published properties. It can be used for instance to quickly identify a component in an event handler. +

+
+ + TComponent + +
+