diff --git a/docs/xml/lcl/arrow.xml b/docs/xml/lcl/arrow.xml index 96390a2d94..a585ba6da1 100644 --- a/docs/xml/lcl/arrow.xml +++ b/docs/xml/lcl/arrow.xml @@ -33,51 +33,58 @@ - + Represents the direction the arrow is oriented in TArrow. - + + + - + The arrow points in the upward direction. - + The arrow points in the downward direction. - + The arrow points to the left. - + Th arrow points to the right. - + Represent shadow drawing styles usedin TArrow. - + + + - + A shadow is not drawn. - + A shadow is drawn with an inset style. - + A shadow is drawn with an outset style. - + A shadow is drawn with an inset style and an etched border. - + A shadow is drawn with an outset style and an etched border. + + + A shadow is drawn with a filled style. @@ -86,201 +93,134 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Constructor for the class instance. + +

+ Create is the overridden constructor for the class instance, and calls the inherited method on entry. Create sets the default values for properties, including: +

+
    +
  • Constraints
  • +
  • ArrowType
  • +
  • ArrowPointerAngle
  • +
  • ShadowType
  • +
  • ShadowColor
  • +
  • ArrowColor
  • +
+
- - - - - - - - - - - - - - - - - - - - - - + Owner of the class instance. - - - - - + + - - - + + Color used to draw the arrow symbol on the control. + +

+ The default value for the property is clBlack. +

+
ArrowType - pointing up, down, left or right. - + +

+ ArrowType is a TArrowType property which indicates the direction for the arrow pointer on the control. The default value for the property is atLeft. Changing the value for the property causes the control to be redrawn. +

+
+ + + +
+ + + Size of the angle that forms the arrow pointer. + +

+ ArrowPointerAngle is an Integerproperty with the size of the angle (in degress) that forms the arrow pointer for the control. It determines the size in degrees for the angles on the base of the arrow pointer. ArrowPointerAngle must be in the range specified by the cMinAngle and cMaxAngle constants in the implementation for the control. The default value for the property is 60, and causes all three angles in the arrow pointer to measure 60 degrees. +

+

+ ArrowPointerAngle is used to calculate the points for the arrow pointer triangle. +

+
+ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ShadowType - the type of shadowing: None, In, Out, EtchedIn, EtchedOut. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - + + Color used to draw the shadow on the control. + +

+ ShadowColor is a TColor property with the color used to draw the shadow on the control (when enabled). The default value for the property is cl3DShadow. Changing the value for the property causes the control to be redrawn. +

+

+ ShadowColor is used, along with ShadowType, in the Paint method to draw the triangle for the shadow on the control. The property value is used as both the pen and the brush color for the shadow triangle. +

+
+ + + +
+ + + Registers components for use in the Lazarus IDE. diff --git a/docs/xml/lcl/calendar.xml b/docs/xml/lcl/calendar.xml index 4bef83fdca..960d2e88a7 100644 --- a/docs/xml/lcl/calendar.xml +++ b/docs/xml/lcl/calendar.xml @@ -733,13 +733,14 @@ - + + diff --git a/docs/xml/lcl/checklst.xml b/docs/xml/lcl/checklst.xml index b1325faa57..806f013d80 100644 --- a/docs/xml/lcl/checklst.xml +++ b/docs/xml/lcl/checklst.xml @@ -861,6 +861,7 @@
+ diff --git a/docs/xml/lcl/colorbox.xml b/docs/xml/lcl/colorbox.xml index 2212117817..927c7c316a 100644 --- a/docs/xml/lcl/colorbox.xml +++ b/docs/xml/lcl/colorbox.xml @@ -696,7 +696,7 @@ if iPos <> -1 then - + @@ -904,21 +904,35 @@ if iPos <> -1 then - - + + Performs actions needed to auto-adjust the control using the specified layout policy. + + +

+ DoAutoAdjustLayout is an overridden method used to apply the specified auto-adjust layout policy to the control. DoAutoAdjustLayout calls the inherited method on entry. +

+

+ DoAutoAdjustLayout ensures that the value in ColorRectWidth is adjusted by the scaling factor in AXProportion when AMode contains lapAutoAdjustWithoutHorizontalScrolling or lapAutoAdjustForDPI. The control is redrawn after ColorRectWidth is updated. +

+

+ DoAutoAdjustLayout is called from the AutoAdjustLayout method. +

+
TCustomListBox.DoAutoAdjustLayout + TControl.DoAutoAdjustLayout
- + Layout adjustment policy applied in the method. - + Horizontal scaling factor for the policy. + Vertical scaling factor for the policy. @@ -1285,45 +1299,44 @@ if iPos <> -1 then - - - + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - + - + - - - - - - - + + + + + + + - + Register components for use in the Lazarus IDE. diff --git a/docs/xml/lcl/comboex.xml b/docs/xml/lcl/comboex.xml index c62223fc2b..e4dc3e9b30 100644 --- a/docs/xml/lcl/comboex.xml +++ b/docs/xml/lcl/comboex.xml @@ -1503,7 +1503,7 @@ - + @@ -2457,7 +2457,7 @@ - + diff --git a/docs/xml/lcl/controls.xml b/docs/xml/lcl/controls.xml index 491c6f3b88..81f1f044fd 100644 --- a/docs/xml/lcl/controls.xml +++ b/docs/xml/lcl/controls.xml @@ -1481,7 +1481,26 @@ - + + + Frees the Handle for the control canvas, and its device context when assigned. + + +

+ FreeHandle is an overridden method in TControlCanvas. It calls the inherited method on entry to set the value in Handle to 0 (the unassigned value). If a device context (DC) has been allocated for the window handle (HWND), the ReleaseDC routine is called to release the device context. +

+

+ FreeHandle is called when a new value is assigned to the Control property, or when the class instance is freed. +

+
+ + + + TCanvas.Handle + TCanvas.FreeHandle + ReleaseDC + +
Indicates if the Control has called but not completed its Paint method. @@ -5435,12 +5454,24 @@ New value for the property. - - - - - - + + Member with the Handle for the accessibility object. + + + Member with the AVL tree for the sorted child objects. + + + Member with the value for AccessibleName. + + + Member with the value for AccessibleDescription. + + + Member with the value for AccessibleValue. + + + Member with the value for AccessibleRole. + @@ -5577,6 +5608,24 @@ Returns the number of direct children that this accessible object has. + + Searches in sub-controls for the first child accessibility object. + + + + + + + + + Searches in sub-controls for the next child accessibility object. + + + + + + + Returns the currently selected child accessible object or Nil if none are selected; Override this method in your sub class. @@ -7165,14 +7214,16 @@ - - Message handler for changes to the cursor shape. - - + Handles the CM_CURSORCHANGED message for the control. + +

+ At run-time, the SetTempCursor method is called to apply the temporary cursor shape in the Cursor property. No actions are performed in the method at design-time. +

+
- + Control message handled in the method. @@ -10905,8 +10956,7 @@ - Allows to show or hide the control, and all of its children. - + Allows the control, and all of its children, to be displayed or hidden.

Visible is set to True by Show, or to False by Hide. Calling these methods is equivalent to setting the Visible property. @@ -15392,7 +15442,7 @@ if MyControl.CanSetFocus then - + @@ -15414,9 +15464,17 @@ if MyControl.CanSetFocus then - - - + Performs actions when the handle for the parent control is freed. + +

+ DoOnParentHandleDestruction is overridden in TGraphicControl to re-implement the method in the ancestor class. It ensures that Handle for the Canvas is freed when the parent handler is destroyed. +

+
+ + + + +
@@ -15429,9 +15487,25 @@ if MyControl.CanSetFocus then - - - + Handles the CM_CURSORCHANGED message for the control. + +

+ CMCursorChanged is an overridden method in TGraphicControl. It ensures that the control is Visible before the temporary cursor shape is changed. +

+

+ Visible must be set to True, and the Parent control (with the window handle) must be assigned before the control can be displayed. No actions are performed in the method if Visible is False, or Parent is Nil. +

+

+ In addition, the mouse must be over the control to apply the cursor shape using SetTempCursor and the value in the Cursor property. +

+
+ + + + + + +
@@ -16212,18 +16286,32 @@ if MyControl.CanSetFocus then - - + Starts an update process for the class instance. + +

+ BeginUpdate is an overridden method in TDockTree. It increments the internal update counter for the class. It is used to consolidate calls to the UpdateAll method until the internal counter reaches zero (0). +

+
+ +
- - + Finishes an update process for the class instance. + +

+ EndUpdate is an overridden method in TDockTree. BeginUpdate and EndUpdate are used to consolidate calls to the UpdateAll method. EndUpdate decrements the internal update counter, and when it reaches zero (0) calls UpdateAll to remove dtfUpdateAllNeeded from the docking tree flags. +

+
+ + + +
diff --git a/docs/xml/lcl/dialogs.xml b/docs/xml/lcl/dialogs.xml index fa8c83d0e1..9e6bb47999 100644 --- a/docs/xml/lcl/dialogs.xml +++ b/docs/xml/lcl/dialogs.xml @@ -1300,29 +1300,62 @@
- + + The Title or Caption displayed in the title bar for the dialog. - You can set the caption of the color dialog by changing this property. +

+ Title can be used to provide a usage context for the re-usable dialog. The default value for the property is provided by the DefaultTitle method, which is an empty string in TColorDialog. Set the value for the property before calling the Execute method. +

- + + TCommonDialog.Title +
- - Color the color that is selected by the dialog (a value may have been pre-set and may be accepted, but a new value can be chosen). - + Color selected by the user in the color dialog. - When the Color dialog has been shown and the user pressed OK, the FColor property contains the chosen color. +

+ Color is a TColor property with the color selected using the dialog. A value can be pre-set and may be accepted, but a new value may also be chosen. When the Color dialog is displayed and the user pressed OK, the Color property contains the chosen color. +

+

+ Use CustomColors to define a palette with color names and their hexadecimal values available in the dialog. +

- + + + +
- - CustomColors - a customized list of colors that can be used instead of the system-supplied list. - - - + Defines the color names and values available in the color dialog. + +

+ CustomColors is a TStrings property which contains the color names and hexadecimal values available in the color dialog. It allows a custom color palette to be used in place of the default colors for the platform. +

+

+ Values added to CustomColors are in the "name=hexvalue" format. For example: +

+ +ADialog.CustomColors.Add('ColorA=FFFF00'); +// or +ADialog.CustomColors.Values['ColorA'] := 'FFFF00'; + +

+ The hexadecimal color value is 6-digits representing the RGB components for the color. +

+

+ The default values in CustomColors are assigned in the Create constructor to the standard and extended colors for the platform. It does not include the equivalents for clDefault and clNone. +

+

+ Use Color to get the TColor value selected using the dialog when the Execute method was called. +

+
+ + + +
@@ -2550,46 +2583,61 @@ - - - + Represents options that can be enabled for TTaskDialog. + + TTaskDialogFlag values are stored in the TTaskDialogFlags type, as used in the TCustomTaskDialog.Flags property. + + + + + - Allow HTML-like hyperlinks in the dialog (in Text, Footer, and ExpandedText) using HTML tag "a href=..." + Allows HTML-like hyperlinks in the dialog (in Text, Footer, and ExpandedText) using the '<a href="target">Target</a>' notation. - Use custom main icon with CustomMainIcon property. + + Uses the handle to the image in MainIcon as the primary image for the Task dialog. Disables hyperlinks. + - Use custom footer icon with CustomFooterIcon property. + + Uses the handle to the image in FooterIcon as the footer icon in the Task dialog. Disables hyperlinks. + - Allow canceling the dialog by Esc key, or Alt+F4 (i.e. OS default hotkey). + + Allow canceling the dialog by Esc key, or Alt+F4 (i.e. OS default hotkey). + - Custom buttons will be shown as big buttons in the middle of the dialog. Use "\n" to add info to buttons (shown in hint in emulated dialog). + Custom buttons will be shown as big buttons in the middle of the dialog. Use #10 to add info to buttons (shown in hint in emulated dialog). Disables hyperlinks. - Don't show glyphs for custom buttons in the "command links" mode. + + Hides glyphs for custom buttons in the "command links" mode. Disables hyperlinks. + - Show ExpandedText in the footer, instead of near the main text. + Show ExpandedText in the footer, instead of inline after the main text. - Initially show dialog in expanded state. + Displays the dialog with ExpandedText in the expanded state. - Bottom check-box (verification) shows in the checked state. + + Displays the verification check-box verification shows in the checked state. + - Show additional progress-bar. + Shows a progress bar. - Show additional progress-bar, in the marquee style, never ending progress. + Shows a progress bar using the marquee style. Execute the timer callback event every 200 milliseconds. @@ -2601,213 +2649,325 @@ Use Right-to-Left layout for texts. - Don't check any of radio-buttons. + Does not pre-select any of the radio buttons. - Allow minimizing the dialog. + Allow the dialog to be minimized. - - - + Set type used to store values from the TTaskDialogFlag enumeration. + +

+ TTaskDialogFlags is the type used for the TCustomTaskDialog.Flags property. +

+
+ + + +
- - - + Identifier used for common buttons visible on a Task dialog. + +

+ Values from TTaskDialogCommonButton are stored in the TTaskDialogCommonButtons set type, as used in the TCustomTaskDialog.CommonButtons property. When a value is included in the set, the corresponding button is visible on the task dialog. +

+
+ + + +
- + The Ok button. - + The Yes button. - + The No button. - + The Cancel button. - + The Retry button. - + The Close button. - - - + Set type used to store values from TTaskDialogCommonButton. + +

+ TTaskDialogCommonButtons is the type used for the CommonButtons property in TCustomTaskDialog. +

+
+ + +
- - - + + Specifies an event handler signalled when a button is clicked in TCustomTaskDialog / TTaskDialog. + + +

+ TTaskDlgClickEvent is the type used for the OnButtonClicked event handler in TCustomTaskDialog. +

+
+ + +
- + Task dialog for the event notification. - + Modal result for the clicked button. - + True if the dialog can close. - - - + Identifier for an icon displayed on a Task dialog. + +

+ TTaskDialogIcon is the type used for the FooterIcon and MainIcon properties in TCustomTaskDialog. +

+
+ + + +
- + No icon is displayed. - + Displays the Warning icon (Amber triangle with an Exclamation mark). - + Displays the Error icon (Red circle with an X). - + Displays the Information icon (Blue circle with a Question Mark). - + Displays the Shield icon. - + Displays the Question icon (Blue circle witth a Question Mark). - - - + Defines the base class for a custom button displayed on a Task dialog. + +

+ TTaskDialogBaseButtonItem is a TCollectionItem descendant which defines a cusotm button that can be displayed on a Task dialog. It provides properties that indicate the Caption for the button, its use as the Default button on a dialog, and its ModalResult value. +

+

+ TTaskDialogBaseButtonItem is the ancestor for TTaskDialogBaseButtonItem. +

+
+ + +
- - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - + TCustomTaskDialog where the button is used. + +

+ Client is a read-only TCustomTaskDialog property with the dialog where the button is used. Its value is set to the Task dialog that is the owner of the collection where the button definition is stored. +

+
+ + + TCollection.Owner +
- - - + Gets the value for the DisplayName property. + +

+ GetDisplayName is an overridden method used to get the value for the + DisplayName property. In TTaskDialogBaseButtonItem, the value in Caption is used (when assigned) for the property value. When Caption is empty, the inherited method is called to get the property value. +

+
+ + TCollectionItem +
- + Value for the DisplayName property. - - + + Gets the collection where the button definition is stored. + + +

+ TaskButtonCollection is a TTaskDialogButtons function which retrieves the Collection where the button definition is stored. It allows the button definition to access properties and methods in the collection. +

+
- + Collection which owns the button cast to a TTaskDialogButtons type. - - - + Constructor for the class instance. + +

+ Create is the overridden constructor for the class instance. It calls the inherited method on entry, and sets the value in the Client property to the dialog which is the owner for the Collection. The value in ModalResult is set to the ID value for the collection item + 100. +

+
+ + + + TCollectionItem.Collection + TCollectionItem.ID +
- + Collection which owns the button item. - - - + Modal result value returned when the button is clicked. + +

+ The default value for the property is assigned when the button item is created and is based in its ID value + 100. The value can be changed to any reasonable value that is unique for the context. +

+

+ ModalResult is used when a Task dialog is executed and a button is clicked on the dialog. Its value for the clicked button is assigned to the ModalResult property in the TCustomTaskDialog instance. +

+
+ + + + + +
- - - + Caption text displayed on the button surface. + +

+ Caption is a TTranslateString property with the caption text displayed on the button surface. It can be localized using the built-in translation facilities available in the LCL. When assigned, Caption also provides the DisplayName for the collection item in the object inspector. +

+
+ + TCollectionItem.DisplayName +
- - - + Indicates if the button is the default button on a Task dialog. + +

+ Default is a Boolean property which indicates if the button is the default button for a Task dialog. The default value for the property is False. +

+

+ Changing the value in the property causes the DefaultButton property in the Collection to be updated. When set to True, the button instance is assigned to the DefaultButton property in the collection. When set to False, the DefaultButton in the collection is set to Nil. +

+
+ + + + TCollectionItem.Collection +
- - - + + Implements a button definition used for a button in TCustomTaskDialog. + + +

+ TTaskDialogButtonItem is a TTaskDialogBaseButtonItem descendant used to define and store buttons created in TCustomTaskDialog / TTaskDialog. It provides an overridden constructor which creates an object inspector-friendly name for the button item. It also sets the visibility for the ModalResult property to published. +

+

+ TTaskDialogButtonItem is the type used for the Button property in TCustomTaskDialog, and maintained in its Buttons collection. +

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

+ Create is the overridden constructor for the class instance, and calls the inherited method on entry. It assigns an object inspector-friendly value to the Caption property, such as 'Button3'. The Caption is also used as the DisplayName for the collection item when assigned. +

+
+ + + TCollectionItem.DisplayName +
- + Collection which owns the button item. - - - - - + - - - + Implements a radio button displayed on a Task dialog. + +

+ TTaskDialogRadioButtonItem is a TTaskDialogBaseButtonItem descendant which implements a radio button displayed on a Task dialog. TTaskDialogRadioButtonItem is the type used for the RadioButton property in TCustomTaskDialog, and maintained in its RadioButtons collection. +

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

+ Create is the overridden constructor for the class instance, and calls the inherited method on entry. Creates assign an object inspector-friendly value for the Caption property, such as 'RadioButton2'. +

+
+ + +
- + Collection which owns the radio button item. - + Implements an enumerator for buttons defined in a Task dialog. @@ -2816,128 +2976,191 @@ - - - + Constructor for the class instance. + +

+ Sets the internal position for the enumerator to -1 to indicate that a button is not available. Use MoveNext to position the enumerator at the first button in the collection. +

+
+ + +
- + Collection which owns the buttons for the enumerator. - + Gets the value for the Current property. - + + + - + Value for the Current property. - - - + Positions the enumerator on the next button in the collection. + +

+ MoveNext is a Boolean function used to move the position for the enumeration to the next button in the collection. When the enumerator is created, its position is undefined (-1) by default. Use MoveNext to move the position to the first button when the enumerator is created. +

+

+ The return value is True when another value was found in the collection. It is set to False if the position reaches the value in Count. +

+
+ + + TCollection.Count +
- + True if another button was available in the collection. - - - + Button at the current position for the enumerator. + +

+ Current is a read-only TTaskDialogBaseButtonItem property with the button at the current position for the enumerator. It uses the ordinal position in the collection for the button item as set when the MoveNext method was called. +

+
+ + + +
- - - + + Collection type used to access and maintain buttons defined for a Task dialog. + + +

+ TTaskDialogButtons is a TOwnedCollection descendant which implements the collection used for the buttons on a Task dialog. TTaskDialogButtons provides properties and methods used to access and maintain the buttons in the collection, such as: Add, FindButton, DefaultButton, Items, and GetEnumerator. +

+

+ TTaskDialogButtons is the type used for the Buttons and RadioButtons properties in TCustomTaskDialog / TTaskDialog. +

+
+ + + +
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - + Adds a new collection item using the ItemClass for the collection. + +

+ Calls the inherited Add method to create the new collection item, and casts the return value to the TTaskDialogBaseButtonItem type used as the ItemClass. The inherited metod uses the Collection as the Owner for the new collection item. +

+
+ + TCollection.Add + TCollection.Owner + TCollection.ItemClass +
- + Collection item created in the method. - - - + + Gets the button item in the collection with the specified modal result value. + + +

+ FindButton enumerates values in the Items property to find the first button using the modal result value in AModalResult. The return value is Nil if a button using the modal result value is not found. +

+
+ + + +
- + TTaskDialogBaseButtonItem instance with the specified modal result value. - + Modal result value to locate in the button items for the collection. - + Gets an enumerator for the buttons in the Items property. - + + + - + TTaskDialogButtonsEnumerator instance for the buttons in the collection. - - - + + Contains the collection item that is the default button for a Task dialog. + + +

+ DefaultButton is a TTaskDialogBaseButtonItem property with the button that is the default button for a Task dialog. The value for the property is updated when the Default property in a button item is changed. +

+
+ + +
- - - + Provides indexed access to buttons defined in the collection. + +

+ Items is an indexed TTaskDialogBaseButtonItem property with the buttons defined for the collection. It re-implements the property introduced in the ancestor class to use the TTaskDialogBaseButtonItem type when reading or writing values in the collection. Values in the property are accessed by their ordinal position in the collection. +

+

+ Items is the default property, and the target for an enumerator created for the class instance. +

+
+ + + + TCollection.Items + TCollection.ItemClass +
- + Ordinal position in the collection for the property value. - - - + Defines a configurable, modal task dialog at run-time. + +

+ TCustomTaskDialog is a TComponent descendant which defines a configurable, modal task dialog. It is a non-visual component which creates modal dialogs at run-time, with rich UI elements. It is a wrapper for LCLTaskDialog.TTaskDialog which implements the Windows TaskDialog API. +

+

+ TCustomTaskDialog provides properties which can be used to configure the class instance at design-time in the object inspector. At run-time, the Execute method handles converting properties and calling routines in the LCLTaskDialog.TTaskDialog implementation. +

+
+ + + TComponent + LCLTaskDialog.TTaskDialog +
@@ -3005,256 +3228,528 @@ - - + + Performs actions to convert values in the class, and execute the dialog using the wrapper in the LCLTaskDialog unit. + + + + - + True if a valid button identifier was clicked in the dialog. - + Handle for the Parent Window of the dialog. - - + + Signals the OnButtonClicked event handler (when assigned) for the button with the specified modal result value. + + +

+ DoOnButtonClicked is called from the callback routine passed to the wrapper in LCLTaskDialog. +

+
- + Modal result value signalled for the button click notification. - + True if the dialog should be closed, or False to continue execution. - - - + Constructor for the class instance. + +

+ Create is the overridden constructor for the class instance, and calls the inherited method on entry. Create allocates resources needed for the Buttons and RadioButtons properties. It sets the default values for the following properties: +

+
+
CommonButtons
+
Set to the value [tcbOk, tcbCancel].
+
DefaultButton
+
Set to tcbOK.
+
Flags
+
Set to [tfAllowDialogCancellation].
+
FooterIcon
+
Set to tdiNone.
+
MainIcon
+
Set to tdiInformation.
+
+
+ + + + + + + + +
- + Owner of the class instance. - - - + Destructor for the class instance. + +

+ Destroy is the overridden destructor for the class instance. It frees resources allocated for the Buttons and RadioButtons properties, and calls the inherited method prior to exit. +

+
+ + + +
- - - + Displays the dialog and captures the modal result value. + +

+ Execute is an overloaded Boolean function used to display the dialog and capture the modal result value using the wrapper in the LCLTaskDialog unit. The return value is True if a valid button identifier was selected in the wrapper. +

+

+ Execute calls the DoExecute method to convert property values in the class instance to the values expected in the TTaskDialog record, and execute the dialog using the LCLTaskDialog wrapper. The value in ModalResult is updated from the Button with the identifir returned from the wrapper. +

+
+ + + + +
- + True if a valid button identifier was selected in the dialog. - + + Parent window handle used to position the dialog in the LCLTaskDialog wrapper. + - - + Not used in the current LCL version. + +

+ Button is a TTaskDialogButtonItem property. It is not used in the current LCL version. +

+
- - + Collection with the buttons for the Task dialog. + +

+ Buttons is a TTaskDialogButtons property with the collection that contains the buttons for the Task dialog. Values in Buttons and CommonButtons are used in the DoExecute method to define the button identifiers and modal result values available in the LCLTaskDialog wrapper. +

+
- - + Caption text displayed on the title bar for the Task dialog. + +

+ Caption is a TTranslateString property with the text displayed on the title bar for the Task dialog. Caption can be localized using the LCL translation facilities. +

+

+ Use Title to set the text displayed as the title in the main content area. Use Text to set the text displayed beneath the Title in the main content area. Use ExpandedText to set the text displayed in the expandable content area for the dialog. Use FooterText to set the text displayed in the footer aread for the dialog. +

+
- - - + Set of common buttons displayed on the Task dialog. + +

+ CommonButtonsis a TTaskDialogCommonButtons property with the set of common buttons displayed on the Task dialog. Values from the TTaskDialogCommonButton enumeration are included in the set to make buttons visible. Values are excluded from the set to remove the buttons. The default value for the property is [tcbOk, tcbCancel], and enables the OK and Cancel buttons for the Task dialog. +

+

+ CommonButtons is used in conjunction with the Buttons collection, which contains custom button definitions that do not fit the common button definitions. Both CommonButtons and Buttons are used in DoExecute, and passed as arguments to the wrapper in LCLTaskDialog. +

+
+ + + + + + + LCLTaskDialog.TTaskDialog +
- - - + Index of the default button, from the set in the CommonButtons property. + +

+ DefaultButton is TTaskDialogCommonButton property which indicates the default button for the Task dialog. It represents the button that is clicked if the user presses the Space or Enter key when the Task dialog is initially displayed. +

+

+ The property contains one of the values from the CommonButtons property. The default value for the property is tcbOK, and represents the OK button. +

+

+ It is used to set the default modal result value returned during execution when a DefaultButton has not been specified in the Buttons collection. +

+
+ + + + + +
- - - + Caption displayed for the expand/collapse button on the dialog. + +

+ ExpandButtonCaption is a TTranslateString property with the caption text displayed beside the button used to expand or collapse the ExpandedText on the Task dialog. The property value can be localized using the standard LCL translation facilities. +

+

+ The default value for the property is an empty String (''), and cause the values "See details" or "Hide details" to be used on the Task dialog (when the lanuguage is English). Setting a value for the property causes the same caption to be displayed for both the expanded and collapsed states; only the button indicator changes. +

+

+ Use the Flags property to control the position (tfExpandFooterArea) or the expanded / collapsed state (tfExpandedByDefault) for the ExpandedText on the Task dialog. +

+
+ + + + + + +
- - - + + Text that is displayed in the expandable / collapsable area on the Task dialog. + + +

+ ExpandedText is a TTranslateString property with the text displayed in the expandable / collapsable area on the Task dialog. Its value can be localized using the standard LCL translation facilities. It can contain multi-line text when line ending characters (#13,#10) are embedded in the String value. For example: +

+ +ADialog.ExpandedText := 'Please read the Terms of Service.'+#10+ + 'Available on our <a href="https://www.bogus.org/tos.html">Website</a>'; + +

+ Or, the multi-line value can be entered in the object inspector property editor at design-time. +

+

+ Text, ExpandedText, and FooterText allow an HTML-like hyperlinking capability (as seen in the previous code example). The feature must be enabled by including tfEnableHyperlinks in the Flags property. Use tfExpandFooterArea to control the position for the expanded text, or tfExpandedByDefault to expand or collapse the text area. +

+
+ + Multi-line property editors in the object inspector were enabled in Lazarus version 2.2.0. + + + + + + +
- - - + Set of options enabled for the Task dialog. + + Flags is a TTaskDialogFlags property with the set of options for the Task dialog. It contains values from the TTaskDialogFlag enumeration, and when included, enable the corresponding feature in the Task Dialog. The default value for the property is [tfAllowDialogCancellation] and allows the dialog to be cancelled. + + + + + - - - + Icon for the footer area displayed at the bottom of the dialog. + +

+ FooterIcon is a TTaskDialogIcon property with a value which identifies the icon displayed in the footer area for the Task dialog. The footer icon is displayed beside the optional text in FooterText. The default value for the property is tdiNone, and causes the icon to be omitted. See TTaskDialogIcon for information about the values in the enumeration and their meanings. +

+
+ + + + +
- - - + + Text that is displayed in the footer area on the Task dialog. + + +

+ FooterText is a TTranslateString property with the text displayed in the footer area on the Task dialog. Its value can be localized using the standard LCL translation facilities. It can contain multi-line text when line ending characters (#13,#10) are embedded in the String value. For example: +

+ +ADialog.FooterText := '(c) Copyright 1960-2021, Acme Corporation LLC.' + #10 + + 'All rights reserved.'; + +

+ Or, the multi-line value can be entered in the object inspector property editor at design-time. +

+

+ Text, ExpandedText, and FooterText allow an HTML-like hyperlinking capability using the <a href="linktarget">Link Text</a> notation. The feature must be enabled by including tfEnableHyperlinks in the Flags property. Use tfExpandFooterArea to position the expanded text in the footer area. +

+
+ + Multi-line property editors in the object inspector were enabled in Lazarus version 2.2.0. + + + + + + + + + +
- - - + Icon displayed beside the Title for the dialog. + +

+ MainIcon is a TTaskDialogIcon with a value that identifies the icon displayed beside the Title for the Task dialog. The default value is tdiInformation, and causes a blue circle with a Question Mark to be displayed as the icon. See TTaskDialogIcon for more information about the values in the enumeration and their meanings. +

+
+ + + + + + + +
- - - + Modal result value returned when the Task dialog was executed. + +

+ ModalResult is a TModalResult property with the modal result value returned when the Task dialog was executed. It contains the corresponding value from the Button used to close the Task dialog, DefaultButton if Enter or Space was pressed when the dialog was displayed, or mrNone if the dialog was cancelled. +

+
+ + + + + +
- - - + The radio button selected in the Task dialog. + +

+ RadioButton is a read-only TTaskDialogRadioButtonItem property with the radio button selected when the Task dialog was executed. The property value is set when the Execute method calls the wrapper in LCLTaskDialog. It contains an entry from the RadioButtons collection that was passed as an argument to the TTaskDialog wrapper. +

+
+ + + + + +
- - - + + Collection with the optional radio buttons defined for the Task dialog. + + +

+ RadioButtons is a TTaskDialogButtons proprety 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. +

+

+ Use the RadioButton property to determine the radio button selected on the Task dialog. +

+
+ + + + + + + + +
- - - + + Text displayed as main content for the Task dialog. + + +

+ Text is a TTranslateString property with the text displayed in the main content area on the Task dialog. Its value can be localized using the standard LCL translation facilities. It can contain multi-line text when line ending characters (#13,#10) are embedded in the String value. For example: +

+ +ADialog.Text := 'Please read and accept the <a href="file://tos.pdf">Terms of Service</a>. '+ + #10+'You must agree before the application can be installed.'; + +

+ Or, the multi-line value can be entered in the object inspector property editor at design-time. +

+

+ Text, ExpandedText, and FooterText allow an HTML-like hyperlinking capability using the <a href="linktarget">Link Text</a> notation. The feature must be enabled by including tfEnableHyperlinks in the Flags property. + Use tfExpandFooterArea to position the expanded text in the footer area. +

+

+ Use ExpandedText to set the content in the collasible area on the Task dialog. Use tfExpandFooterArea in the FLags property to position the expanded text in the footer area. +

+
+ + Multi-line property editors in the object inspector were enabled in Lazarus version 2.2.0. + + + + + + + + +
- + + Header text displayed at the top of dialog, with a larger font size and using a bold font style. + - + + + + + + - + + Optional caption text for the check box displayed at the bottom of the Task dialog. + - + + + + + - - + + Event handler signalled for the button clicked when the Task dialog was executed. + + +

+ OnButtonClicked is signalled after a button is clicked on the Task dialog. +

+
- Creates full-features modal dialogs at run-time. + Creates a configurable, modal task dialog at run-time.

- A non-visual component which creates modal dialogs at run-time, with rich UI elements. Like the Windows TaskDialog API. + A non-visual component which creates modal dialogs at run-time, with rich UI elements. Like the Windows TaskDialog API. For example:

+

+ Using TTaskDialog at Run-time. +

+ +procedure TForm1.Button1Click(Sender: TObject); + var ATaskDialog: TTaskDialog; // requires Dialogs in uses clause +begin + ATaskDialog := TTaskDialog.Create(Self); + with ATaskDialog do + begin + Caption := 'Let''s do this...'; + MainIcon := tdiShield; + Title := 'Task Title'; + + Text := 'This tells the user the purpose for the dialog. ' + + 'Please read and accept the ' + + '<a href="https://www.acme.org/tos.html">Terms of Service</a>. '+#10+#10+ + 'Some users prefer a little conversation before they will agree. ' + + 'Along with a progress bar. Please tell us your level of interest.'; + + RadioButtons.Clear; + RadioButtons.Add.Caption := 'Low'; + RadioButtons.Add.Caption := 'Medium'; + RadioButtons.Add.Caption := 'High'; + + CommonButtons := [tcbOk,tcbCancel,tcbRetry]; + + ExpandedText := 'The Terms of Service grants a waiver of responsibility to ' + + 'Acme Corporation LLC (the Corporation) for any insane acts a Coyote ' + + 'might perform using products or services provided by the Corporation. '+#10+#10+ + 'There is no legal venue where the Corporation is responsible. ' + + 'Especially Albuquerque, NM USA. ' +#10+#10+ + 'Buyer beware. All rights reserved. Shipping fees and taxes may apply.'; + + VerificationText := 'I agree to everything.'; + + FooterIcon := tdiWarning; + FooterText := 'This is your <a href="#terminus">final</a> warning.'; + + Flags := [tfEnableHyperlinks, tfAllowDialogCancellation, tfExpandFooterArea, tfExpandedByDefault, tfVerificationFlagChecked, tfShowMarqueeProgressBar]; + + if Execute then ; // do something with the ModalResult + Free; + end; +end; +
- - - Collection of items that describe buttons in dialog. Additional to CommonButtons. - - - - - Caption of the dialog form. - - - - Set of standard buttons in dialog: OK, Cancel, Yes etc. Additional to Buttons. - - - - Index of default button, from set of CommonButtons property. - - - - - Dialog can have "expand button", with specified caption that shows additional info. - - - - - Text that is shown when dialog is expanded. Use "\n" for new lines. - - - - Set of advanced options for dialog. - - - - Icon for the footer area, at the bottom. - - - - Text that shows in the footer area, at the bottom. Use "\n" for new lines. - - - - Icon for the main info in dialog. - - - - - Collection of items that describe radio-buttons; they are shown in the lower part. Use "\n" to add info to buttons (shown in hint in emulated dialog, or in a new line in native Windows dialog.). - - - - - - Text that is shown as main information in the dialog. Use "\n" for new lines. - - - - - - Header text that is shown on the top, with big font and bold style. Use "\n" for new lines. - - - - - If not empty, dialog shows check-box with this caption, at the bottom. - + + + + + + + + + + + + + + + - + Minimum width for a button on a dialog. - + Minimum height for a button on a dialog. - Message Dialog. + Shows a message to the user and gets the response.

- Show a message to the user and receive his response. There are four versions of this function. + There are four versions of this function.

The first version displays a dialog with the standard caption. The second, third and fourth versions enable you to set the caption. @@ -3643,7 +4138,7 @@ end;

[400, 'Yes!!!', 401, 'Are you mad?', 402, 'My mistake']

- This will create a dialog with three buttons; the captions of the buttons will be the strings given in the array. + This will create a dialog with three buttons; the captions for the buttons will be the strings values given in the array.

The return value of the function will be 400, 401 or 402, depending on whether the user clicked the 'Yes!!!', the 'Are you mad?' or the 'My mistake' button. @@ -3659,7 +4154,7 @@ end; - Show Message. + Displays the specified message text.

The simplest message dialog: takes a simple string as argument, displays it in a box, and waits for a mouse-click or enter-key event before returning to the calling routine or program. @@ -3735,7 +4230,7 @@ end; - Displays a box with defined title and prompt, and expects user input in a text box. + Displays a box with specified title and prompt, and accepts user input in a text box.

@@ -3767,7 +4262,7 @@ end; - Password Box. + Displays a Password prompt with input masking.

PasswordBox is a specialized form of InputQuery. The editbox on the dialog box will mask the input. The only parameters are aCaption and aPrompt. @@ -3852,7 +4347,7 @@ end; - Spacing between Input Query controls. + Spacing between the controls on an Input Query dialog. @@ -3870,11 +4365,11 @@ end; - Set of directory selection options. + Set type for directory selection options. - A function that allows one to user to select a directory. + A function that allows a user to select a directory.

This function will show a dialog which allows the user to select the required directory when the directory structure is displayed as a tree. @@ -4006,25 +4501,34 @@ end; - + + Creates and executes a combo-box dialog with the specified Caption, Prompt, and list of selectable values. + - + + + + - + + Ordinal position for the value selected in AList, or -1 if ian option was not selected. + - + Caption or title for the dialog. - + Label displayed for the combo-box control on the dialog. - + List of values which can be displayed and selected using the combo-box. - + + Displays an extended input combo-box dialog that allows entry of custom text values. + @@ -4032,61 +4536,88 @@ end; - + Caption for the dialog. - + Prompt or label for the combio-box control. - + List of values displayed in the combo-box control. - + True to allow new values to be added to the combo-box control. - + + Extracts the color index and color value for the specified position in a color list. + - + True on success, false if the list does not use the correct format. - + List of colors in COLORID=VALUE format. - + Position in the list for the extracted color index and value. - + Color index (ColorA=0, ColorB=1, etc.) - + TColor for the hexadecimal value in the list. - - + + Gets the resource string used as the caption for the specified dialog identifier. + + +

+ The following dialog identifers and return values are used in the routine: +

+
+
idDialogWarning
+
Return value is rsMtWarning.
+
idDialogError
+
Return value is rsMtError.
+
idDialogInfo
+
Return value is rsMtInformation.
+
idDialogConfirm
+
Return value is rsMtConfirmation.
+
idDialogShield
+
Return value is rsMtAuthentication.
+
+

+ The return value is '?' when an unknown value is used in the idDiag argument. +

+
- + Default caption for the dialog identifier. - + Identifier for the dialog type, i. e. idDialogWarning or idDialogError. - - + Gets a bitmap with the icon for the specified dialog identifier. + +

+ The bitmap may contain a stock image provided by theme services (when available), or a PNG image image loaded from a Lazarus resource in the application. +

+
- + Bitmap with the icon for the dialog identifier. - + Identifier for the dialog type, i. e. idDialogWarning or idDialogShield. @@ -4105,9 +4636,7 @@ end; - - Registers components for use in the Lazarus IDE. - + Registers components for use in the Lazarus IDE.

Register is the procedure used to register components for use in the Lazarus IDE. diff --git a/docs/xml/lcl/graphics.xml b/docs/xml/lcl/graphics.xml index 7fbcfa24d5..794a2efbf7 100644 --- a/docs/xml/lcl/graphics.xml +++ b/docs/xml/lcl/graphics.xml @@ -11034,7 +11034,7 @@ - + @@ -11042,6 +11042,11 @@ + + + + + @@ -11050,7 +11055,9 @@ - + + Determines if the specified stream contains image data supported for the image type. + @@ -11084,7 +11091,6 @@ TPortableAnyMapGraphic is a TFPImageBitmap descendant which implements support for the Portable Any Map (PNM) graphic format. - PNM is a member of the NetPBM family of image formats and includes PBM, PGM, and @@ -11119,7 +11125,9 @@ - + + Determines if the specified stream contains image data supported for the image type. + @@ -12655,8 +12663,8 @@ New value for the property. - - + + @@ -12696,12 +12704,18 @@ HICON value removed from the Handle in the class instance. - + Gets the Integer Resource Type for the class instance. +

+ GetResourceType is an overridden TResourceType function in TIcon. + It is used to get the resource type identifier for the class instance. It identifies the storage format used for graphic data in a resource. +

The return value is RT_GROUP_ICON in TIcon.

- + + +
Resource type used for the icon image type. @@ -13485,7 +13499,7 @@ - + @@ -13493,7 +13507,7 @@ - + @@ -13501,7 +13515,7 @@ - + @@ -13648,7 +13662,7 @@ FCL-compatible reader for the image type. - + diff --git a/docs/xml/lcl/lclproc.xml b/docs/xml/lcl/lclproc.xml index 28fd13ed12..5a4068d73f 100644 --- a/docs/xml/lcl/lclproc.xml +++ b/docs/xml/lcl/lclproc.xml @@ -65,7 +65,7 @@ - A descriptive string. + A descriptive string for the item. @@ -83,7 +83,7 @@ - All information about the object. + All information about the object as a string value. @@ -91,7 +91,7 @@ - True means include stack traces. + True to include stack traces. @@ -105,7 +105,7 @@ A list describing dynamically allocated (and destroyed) memory objects. - The list holds descriptive information about the object, and stack traces of its creation and destruction. + The list holds descriptive information about the object, and stack traces at the time of creation and destruction. @@ -154,7 +154,7 @@ - True when the item has been created and destroyed. + True when the item has been destroyed. @@ -273,63 +273,103 @@ - Compare function type for TStrings Strings[]. - - + + Specifies a comparison function type for string values in a TStrings instance. + + +

+ TStringsSortCompare is an Integer function type used to compare string values to determine the relative sort order. The return value indicates the relative sort order for the compared items, and normally contains a value like the one returned from CompareText. For example: +

+
+
<0
+
Item1 has a value that comes before Item2.
+
0
+
Item1 and Item2 have the same value.
+
>0
+
Item1 has a value that comes after Item2.
+
+

+ The address for a TStringsSortCompare type is passed as an argument to the MergeSort routine. +

+
+ + +
- + Integer with the relative sort order for the compared values. - + First string value for the comparison. - + Second string value for the comparison. - Sorting TStrings or TFPList. - - + Implements a merge/sort for TStrings or TFPList. + +

+ MergeSort is an overloaded routine used to implement a comparison-based sort routine for values in List. List can be a TStrings or TFPList instance. No actions are performed in the routine when List has not been assigned (contains Nil). +

+

+ The StartIndex and EndIndex arguments allow the intial and final entries in a TFPList instance to be specified. When the values are omitted, they default to the first value (position 0) and the last value (Count-1) in List. +

+

+ OnCompare is the comparison routine used to detemine the order for the sorted values. It can be a TListSortCompare or TStringsSortCompare function, depending on the overloaded variant of the called routine. +

+

+ MergeSort implements the J. von Nuemann divide-and-conquer algorithm, with an insertion sort used for lists with 6 or fewer elements. +

+ +
+ + + +
- The list to sort (overloaded type). + The list of values to sort (overloaded type). The sort compare function. - + The initial entry in List used in the merge/sort. - + The final entry in List used in the merge/sort. - + + Converts the specified key code and shift modifier to their representation as a String. + - + String representation for the specified value; i. e. 'Ctrl+Home'. - + Key code converted in the routine. - + Shift, Ctrl, Alt modifier converted in the routine. - + + Indicates if the string contains the 'Word(nn)' representation for an unknown key code. + - + True when the string is not a named virtual key code. - + Value examined in the method. @@ -338,22 +378,24 @@ - + Localized text value for the specified shortcut. - + + Converts a shortcut value to its text representation without localization. + - + Non-localized text value for the specified shortcut. - + Shortcut value converted in the method. @@ -362,14 +404,16 @@ - + TShortcut value for the specified text. - + Text converted to a shortcut value in the method. - + + Converts the non-localized textual representation for a shortcut into a shortcut value. + @@ -381,7 +425,7 @@
- Find an string in a list, given its first few characters. + Finds a string in a list, given its first few characters. @@ -405,7 +449,9 @@
- + + Indicates if the specified key code has a value allowed in an editable text string. + @@ -413,11 +459,11 @@
- The virtual key code. + The virtual key code examined in the routine. - + Hooks used to prevent circular unit references. @@ -444,13 +490,9 @@
- - - - - - - + + Function used to send an application mesage using the specified parameter values. + @@ -462,7 +504,9 @@
- + + Sends an application mesage using the specified parameter values. + @@ -491,7 +535,7 @@ - Free the TObject, before setting the reference to Nil. + Frees the TObject instance, before setting the reference to Nil. @@ -509,7 +553,7 @@
- Invokes the registered handlers. + Calls each of the registered initialization handlers. @@ -525,14 +569,16 @@
- Invokes the registered handlers. + Calls each of the registered finalization handlers. - Increments the TopLeft and BottomRight coordinates of the rectangle. + + Increments the Top, Left and Bottom, Right rectangle coordinates by the specified amounts. + @@ -550,7 +596,7 @@
- Makes the rectangle originate at the given coordinates. + Moves the rectangle origin to the given coordinates. @@ -622,91 +668,140 @@ - Replaces all '&x' with 'x', and returns the position of the first adjusted letter in the resulting string. + Removes all Ampersand ('&') characters Str, and return the position for the first occurence. - + +

+ DeleteAmpersands is an Integer function used to remove all occurences of the Ampersand character in Str. The return value contains the position in Str where the first occurence of the of the character was found. +

+

+ Double Ampersands (&&) are converted to a single & character in Str. +

+

+ DeleteAmpersands can be used to remove the prefix used for accelerator keys in button, tool bar, and menu captions. +

+
- Position of the first adjusted non-ampersand letter. + Position where the first ampersand character was found. - + String with values converted in the method. - - + + Removes single Ampersand characters, and returns the converted value. + + +

+ RemoveAmpersands is an overloaded function used to remove all occurences of a single Ampsersand (&) character from the specified value. It provides variants that operate on String and PChar types. The return value contains the original value after all single Ampersand characters have been removed. Double Ampersand (&&) characters are converted into a single Ampersand character. +

+

+ Use DeleteAmpersands to remove Ampersand character in the original String value. +

+
- + Value after single Ampersand characters are removed. - + String with the values examined in the routine. - + PChar value examined in the routine. - + Length of the value in Src. - Compares two Handles, returning the Sign of the difference. - - + Compares two Handles, returning the relative order for the handle values. + +

+ The return value contains the following: +

+
+
-1
+
h1 has a lower value than h2.
+
0
+
h1 and h2 have the same value.
+
1
+
h1 has a higher value than h2.
+
+
- + Relative order for the compared handle values. - + First handle for the comparison. - + Second handle for the comparison. - Returns True when the two rectangles are equal. + + Indicates if the specified rectangle pointers have the same coordinate values. + - + + True when the top, left, bottom, and right values in each rectangle are the same. + - + Pointer to the first rectangle for the comparision. - + Pointer to the second rectangle for the comparision. - Compares the coordinates (y first) and returns the Sign of the difference. - - - - + Compares the specified TPoint values to get their relative order. + +

+ ComparePoints is an Integer function used to compare the coordinates in the specified TPoint instances to determine their relative order. The return value contains -1, 0, or 1 for the following conditions: +

+
+
-1
+
p1.y is smaller than p2.y, or p1.x is smaller than p2.x.
+
0
+
p1 and p2 have the same x and y values.
+
1
+
p1.y is larger than p2.y, or p1.x is larger than p2.x.
+
+
- + Relative order for the compared TPoint values. - + First TPoint instance for the comparison. - + Second TPoint instance for the comparison. - - - + See ComparePoints + +

+ See ComparePoints. +

+
+ + +
@@ -921,8 +1016,6 @@ - - @@ -1284,31 +1377,33 @@ - + Indicates if a TClass instance is found in the specified array. - + + Ordinal position in ACase where the TClass instance was found, or -1 when not found. + - + TClass instance to locate in ACase. - + Array of TClass instances to examine in the routine. - - + + True to consider descendants of AClass as a match in the routine. - + Alias to the UnicodeString type. - + Pointer to the UTF16String type. @@ -1395,15 +1490,15 @@ - + Indicates if the specified name contains 'default'. - + True when AName contains 'default'. - + Font name examined in the routine. diff --git a/docs/xml/lcl/lcltype.xml b/docs/xml/lcl/lcltype.xml index 9853377c7f..a294e1d477 100644 --- a/docs/xml/lcl/lcltype.xml +++ b/docs/xml/lcl/lcltype.xml @@ -67,40 +67,44 @@ - - + Alias to the PtrUInt type. + +

+ Defined for platforms other than Windows. Needed because THandle in the RTL SysUtils unit is defined as longint. +

+
- + Handle to a registry key. - The type of a Device Context Handle. + The type for a Device Context Handle. - + Handle for a callback routine. The type of a Font Handle. - The type of a general GraphicsDeviceInterface Object Handle. - GDI objects are e.g. fonts or brushes, used in GDI drawing operations. + + GDI objects are e.g. fonts or brushes, used in GDI drawing operations. @@ -145,13 +149,13 @@ - The type of a mouse Cursor Handle. + The type for a mouse Cursor Handle. - The type of a Global memory block Handle. + The type for a Global memory block Handle. Global memory blocks are managed by the platform, used e.g. for data shared across multiple processes. @@ -159,40 +163,30 @@ - The type of a - Window - Handle. - - Windows are managed by the platform's window manager. + The type of a Window Handle. + + Windows are managed by the platform's window manager. A window can be stand-alone (TForm) or embeddable (TWinControl). - The type of a - Menu - Handle. - + The type of a Menu Handle. - The type of a - Bitmap - Handle. - + The type of a Bitmap Handle. - The type of a - color Palette - Handle. - - A color palette is frequently used in compressed bitmaps, + The type of a color Palette Handle. + + A color palette is frequently used in compressed bitmaps, which contain short (1..8 bit) palette indices instead of RGB colors, for every pixel.