diff --git a/docs/xml/lcl/editbtn.xml b/docs/xml/lcl/editbtn.xml
index 2717c26c32..80a6353e02 100644
--- a/docs/xml/lcl/editbtn.xml
+++ b/docs/xml/lcl/editbtn.xml
@@ -2,2657 +2,3370 @@
- Create - constructor for TCustomEditutton: calls inherited Create then sets
-some defaults and initializes some variables Initializes height and width, cursor, glyph, style, checks visibility, event handler for click
+ TEditSpeedButton is a TSpeedButton descendant which provides support for change notifications for Glyphs used on the Button in TCustomEditButton. +
++ TCustomEditButton is a TCustomAbstractGroupedEdit descendant which implements a composite control with both an Edit and a Button. It provides overridden methods which extend or re-implement those found in the ancestor class. Most of the properties in the class are declared as protected, and must be exposed as public or published properties in an ancestor class like TEditButton. +
++ The implementation for ButtonClick is empty in TCustomEditButton; use a descendent class which implements a specific functionality. +
++ The return value is a TSize type with the dimensions for the control. The CX member contains the width needed for both the Edit and the Button controls in the grouped edit control. The CY member contains the height used for the Edit and the Button controls. +
++ GetControlClassDefaultSize is called in the constructor for the class instance, and used to set the initial bounds for the control. +
++ CalcButtonVisible is a Boolean function used to determine whether the Button for the control should be visible. The return value is True when the control is Visible and the Edit has focus, or the control is not configured to display its button only when focused. +
++ CalcButtonVisible is used in the implementation of the CheckButtonVisible method. +
++ CheckButtonVisible is a procedure which ensures that the Button in the control is configured and its visibility is set. If Button has not been assigned (contains Nil), no actions are performed in the method. +
++ Otherwise, the Visible property in Button is set to the value returned by CalcButtonVisible. UpdateSpacing is called to adjust the space between Edit and Button as needed for its visibility and Layout. +
++ Read and write access for the property are redirected to the ImageIndex property in Button. +
++ Create - constructor for TCustomEditButton: calls inherited Create then sets some defaults and initializes some variables. +
++ Initializes height and width, cursor, glyph, style, checks visibility, event handler for click. +
++ TEditButton implements a grouped edit control with both an Edit and a Button. TEditButton is derived from the TCustomEditButton class, and sets the visibility for properties declared in the ancestor classes. +
++ The default value for the property is bsNone in TEditButton. +
++ TFilterStringOption is an enumerated type with values representing string filter options which can be enabled in controls which support the feature. TFilterStringOption values are stored in the TFilterStringOptions set type used to implement the FilterOptions property in TCustomControlFilterEdit. +
++ TFilterItemEvent is a Boolean object function type that specifies an event handler used to filter data items in TCustomControlFilterEdit. The return value is True if an item matches a filter condition implemented in the event handler. Done can be updated to indicate if the item requires additional filtering on the title string in the data item; when it contains True, no additional filtering is needed. +
++ TFilterItemEvent is the type used for the OnFilterItem event handler in TCustomControlFilterEdit. +
++ TFilterItemExEvent is a Boolean object function type that specifies an event handler used to filter data items in TCustomControlFilterEdit. It is similar to TFilterItemEvent, but provides an additional argument with the caption for the data item. +
++ The return value is True if an item matches a filter condition implemented in the event handler. Done can be updated to indicate if the item requires additional filtering on the title string in the data item; when it contains True, no additional filtering is needed. +
++ TFilterItemEventEx is the type used for the OnFilterItemEx event handler in TCustomControlFilterEdit. +
++ TCheckItemEvent specifies an event handler that can be used only for items that have a checkbox. Returns True when the item is checked. It will be necessary to cast the object instance in Item to the correct data type in the event handler to access properties introduced in a TObject descendant. +
++ TCheckItemEvent is the type used to implement the OnCheckItem event handler in TCustomControlFilterEdit. +
++ When the container control is connected to a filter control, the filtering happens automatically as a user enters text. When the filter is empty and does not have focus, it displays the greyed value "(filter)". +
++ OnIdle is a procedure which implements a TIdleEvent event handler signalled to apply a filter when the Application becomes idle. OnIdle is assigned (using AddOnIdleHandler) or removed (using RemoveOnIdleHandler) in the global Application instance when the value in IdleConnected is changed. +
++ OnIdle uses an internal flag to determine if an update is needed, and when set, calls ApplyFilter to activate the filter and resets the flag value. Use the OnFilterItemEx or OnFilterItem (deprecated) event handlers to perform actions needed to implement the filter. +
++ OnIdle signals the OnAfterFilter event handler (when assigned). +
++ The value is True when TextHint contains a value other than the rsFilter resource string. +
++ Signals the OnFilterItemEx (preferred) or OnFilterItem (deprecated) event handlers (when assigned) to determine if the item meets the filter condition. Values in ACaption and ItemData are passed as arguments to the event handlers. +
++ The return value is True when the item meets the filter condition(s) implemented in the event handlers. The DoDefaultFilterItem method is called when the return value is False, or the event handlers are not assigned in the class instance. +
++ SortAndFilter is an abstract virtual method in TCustomControlFilterEdit. It must be implemented in a descendent class to provide the specific functionality needed. +
++ Does its job at once when Immediately is set to True. Otherwise, it connects the OnIdle event handler which applies the filter when the Application is idle. +
++ Create is the constructor for the class instance, and calls the inherited constructor. Create sets the default values for properties used to configure the Edit and Button in the class instance as well as its internal flags, including: +
++ StoreSelection is an abstract virtual method, and must be implemented in a derived class to use the correct class type for items in the associated control. +
++ Used in the implementation of the ApplyFilter method. +
++ FilterLowercase is a read-only String property which contains a variant of Filter converted to lowercase characters. It is used in the implementation of the DoDefaultFilterItem method when case sensitivity is not enabled in the FilterOptions property ( fsoCaseSensitive is not included). The property can be used in a similar manner in routines assigned to the OnFilterItem and OnFilterItemEx event handlers. +
++ The value for FilterLowercase is derived and assigned when the value in the Filter property is changed. +
++ IdleConnected is a Boolean property which indicates if the OnIdle event handler in the class instance has been connected to the Application singleton. When set to True, the Filter in the control will be applied when the application is in an idle state. +
++ Changing the value in the property causes the Application singleton to be updated by calling either the AddOnIdleHandler or the RemoveOnIdleHandler method. The address for the OnIdle method in the class is passed as an argument. +
++ IdleConnected is set to True in the InvalidateFilter method. +
++ IdleConnected is set to False in the OnIdle method after the Filter has been applied for the control. +
++ The default value for the property is False. +
++ FilterOptions is a TFilterStringOptions property which contains zero (0) or more TFilterStringOption enumeration values(s). Values in FilterOptions determine how string comparisons are performed in the DoDefaultFilterItem method. See for more information about the enumeration values and their meanings. +
++ The default value for the property is an empty set ([]). +
++ TDialogKind is an enumerated type representing the dialog styles available for use in TFileNameEdit. Values in the enumeration influence the common dialog type created for a control which displays a dialog when its button is clicked. +
++ TDialogKind is the type used to implement the DialogKind property in TFileNameEdit. +
++ TFileNameEdit is a TCustomEditButton descendant which implements a grouped edit control used to select and edit a file name on the local file system. The control provides the Edit and Button properties from the ancestor class, and executes a dialog when the Button is clicked. New properties are introduced which allow configuring the control to a specific file path, filters to select files of particular type or file extension, and to hide or show directories in its dialog. +
++ The return value contains the resource ID in the ResBtnFileOpen constant. The value is used in the LoadDefaultGlyph method defined in TCustomEditButton. +
++ CreateDialog is a TCommonDialog function which creates and returns the dialog for the grouped edit control. +
++ AKind contains the TDialogKind value that identifies the dialog type required for the control, and normally has the value from the DialogKind property. AKind determines the class type instantiated and used as the return value. For example: +
++ Properties relevant to the dialog kind are copied into the dialog, and mat include: +
++ CreateDialog is used in the implementation of the RunDialog method. +
++ SaveDialogResult is a procedure used to capture the results from the dialog when it has finished execution. The values are stored in the corresponding properties in the class instance, and depending on the DialogKind, may include: +
++ SaveDialogResult is used in the implementation of the RunDialog method. +
++ ButtonClick is an overridden method used to perform actions needed when the Button for the control is clicked. For TFileNameEdit, the RunDialog method is called to execute the dialog for the control and to capture it results. When FocusOnButtonClick is set, the FocusAndMaybeSelectAll method is called to give focus to the Edit control in the class. +
++ Create is the overridden constructor for the class instance, and calls the inherited constructor. Create allocates resource needed for the DialogFiles property, and sets the default values for the DialogKind and DialogOptions properties. +
++ DialogFiles is a read-only TStrings property used to store one or more file names found when the dialog for the control is executed. DialogFiles is updated in the SaveDialogResult method. For open dialogs, DialogFiles is set to the files returned by the dialog. For save dialogs, the content in DialogFiles is cleared. +
++ DialogKind is a TDialogKind property that indicates the type of dialog executed when the Button for the control is clicked. The default value for the property is dkOpen, as assigned in the constructor. Use one of the other TDialogKind enumeration values to perform its corresponding action. +
++ DialogTitle is a String property that contains the title displayed on the dialog executed by clicking on Button. The value in DialogTitle is assigned to the TCommonDialog descendant created in the CreateDialog method. +
++ DialogOptions is a TOpenOptions property which contains the options enabled for a File Open dialog. The default value for the property is defined in the DefaultOpenDialogOptions constant. +
++ Values in DialogOptions control the functionality and visual appearance of the dialog displayed for the control. See for more information about the enumeration values used in DialogOptions. +
++ If HideDirectories is set to true, the file name editor displays only a file name, without path. +
++ CreateDialog is a TCommonDialog function which creates and configures the Directory Open dialog executed when the Button is clicked for the control. In TDirectoryEdit, the class type instantiated and used as the return value is actually TSelectDirectoryDialog. +
++ CreateDialog ensures that values for the InitialDir and FileName properties in the dialog are set using the properties in the class instance. Directory and Filename are used in the the dialog when the directory exists on the local file system. Otherwise, the initial directory is set to the value in RootDir and the file name is set to the value in Directory. +
++ CreateDialog set the options in the dialog to the values specified in DialogOptions, and the value in DialogTitle is used as the title for the dialog. +
++ CreateDialog is used in the implementation of the RunDialog method. +
++ GetDialogResult is a String function used to get the result from the Select Directory dialog. The return value contains the value from the FileName property in the TSelectDirectoryDialog instance in D. The return value, when accepted in OnAcceptDirectory, is stored in the Directory property. +
++ GetDialogResult is used in the implementation of the RunDialog method. +
++ ButtonClick is an overridden method used to implement the button click handler for the Button in the control. ButtonClick calls the inherited method, and calls RunDialog to display the dialog and capture the directory name. When the dialog has completed, and FocusOnButtonClick is set to True, the FocusAndMaybeSelectAll method is called to give focus to the Edit control and select text as needed. +
++ ButtonClick is called from the BuddyClick method in the ancestor class. +
++ Create is the overridden constructor for the class instance, and calls the inherited constructor. Create sets the values in the DialogOptions property to the defaults in DefaultOpenDialogOptions. +
++ RunDialog is a procedure used to execute the dialog for the control, and to store the selected directory name in the control. RunDialog calls CreateDialog to create and configure the dialog executed in the method. When the dialog has completed successfully, GetDialogResult is called to capture the selected directory name. +
++ When assigned, the OnAcceptDirectory event handler is signalled to accept or reject the selected directory name. When rejected, the return value is ignored. When accepted, the value returned from the dialog is stored in the Directory property. +
++ RunDialog is used in the implementation of the ButtonClick method. +
++ Directory is a String property which contains the active directory, and the value displayed in the Edit for the control. +
++ Directory and RootDir determine the values used in the Select Directory dialog executed when the Button is clicked for the control. When Directory is a valid file path on the local file system, it is used as the initial directory displayed in the dialog. Otherwise, the value in RootDir is used as the initial directory and Directory is used as the file name in the dialog. +
++ The value in Directory is updated in the RunDialog method when the dialog for the control has been executed successfully. +
++ RootDir is a String property which identifies the root directory for file system navigation in the Select Directory dialog for the control. Its value, along with Directory, is used in the CreateDialog method to configure the dialog. +
++ RootDir is relevant when Directory does not represent a valid path on the local file system. It is used as the initial directory in the Select Directory dialog. When Directory is a valid file path, RootDir is ignored. +
+- ShowHidden - if True, display names of hidden directories
-In Windows etc, show directories under 'Windows' and branches; in Linux etc show directories with preceding dot e.g. '.Lazarus'
+ The default value for the property is defined in the DefaultOpenDialogOptions set type. + ++ ShowHidden - if True, display names of hidden directories. In Windows etc, show directories under 'Windows' and branches; in Linux etc show directories with preceding dot e.g. '.Lazarus'. +
+ TAcceptDateEvent is an object procedure which specifies an event handler used to examine and verify a TDateTime value. +
++ Senderis the object generating the event notification. +
++ ADate is the TDateTime value examined in the event handler. +
++ AcceptDate is a variable Boolean argument which indicates if the TDateTime value meets the criteria implemented in the event handler. Set AcceptDate to False to indicate that the TDateTime value should be rejected. +
++ TAcceptDateEvent is the type used to implement the OnAcceptDate property in TDateEdit. +
++ TCustomDateEvent is an object procedure which specifies an event handler used to examine or alter a String with a date value in an arbitrary format. +
++ Sender is the object generating the event notification. +
++ ADate is a variable String argument which can be examined or altered in the event handler. +
++ TCustomDateEvent is the type used to implement the OnCustomDate event handler in TDateEdit. +
++ TDateOrder is an enumerated type with values that indicate the display order for the Month, Day, and Year portions of a date value. +
++ TDateOrder is the type used to implement the DateOrder property in TDateEdit, and passed as an argument to the ParseDate routine. +
++ TDateEdit is a TCustomEditButton descendant which implements a grouped edit control for entering a date value. The control uses an Edit and a Button, as defined in the ancestor class, and implements a Calendar dialog to select a date value when the Button is clicked. The value is stored in the Date property as a TDateTime value. +
++ TDateEdit provides additional properties which are used to configure the Edit and Button controls and the dialog executed when Button is clicked. +
++ CalendarPopupReturnDate is a procedure which implements the TReturnDateEvent event handler used to validate and store the date returned from the dialog for the control. It is passed as an argument when calling the ShowCalendarPopup routine in the ButtonClick method. +
++ CalendarPopupReturnDate signals the OnAcceptDate event handler (when assigned) to accept or reject the value in ADate. The value in ADate is stored in the Date property when accepted in OnAcceptDate. +
++ CalendarPopupReturnDate handles any exception which occurs in the method, or in the OnAcceptDate event handler, and displays a Message Dialog with the message from the exception. +
++ CalendarPopupShowHide is a procedure which implements the event handler used to toggle the visibility of the dialog form for the control. CalendarPopupShowHide is passed as an argument when calling the ShowCalendarPopup routine in the ButtonClick method. +
++ CalendarPopupShowHide checks the visibility of the form in Sender (a TCalendarPopupForm in this usage), and assigns the value to the DroppedDown property in the class instance. +
++ DateToText is a String function used to convert the TDateTime value in the Value parameter to its textual representation. The return value is an empty String ('') when Value is equal to the NullDate constant. +
++ DateToText uses DefaultFormatSettings to generate the return value when DateOrder is doNone using the short date format in the DateFormat property. When DateOrder contains another value from the enumeration, the edit mask for the fixed date format is used to generate the return value. +
++ DateToText is used in the implementation of the SetDate, RealSetText, and EditEditingDone methods. +
++ GetDefaultGlyphName is overridden in TDateEdit to return the resource name specified in the ResBtnCalendar constant. +
++ EditDblClick is an overridden procedure in TDateEdit. It calls the inherited method, and checks to ensure that the control is not marked as ReadOnly before calling the ButtonClick method. +
++ SetDirectory is overridden in TDateEdit to synchronize the values in the Text and Date properties when DirectInput is changed. +
++ RealSetText is overridden in TDateEdit to ensure that DefaultToday is used to set the Date when Text is an empty string. Calls the inherited RealSetText method. +
+- Create - constructor for TDateEdit: calls inherited Create and sets defaults
-Initializes dialog title, captions, display settings and default date
+ Create - constructor for TDateEdit: calls inherited Create and sets defaults. + ++ Initializes the dialog title, caption, display settings, and the default date. +
+ DateFormat is a String property which contains the format used when converting the Date value to and from text. DateFormat is relevant when DateOrder contains the value doNone; when another TDateOrder value is used, the fixed format needed for the date order is automatically used. +
++ DateFormat is used in the implementation of the TextToDate and DateToText methods. +
++ TAcceptTimeEvent specifies an event handler used to validate and accept/reject a time value in TTimeEdit. TAcceptTimeEvent is the type used to implement the OnAcceptTime property in TTimeEdit. +
++ TCustomTimeEvent specifies an event handler used to generate an arbitrary TDateTime value. TCustomTimeEvent is the type used to implement the OnCustomTime property in TTimeEdit. +
++ TTimeEdit is a TCustomEditButton descendant which implements a control used to edit a time value. TTimeEdit provides the Edit and Button properties defined in the ancestor class, and a dialog that is executed to select a time value when the Button is clicked. +
++ The time value in the control is represented using the TDateTime type; only the time portion of the value is significant. +
++ SetEmptyTime is a procedure used to set the value in the Time property to the empty time value. The value in NullDate is assigned as the value for the Time property. In addition, the EmptyStr constant is assigned as the value for the Text property. An internal flag is set to indicate that the time value is empty. +
++ SetEmptyTime is used in the implementation of the ParseInput method, and in the constructor for the class instance. +
++ DefaultNow is a Boolean property which indicates if the time value defaults to the current system time when a empty time value assigned in the control. The default value for the property is False. +
++ DefaultNow is used in the implementation of the GetTime method which gets the value for the Time property. +
++ SimpleLayout is a Boolean property which indicates if the popup dialog for the control uses the 2 (rows) by 6 (columns) layout with 30 minute intervals between time values. The default value for the property is True. When set to False, a more detailed layout with 12 rows by 5 columns using 5 minute time intervals is used. +
++ ButtonClick is an overridden method used to perform actions needed when the Button for the control is clicked. For TCalcEdit, the RunDialog method is called to execute the dialog for the control and to capture it results. When FocusOnButtonClick is set, the FocusAndMaybeSelectAll method is called to give focus to the Edit control in the class. +
++ Create is the overridden constructor for the class instance. Create calls the inherited constructor, and sets the default values for the following properties: +
++ RunDialog is a procedure used display the form which captures the value for the control. For TCalcEdit, a TCalculatorForm instance is used instead of a TCommonDialog descendant as used in other grouped edit controls. +
++ Property values in the class are assigned to the form, such as: DialogTitle, DialogTop, DialogLeft, DialogPosition, and AsFloat. The form is displayed modally, and its value is passed to the OnAcceptValue event handler (when assigned). The accepted value is stored in the AsFloat property. +
+If HideDirectories is set to true, the file name editor displays -only a file name, without path.
-- TPageFlag - enumerated type containing possible values for page flags for notebook pages
-pfAdded, // handle of page added to notebook handle - pfAdding, // currently handle of page adding to notebook handle - pfRemoving, // currently removing page handle from notebook handle - pfInserting // currently inserting page into notebook -+ TBeforeShowPageEvent is an object procedure which specifies an event handler triggered before a page in displayed. TBeforeShowPageEvent can be used to perform actions needed to configure the page or its parent control before the new page is displayed. + +
+ TBeforeShowPageEvent is the type used to implement the OnBeforeShow event handler in TPage. +
+ TImagePaintBackgroundEvent is an object procedure which specifies an event handler signalled to draw the backgound for a TImage class instance. TImagePaintBackgroundEvent is the type used to implement the OnPaintBackground event handler in TCustomImage. +
+- TPage: One of the pages in a tabbed Notebook
-Inherits most of its properties from TCustomPage + TPage is a TCustomControl descendant that implements a page displayed in a tabbed Notebook.
+ GetPageIndex is an Integer function used to get the ordinal position for the page in the TNotebook. +
++ GetPageIndex checks the value in Parent to ensure that a TNotebook instance has been assigned as the parent control. The IndexOf method in TNotebook is used to get the position for the current page. When Parent is unassigned, or not derived from TNotebook, the value -1 is used as the return value. +
++ Create is the overridden constructor for the class instance. Create calls the inherited constructor, and sets the default values for properties in the class instance. The following properties are updated in the method: +
++ Destroy is the overridden destructor for the class instance. Destroy ensures that the page is also removed from the page list maintained in the Parent control (TNotebook). The action is not performed when the Parent control has csDestroying in its ComponentState, or when Parent has not been assigned. +
++ Destroy calls the inherited destructor prior to exiting from the method. +
++ PageIndex is a read-only Integer property which contains the ordinal position for the page in its TNotebook container. The return value is -1 when the Parent control is unassigned, or not derived from TNotebook. +
++ OnBeforeShow is a TBeforeShowPageEvent property that contains the event handler signalled before a page is displayed. Applications must assign an object procedure to the event handler to respond to the event notification. +
++ TUNBPages is a TStrings descendant used to represent the names, TPage instances, and the owner class in TNotebook. TUNBPages extends the ancestor class by providing overridden methods needed to add, insert, delete and locate pages with a specified name or TPage class instance. +
++ TUNBPages is used in the implementation of the TNotebook class. +
++ Get is an overridden String function used to get the name for the page stored at the specified position in the list of pages. +
++ Index contains the ordinal position in the page list for the requested page. Index must be a valid position in the page list or an Exception is raised. The return value contains the name assigned to the TPage instance stored at the specified position. +
++ Put is overridden in TUNBPages to set the name for the page object at the specified position. Put ensures that the value in Index is valid. Index must contain a value in the range 0 to the number of defined pages - 1. An exception is raised when Index contains an invalid value. +
++ Put sets the name in the TPage object at the specified position to the value in S. +
++ Add is an overridden Integer function used to create a new TPage instance with the name specified in S. The page object is created using the return value from GetNotebookOwner as the owner of the class instance. Add calls the AddObject method to store the page object in the list of pages for the notebook. +
++ The return value contains the ordinal position in the page list where the page object was stored. +
+TNotebook is a control which can hold a series of pages placed together. Only one page is shown at a time and this control is completely custom drawn, which means that it is available and looks the same in any widgetset which supports TCustomControl. The pages are containers which can hold controls. This control never has tabs. If you are looking for a control with tabs and pages, please see TPageControl instead.
-To use a Notebook, select its icon from the 'Additional' tab of the Component Palette and place it on the Form. Adjust its size, position, alignment and anchoring as required, by moving the object on the Form or by using the Object Inspector.
-Pages are added to the NoteBook by selecting the control and right-clicking with the mouse to get a pop-up menu whose first item is 'Add Page'. Pages already in the NoteBook can be edited by selecting the appropriate ActivePage in the Object Inspector and modifying its properties or adding additional components to that Page.
++ TNotebook is a control which can hold a series of pages placed together. Only one page is shown at a time and this control is completely custom drawn, which means that it is available and looks the same in any widgetset which supports TCustomControl. The pages are containers which can hold controls. This control never has tabs. If you are looking for a control with tabs and pages, please see TPageControl instead. +
++ To use a Notebook, select its icon from the 'Additional' tab of the Component Palette and place it on the Form. Adjust its size, position, alignment and anchoring as required, by moving the object on the Form or by using the Object Inspector. +
++ Pages are added to the NoteBook by selecting the control and right-clicking with the mouse to get a pop-up menu whose first item is 'Add Page'. Pages already in the NoteBook can be edited by selecting the appropriate ActivePage in the Object Inspector and modifying its properties or adding additional components to that Page. +
+ Create is the overridden constructor for the class instance. +
++ Create calls the inherited constructor using TheOwner as the owner of the class instance. Create allocates resources needed for members in the class instance, and sets the default values for the following properties: +
++ Destroy is the overridden destructor for the class instance. Destroy ensures that resources allocated to the internal page list member are freed. Destroy calls the inherited destructor prior to exiting from the method. +
++ ShowControl is an overridden procedure used to display the control specified in AControl. ShowControl checks the internal list of pages for the value specified in AControl. The ordinal position for the page object, when found, is assigned to the PageIndex property and causes the page object to become visible. +
++ ShowControl calls the inherited method prior to exit. +
++ ActivePage is a read-only String property which provides the name for the active page object in the notebook control. The value in PageIndex is used to access the page object instance in the Page property. Its Name property is used as the property value. +
++ Use ActivePageComponent to get the TPage instance representing the active page object. +
+Set of Options for this Notebook. Include nboShowCloseButtons, nboMultiLine +
+ ActivePageComponent is a read-only TPage property which represents the active page in the notebook control.
-To use the Options, select the tag in the Object Inspector, then select for inclusion any of the listed options, setting them True or False as appropriate.
-For example, setting nboShowCloseButtons to True will cause a CloseButton (a small CheckBox with an 'x' in it) to appear on each Tab of the NoteBook, allowing the tabbed Page to be closed when the user clicks on the CloseButton.
++ Page is an indexed read-only TPage property used to access a page object for the notebook control by its ordinal position in the list of pages. +
++
PageCount
is a read-only Integer property that indicates the number of page objects defined for the notebook control. The value in PageCount is determined by the total number of entries stored in the list of Pages. + ++ Use methods and properties in Pages to maintain the page names used in the notebook control. +
++ PageIndex is an Integer property that indicates the ordinal position for the active page in the notebook control. +
++ Setting the value in the property causes the active page object to be hidden; it is hidden at run-time and design-time using the Visible and ControlStyle properties. The OnBeforeShow event handler in the newly selected page object is signalled (when assigned). The page object is displayed by updating its Visible, ControlStyle, and Align properties. +
++ The default value for the property is -1, and indicates that a page is not currently selected or available. +
++ Pages is a TStrings property which contains the page names defined for the notebook control. +
++ Setting a new value in Pages causes the new page names to be compared to the internal page objects in the notebook. New or altered pages are added or replaced in the notebook. An existing page object not present in the new page names is deleted; the Application singleton is notified that the page object is being released and allowed to process the message. +
++ Please note: The value in Pages is not assigned at design-time. +
+- TTimer: An elapsed timer useful in many applications
-Inherits most of its properties from TCustomTimer + TTimer is a TCustomTimer descendant which implements an + elapsed timer useful in many applications. It inherits most of its properties from TCustomTimer.
- TIdleTimerAutoEvent - enumerated class containing events relevant to a timer
-itaOnIdle, - itaOnIdleEnd, - itaOnUserInput -+ TIdleTimerAutoEvent is an enumerated type containing the events relevant to a timer. TIdleTimerAutoEvent is the type used for the AutoStartEvent and AutoEndEvent properties in TCustomIdleTimer. Values in the enumeration are used when a timer executes its DoOnIdle, DoOnIdleEnd, and DoOnUserInput methods. + +
- TIdleTimer: A timer to measure idle time between processes
-Inherits most of its properties from TCustomTimer + TCustomIdleTimer is a TCustomTimer descendant which implements the base class for TIdleTimer. TCustomIdleTimer extends the ancestor class to use events which toggle the timer state. In addition, support is provided for adding and removing its event handlers in the global TApplication instance. +
++ UpdateHandlers is a procedure used to update the event handler assignments in the Application singleton based on the value in the AutoEnabled property. When AutoEnabled is True, the following methods are assigned as event handler: +
++ When AutoEnabled is False, the event handler routines are disconnected from the Application singleton. +
++ Calls UpdateHandlers to add or remove event handlers assigned in the Application singleton. +
++ DoOnIdle is a procedure which performs the actions needed to execute the idle timer. The value in FireOnIdle is used to determine whether the timer can be executed for the idle state. When FireOnIdle is True, the DoOnTimer method is called to signal the OnTimer event handler (when assigned) and the value in the Done argument is set to False. +
++ The AutoEnabled property is checked to determine if the value in the Enabled property can be updated to reflect the state needed for the AutoEndEvent and AutoStartEvent properties. If AutoEndEvent contains itaOnIdle, the value in Enabled is set to False. If AutoStartEvent contains itaOnIdle, the value in Enabled is set to True. +
++ DoOnIdle is assigned as a handler for the Application singleton in the UpdateHandlers method. +
++ Loaded is an overridden procedure used to perform actions needed when the component has finished loading in the LCL component streaming mechanism. Loaded calls the inherited method, and calls UpdateHandlers to connect/disconnect event handlers in the Application singleton. +
++ Create is the overridden constructor for the class instance. Create calls the inherited constructor using TheOwner as the owner of the class instance. Create sets the default values for the following properties: +
++ Destroy sets the value in AutoEnabled to False, and calls the inherited destructor. +
++ AutoEnabled is a Boolean property which controls whether the idle timer can be automatically Enabled (or disabled) in event handler routines. The default value for the property is False, and indicates that event handlers in the timer are not assigned to the Application singleton in the UpdateHandlers method. +
++ The value in AutoEnabled is used in the DoOnIdle, DoOnIdleEnd, and DoOnUserInput methods. When AutoEnabled contains False, these routines do not perform actions which toggle the value in the Enabled property. +
++ AutoStartEvent defines, when Enabled is automatically set to true. This is one of the following events: +
++ The default value for the property is itaOnIdle. +
++ AutoEndEvent defines, when Enabled is automatically set to false. This is one of the following events: +
++ The default value for the property is itaOnUserInput.
+ The default value for the property is False. +
+- TShapeType - enumerated type containing several standard geometric shapes:
-stRectangle - stSquare - stRoundRect - stRoundSquare - stEllipse - stCircle - stSquaredDiamond - stDiamond -+ TIdleTimer: A timer to measure idle time between processes. +
+ TShapeType is an enumerated type with values that represent standard geometric shapes. TShapeType is the type used to implement the Shape property in TShape. +
+- TShape: An arbitrary graphic geometrical shape placed on the Form. It may be one of a series of standard shapes defined by - TShapeType (stRectangle, stSquare, stRoundRect, stRoundSquare, stEllipse, stCircle, stSquaredDiamond, stDiamond).
-It can be displayed using the Paint method and the Brush and Pen tools.
+ TShape is a TGraphicControl descendant used to draw an arbitrary geometric shape. It may be one of a series of standard shapes defined in the TShapeType enumeration. + ++ It can be displayed using the Paint method, or the Brush and Pen tools. +
+ GetControlClassDefaultSize is an overridden TSize class function which provides the default size for instances of the control. The return value is updated in the method to use dimensions of 65 x 65 pixels. +
++ GetControlClassDefaultSize is called from the Create method, and used to set the initial value in the Bounds for the control. +
++ Paint is an overridden procedure used to draw the shape for the control on its Canvas. Paint uses the Pen, Brush, and Shape defined in the control. Drawing methods in Canvas are called to render the desired Shape to a rectangle using the Width and Height defined in the component. +
++ Paint calls the inherited Paint method to signal an OnPaint event handler assigned in the class instance. +
+Which Shape?
-stRectangle,
-stSquare,
-stRoundRect,
-stRoundSquare,
-stEllipse,
-stCircle,
-stSquaredDiamond,
-stDiamond
++ Shape is a TShapeType property that specifies the geometric shape drawn in the control. See for the values that can be assigned to the property. +
- TCustomSplitter: the base type for - - TSplitter + TResizeStyle is an enumerated type with the drawing styles and actions available when resizing using a splitter. TResizeStyle is the type used to implement the ResizeStyle property in TCustomSplitter.
-A Splitter is a vertical or horizontal bar that can be placed on a panel or form, to separate sub-panels functionally and allow re-sizing of the constituent sub-panels
-This class defines many of the basic properties for the children classes, such as positioning, sizing and alignment
-{ TCustomSplitter is a control for interactively resizing another control. - It is a vertical or horizontal bar anchored to a side of a control. - You can either set the Align property to alLeft (alRight,alTop,alBottom), - then it will become a vertical bar, aligned to the left and when the user - moves it with the mouse, the control to the left with the same Align=alLeft - will be resized. - The second more flexible possibility is to set the properties Align=alNone, - AnchorSides and ResizeAnchor. - }
+ TCanResizeEvent specifies an event handler signalled when a control is resized. Use to the arguments to event handler to access the new size for the control and to set a flag that indicates if the new value is acceptable. +
++ TCanResizeEvent is the type used to implement the OnCanResize event handler in TCustomSplitter and TCustomControlBar. +
++ TCustomSplitter is a TCustomControl descendant which implements a control used to resize, position and align a control to which it is anchored. TCustomSplitter displays a vertical or a horizontal bar anchored to the side of another control. Use the Align property to specify the orientation for the splitter control, and the adjacent control to which it is attached. When the splitter is moved with the mouse, the adjacent control with the same Align value will be resized. +
++ This class defines many of the basic properties for the children classes, such as positioning, sizing and alignment. +
++ Another usage scenario allows setting the Align property to alNone, and using AnchorSides and ResizeAnchor. +
++ TCustomSplitter is the base type for TSplitter. +
++ Calls the inherited method, and performs the UpdateCursor method to apply the cursor shape needed for the value in ResizeAnchor. +
++ AdaptAnchors is a TAnchors function used to adjust the anchor settings for the control to reflect the value in the Align property. a contains the initial anchors used in the method, and is assigned as the default return value. +
++ The Align property is used to determine the correct TAnchorKind values used in the return value for the method. The following TAnchorKind values are included/excluded from the result based on the value in Align: +
++ AdaptAnchors is called when a new value is assigned to the Align or Anchors properties. +
++ CheckNewSize signals the OnCanResize event handler (when assigned) to examine and validate the value in NewSize. The values in NewSize and Result can be updated in the event handler as needed. True indicates that the value in NewSize is acceptable. +
++ CheckNewSize is used in the implementation of the MoveSplitter method. +
++ Overridden in TCustomSplitter. Calls the inherited method, and ensures that the absolute mouse position is used when the left mouse button is depressed; The X and Y arguments are not valid during a resize operation. +
++ Calls GetCursorPos to capture the mouse position, and calls StartSplitterMove to initiate the splitter movement operation. +
++ Calls the inherited method. No additional actions are performed in the method at design-time, or when mouse capture has already been enabled for the control. Ensures that the internal flag used to track mouse entry into the control is set, and the control is refreshed by calling Invalidate. +
++ Paint is an overridden procedure used to draw the splitter control. Paint calls the inherited Paint method, and adds additional logic to handle drawing the splitter control. +
++ The OnPaint event handler is signalled (when assigned) to draw the splitter control. +
++ When OnPaint is unassigned (contains Nil), an internal routine is used to paint the gripper bar using the TThemedRebar settings in ThemeServices. The control is drawn using the theme settings needed for the state in the Enabled, MouseInControl, and Beveled properties. +
++ SetAnchors is an overridden procedure used to implement the write access specifier for the Anchors property. SetAnchors calls AdaptAnchors to ensure that the new value for the property reflects the setting in the Align property. SetAnchors calls the inherited method prior to exit. +
++ The default value for the property is alLeft. +
++ AutoSnap is a Boolean property. AutoSnap automatically moves the splitter to the zero position when split size becomes smaller than the value in MinSize. Contains True when snapping to grid positions. +
++ The default value for the property is crHSplit. +
+- TSplitter: A vertical or horizontal bar that can be placed on a panel or form, to separate sub-panels functionally and allow re-sizing of the constituent sub-panels
-The splitter extends for the full height (if vertical) or full width (if horizontal) of the parent control (form or panel) and is anchored to the edges; its position along the length or height of the parent is determined by the programmer or user by moving the whole control with the mouse, and its size can be adjusted using the sizing bars and with the ResizeAnchor property
+ TSplitter is a vertical or horizontal bar that can be placed on a panel or form, to separate sub-panels functionally and allow re-sizing of the constituent sub-panels. + ++ The splitter extends for the full height (if vertical) or full width (if horizontal) of the parent control (form or panel) and is anchored to the edges; its position along the length or height of the parent is determined by the programmer or user by moving the whole control with the mouse, and its size can be adjusted using the sizing bars and with the ResizeAnchor property. +
- TPaintBox: a painted rectangular box with defined size and color
+ TPaintBox is a painted rectangular box with defined size and color. ++ Paint is an overridden procedure used to draw the control. +
++ At design-time, a dashed black line is drawn around the area for the control and across its opposing corners. No other actions are performed in the method at design-time. +
++ At run-time, the OnPaint event handler is used to render the content for the control using the Font and Color properties. The inherited Paint method is called to signal the event handler. +
++ The default dimensions used in TPaintBox are 105 pixels wide x 105 pixels high. +
+- TImage - - - - - - - -: a graphic image placed on the form; usually loaded from a picture file.
-The actual image is found in Picture or Canvas + Create is the constructor for TPaintBox. It calls the inherited Create method, and sets the initial bounds and style for the control.
-Inherits most of its properties from its ancestors, TCustomImage, TGraphicControl and TControl +
+ TCustomImageis the base type for TImage. This is a control descended from TGraphicControl, and is designed to be lightweight and fast. +
++ TCustomImage provides a Canvas that is used to render the bitmap graphic in its Picture property. Additional properties are provided to control how the image is rendered, and includes: AntialiasingMode, Stretch, Transparent, and Proportional. +
++ PictureChanged is a procedure used to perform actions needed when the Picture property has been changed. PictureChanged adjusts the size for an assigned bitmap in Picture, and sets its bitmap transparency to the value in the Transparent property. PictureChanged calls Invalidate to cause the image to be repainted. The OnPictureChanged event handler is signalled (when assigned) prior to exiting from the method. +
++ PictureChanged is assigned as the OnChange event handler for the Picture property in the constructor for the class instance. +
++ Paint is an overridden procedure used to draw the image to the control Canvas. At design-time, a dashed black line is drawn around the image as a frame to mark the dimensions for its content. +
++ Paint uses the Canvas from the ancestor class as the target for the drawing operation. The value in AntialiasingMode is assigned to the corresponding property in the Canvas. The rectangle returned from DestRect is used as the drawing area. +
++ Paint signals the OnPaintBackground event handler (when assigned) using the canvas and drawing rectangle to render the background for the image. The StretchDraw method in the Canvas is used to render the image content. +
++ Paint calls the inherited method to ensure that the OnPaint event handler is signalled (when assigned). +
++ Create is the constructor for TCustomImage, and calls the inherited Create method. It then sets the default values for the style, bounds and other local variables. Creates allocates resources for the Picture property. +
++ Destroy is the destructor for TCustomImage. It free resources allocated to the Picture property, and then calls the inherited Destroy method. +
++ Invalidate is an overridden procedure which causes the control to be repainted. Invalidate is called when the content or dimensions for the image have been changed. +
++ Invalidate extends the ancestor method to include logic that reduces the number of calls to the Paint method, and avoids flicker caused by the redundant calls. It uses an internal flag in the class to determine if the Paint method has already been called, but has not yet been completed. If the flag has not been set, the inherited Invalidate method is called to refresh the control using its visibility and control style settings. +
++ AntialiasingMode is a TAntialiasingMode property which indicates if anti-aliasing is used when rendering the image. The value in AntialiasingMode is assigned to the TCanvas instance used in the Paint method. Changing the value in the property causes the PictureChanged method to be called to invalidate and repaint the image to its canvas. +
++ The default value for the property is amDontCare, and indicates that the default anti-aliasing mode for the platform, OS, or widget set is used. +
++ Center is a Boolean property which indicates if the image is drawn aligned to the center of the client area for the control. Center is used in the DestRect method to find the horizontal and vertical coordinates for the Picture aligned to the ClientWidth and ClientHeight for the control. +
++ Changing the value for the property causes the PictureChanged method to be called to invalidate and repaint the image. +
++ The default value for the property is False. +
++ The default value for the property is False. +
++ The default value for the property is False. +
++ Picture is a TPicture property which contains the dimensions, format, and data for the image displayed in the control. Resources are allocated for Picture in the constructor; this includes use of the PictureChanged method as the OnChange event handler for the property. +
++ Picture is used when the control needs to access its canvas for drawing operations. Drawing operations use the bitmap for the Picture when possible instead of the canvas for the form. It is also examined/updated when PictureChanged is called after values for properties like Proportional, Stretch, Centered, Transparent. and AntialiasingMode are changed. +
++ Stretch is a Boolean property which indicates if the image content is resized to the client area for the control. It is used in the DestRect method (along with Proportional) to calculate the rectangle needed to render the image content. +
++ Changing the value in Stretch causes the PictureChanged method to be called. +
++ The default value for the property is False. +
++ The default value for the property is True. +
++ The default value for the property is True. +
++ Transparent is a Boolean property which indicates if the image uses a clear, non-opaque background. The value for the property is used in the PictureChanged method to set the transparency for the bitmap in Picture. Changing the value for the property causes PictureChanged to be called to update the image data assigned to Picture and to repaint the control. +
++ The default value for the property is False. +
++ Use AntialiasingMode to enable or disable use of the rendering technique. Use the OnPaintBackground event handler to render a custom background for the image. +
++ Proportional is a Boolean property which indicates if the proportions (the ratio of width to height) for an image are maintained when it is resized. When set to True, a change to the image size maintains the ratio of width to height for the original image. Proportional is used (along with Stretch) in the DestRect method to determine the rectangle needed to render the image in the control. +
++ Changing the value for the property causes the PictureChanged method to be called. +
++ The default value for the property is False. +
++ OnPictureChanged is a TNotifyEvent property which contains the event handler signalled then the Picture property is changed. OnPictureChanged is signalled from the PictureChanged method, and allows actions to be performed after updates to image properties and the Invalidate method has been called. +
++ OnPaintBackground is a TImagePaintBackgroundEvent property which implements an event handler signalled to paint the background for an image. OnPaintBackground is signalled from the Paint method using the Canvas and DestRect for the image as arguments. The event occurs immediately prior to the image being drawn using its canvas handle. +
++ TImage : a graphic image placed on the form; usually loaded from a picture file. The actual image is found in Picture or Canvas. +
++ Inherits most of its properties from its ancestors, TCustomImage, TGraphicControl and TControl
+ The default value for the property is False. +
++ The default value for the property is False. +
+- TBevelShape - enumerated type for shape of bevel
-bsBox - bsFrame - bsTopLine - bsBottomLine - bsLeftLine - bsRightLine -+ TBevelShape is an enumerated type rerpresting the shapes available for a bevel. + +
Its appearance is governed by and +
+ The appearance of the Bevel is governed by and .
+ GetControlClassDefaultSize is an overridden TSize class function used to get the default size for new instances of the class. GetControlClassDefaultSize sets the dimensions in the return value to 50 pixels x 50 pixels. +
++ Paint is an overridden procedure used to perform paint requests received by the parent control. +
++ Paint checks the value in Style to determine the Pen colors used to draw the bevel. The Shape property determines the drawing primitives used to render the bevel to its Canvas. +
++ Paint calls the inherited method to trigger the OnPaint event handler (when assigned). +
++ Create is the overridden constructor for TBevel. Create calls the inherited Create method, and sets the initial values used in the ControlStyle, Style, Shape, and Bounds properties. +
+Either reads a flag containing alignment instructions (FAlign) or writes alignment instructions (SetAlign)
-May have no alignment, may have custom or client alignment, or can be aligned to top, bottom, left or right
++ Assign copies the contents of Source to Self, if the classes of the destination and source classes are compatible. +
++ The TPersistent implementation of Assign does nothing but call the AssignTo method for the source. This means that if the destination class does not know how to assign the contents of the source class, the source class instance is asked to assign itself to the destination class. This means that it is necessary to implement only one of the two methods so that two classes can be assigned to one another. +
+In general, a statement of the form:
+Destination:=Source;
+ + (where Destination and Source are classes) does not achieve the same as a statement of the form. +
+Destination.Assign(Source);
+ + After the former statement, both Source and Destination will point to the same object. The latter statement will copy the contents of the Source class to the Destination class. +
++ Either reads a flag containing alignment instructions (FAlign) or writes alignment instructions (SetAlign). +
++ May have no alignment, may have custom or client alignment, or can be aligned to top, bottom, left or right. +
+Determines how the control is to be anchored to its parent control
-Either reads a flag containing the set of anchors to be used, or writes a set of anchors. If they have been written, this is indicated in IsAnchorsStored +
+ Determines how the control is anchored to its parent control. Either reads a flag containing the set of anchors to be used, or writes a set of anchors. If they have been written, this is indicated in IsAnchorsStored.
Determines the border spacing for this control
-Reads flag to find stored spacing values required for the border of the control, or writes the flag to set the spacing.
-The properties are defined in the parent class TControlBorderSpacing +
Determines the border spacing for this control.
++ Reads flag to find stored spacing values required for the border of the control, or writes the flag to set the spacing. +
++ The properties are defined in the parent class TControlBorderSpacing.
Determine Constraints (max and min height and width) for this control; reads the size constraints or stores new ones.
++ Determine Constraints (max and min height and width) for this control; reads the size constraints or stores new ones. +
The Visible property represents the ability to see a visual control. - If Visible is True the control is shown, otherwise it is hidden. - Calling Show sets, among others, Visible to True. - Setting Visible to False is equivalent to calling Hide method.-
+ The Visible property represents the ability to see a visual control. If Visible is True the control is shown, otherwise it is hidden. Calling Show sets Visible to True. Setting Visible to False is equivalent to calling Hide method. +
+A group of related but mutually exclusive radio buttons, - selectable by the user.
-This class defines Items, where the captions of the individual radio boxes are stored, - Rows and Columns for arranging the radio boxes, - and ColumnLayout to determine whether the data are arranged - down the columns first, or across the rows first.
++ TColumnLayout is an enumerated type which determines the layout direction used to arranged data in columns. TColumnLayout is the type used to implement the ColumnLayout property in TCustomRadioGroup and TCustomCheckGroup. +
+ A group of related but mutually exclusive radio buttons, selectable by the user. +
++ This class defines Items, where the captions of the individual radio boxes are stored, Rows and Columns for arranging the radio boxes. The ColumnLayout property is used to determine whether the data are arranged down the columns first, or across the rows first. +
++ Clicked is a procedure used to perform actions needed when a radio button in the group is clicked. Clicked calls the CheckItemIndexChanged method to update the state for the radio buttons in the group, and to signal the OnClicked and OnSelection event handlers (when assigned). +
++ Clicked is assigned to the OnClick event handler for each TRadioButton in the group. Use the Items property to specify the radio buttons required for the grouped control. +
++ ItemKeyDown handles the following unshifted virtual key codes: +
++ If Shift contains a key modifier, or Key has not been handled, the KeyDown method from the ancestor class is called to handle the values in Key and Shift. +
++ Calls the KeyUp method in the ancestor class to handle the values in Key and Shift. +
++ Calls the KeyPress method from the ancestor class to handle the character value in Key. +
++ Calls the OnUTF8KeyPress method in the ancestor class to handle the UTF-8-encoded character in UTF8Key. +
++ Updates the value in ItemIndex, and the tabs stop settings for all checked radio buttons in the control. ItemIndex is set to -1 when none of the radio buttons in the control have their Checked property set to True. +
++ ReadState is used when the component is read using the LCL component streaming mechanism. ReadState ensures that ItemIndex contains a value that is valid for the defined Items in the grouped control. +
++ Create is the constructor for TCustomRadioGroup.It calls the inherited Create method, then sets the list of radio buttons, and initializes layout and sizing properties. +
++ Destroy is the destructor for TCustomRadioGroup. It frees the Items and radio buttons allocated in the class, and calls the inherited Destroy method. +
++ CanModify is a Boolean function which indicates if modification of the RadioGroup is permitted. CanModify always returns True in TCustomRadioGroup. +
++ Rows is an Integer function which returns the number of rows needed to represents the radio buttons defined in the grouped control. The return value is the result of dividing the total number of Items by the number of Columns. The return value is zero (0) when no Items have been defined in the control. +
++ AutoFill is a Boolean property which indicates whether child controls (radio buttons) are resized to fill the available space in the control. When AutoFill is set to True, child controls are resized by setting the EnlargeHorizontal and EnlargeVertical properties in ChildSizing to the value crsHomogenousChildResize. When AutoFill is set to False, the properties in ChildSizing are set to the value crsAnchorAligning. +
++ AutoFill is set to True in the Create constructor. +
++ Items is a TStrings property which contains the captions for the radio buttons displayed in the grouped control. Changing the value in Items causes the UpdateItems and UpdateControlsPerLine methods to be called to add or remove radio buttons (when needed) and to adjust Rows for the number of Columns in the control. +
++ Columns is an Integer property that indicates the number of columns used to display the radio buttons in the control. Columns must contain a positive non-zero value; use of an invalid value causes an Exception to be raised. +
++ Changing the value in Columns causes the UpdateControlsPerLine to be called. +
++ The default value for the property is 1. +
+TCustomRadioGroup.OnClick is different from the usual event TControl.OnClick. - Instead of occurring on a mouse click on the control, this event is occurs when - the currently selected item changes. It will not occur if a click does not make the - selection change, will not occur upon clicking a already selected item and will occur - if one changes the selection via the keyboard. It also occurs when the item - is changed programmatically. This is done for Delphi compatibility.
-Note that Lazarus also offers another event for the same task with a better name: - see TCustomRadioGroup.OnSelectionChanged for more details.
++ OnClick is different from the usual event TControl.OnClick. Instead of occurring on a mouse click on the control, this event is occurs when the currently selected item changes. It will not occur if a click does not make the selection change, will not occur upon clicking a already selected item and will occur if one changes the selection via the keyboard. It also occurs when the item is changed programmatically. This is done for Delphi compatibility. +
++ Note that Lazarus also offers another event for the same task with a better name: see OnSelectionChanged for more details. +
This event was introduced in Lazarus 0.9.31 and it is called when the selected item is changed. - It is triggered when this is done by the user via, for example the mouse or keyboard, - and is also triggered when the selected item is changed programmatically.
++ This event was introduced in Lazarus 0.9.31, and is called when the selected item is changed. It is triggered when this is done by the user via, for example the mouse or keyboard, and is also triggered when the selected item is changed programmatically. +
- TRadioGroup: A group of related but mutually exclusive radio buttons, requiring the user to select one of a set of alternatives. As one button becomes selected, the remaining buttons in the group become automatically deselected.
-To Use this control, place it in the required position on the form, then in the Object Inspector select Items and click on the ellipsis (...) to open the string editor. Type in the captions to accompany each check box, then close the string editor and you will see a series of Radio Boxes with their captions displayed beside them. (Note - unlike TCheckGroup, there is no special RadioGroup editor)
-Inherits properties from TCustomRadioGroup and TCustomGroupBox + TRadioGroup: A group of related but mutually exclusive radio buttons, requiring the user to select one of a set of alternatives. As one button becomes selected, the remaining buttons in the group become automatically deselected.
- TRadioGroup behaves differently from a group of - - TRadioButton controls placed arbitrarily around a form.
-In the case of TRadioButton, the mutual exclusivity is a feature that applies to any RadioButton anywhere in the Form, and the RadioButtons can be rearranged in any order or placed anywhere within the containing Form, while in TRadioGroup the exclusivity applies only to buttons within the Group, which are ordered strictly according to their ItemIndex within the Items stringlist.
+ To Use this control, place it in the required position on the form, then in the Object Inspector select Items and click on the ellipsis (...) to open the string editor. Type in the captions to accompany each check box, then close the string editor and you will see a series of Radio Boxes with their captions displayed beside them. (Note - unlike TCheckGroup, there is no special RadioGroup editor). +- TRadioButton is an entity in itself, with a number of additional properties, whereas the buttons within - - TRadioGroup are not separate entities, but rather are simply entries in a list of strings, each of which is associated with the on-screen image of a - - RadioButton.
-The example shows the difference between the use of TRadioButton and TRadioGroup + Inherits properties from TCustomRadioGroup and TCustomGroupBox. +
++ TRadioGroup behaves differently from a group of TRadioButton controls placed arbitrarily around a form. +
++ In the case of TRadioButton, the mutual exclusivity is a feature that applies to any RadioButton anywhere in the Form, and the RadioButtons can be rearranged in any order or placed anywhere within the containing Form, while in TRadioGroup the exclusivity applies only to buttons within the Group, which are ordered strictly according to their ItemIndex within the Items stringlist. +
++ TRadioButton is an entity in itself, with a number of additional properties, whereas the buttons within TRadioGroup are not separate entities, but rather are simply entries in a list of strings, each of which is associated with the on-screen image of a RadioButton. +
++ The example shows the difference between the use of TRadioButton and TRadioGroup.
- Items - a string list containing the captions of the radio boxes
-Use the String List editor, opened by selecting Items and the ellipsis (...) in the Object Inspector, to insert the captions for the radio boxes, and determine their order and layout using the Rows, Columns and ColumnLayout properties -
-- TCustomCheckGroup: The base type for - - TCheckGroup + Items - a string list containing the captions of the radio boxes. +
++ Use the String List editor, opened by selecting Items and the ellipsis (...) in the Object Inspector, to insert the captions for the radio boxes, and determine their order and layout using the Rows, Columns and ColumnLayout properties. +
++ TCustomCheckGroup is the base type for TCheckGroup. This class defines Items, where the captions for individual check boxes are stored, Rows and Columns for arranging the check boxes, and ColumnLayout to determine whether the data are arranged down the columns first, or across the rows first.
-This class defines Items, where the captions for individual check boxes are stored, Rows and Columns for arranging the check boxes, and ColumnLayout to determine whether the data are arranged down the columns first, or across the rows first.
+ Clicked is a procedure which performs actions needed when a check box in the grouped control is clicked. Sender contains the TCheckBox instance generating the click notification. Clicked checks the internal list of check boxes to find the ordinal position for the control in Sender, and calls DoClick to trigger the OnItemClick event handler. +
++ Clicked is used as the OnClick event handler in the TCheckBox instances created in UpdateItems. +
++ Calls UpdateItems to refresh the checkboxes displayed for the grouped edit control. +
++ Calls OwnerFormDesignerModified to notify the owner form when the control has been modified at design-time. +
++ Overridden in TCustomCheckGroup to call the UpdateItems method when the component has finished loading from the LCL streaming mechanism. +
++ Create is the overridden constructor for TCustomCheckGroup. It calls the inherited Create method. It also sets styles, creates lists, and initializes sizing and layout properties in the control. +
++ Destroy is the overridden destructor for TCustomCheckGroup. It frees items and check boxes in the control, and calls the inherited Destroy method. +
+- TCheckGroup: A group of Check Boxes physically and logically grouped together on a form
-To Use this control, place it in the required position on the form, then -either right-click on the control to see the pop-up CheckGroup editor, or in the Object Inspector select Items and click on the ellipsis (...) to open the string editor. In either case, type in the captions to accompany each check box, then close the string or CheckGroup editor and you will see a series of boxes with their captions displayed beside them.
-Inherits properties from TCustomCheckGroup and TCustomGroupBox + FlipChildren is an empty implementation in TCustomCheckGroup; no flipping is performed for the control. +
++ Rows is an Integer function which returns the number of rows needed to represents the check boxes defined in Items. The return value is the result of dividing the total number of Items by the number of Columns. The return value is zero (0) when no Items have been defined in the control. +
++ AutoFill is a Boolean property which indicates whether child controls (check boxes) are resized to fill the available space in the control. When AutoFill is set to True, child controls are resized by setting the EnlargeHorizontal and EnlargeVertical properties in ChildSizing to the value crsHomogenousChildResize. When AutoFill is set to False, the properties in ChildSizing are set to the value crsAnchorAligning. +
++ AutoFill is set to True in the Create constructor. +
++ Items is a TStrings property which stores the captions for the check boxes on the grouped edit control. When the class instance is created, TCheckGroupStringList is used as the storage for the property values. +
++ Checked is an indexed Boolean property used to read or write the state for a check box at the ordinal position specified in Index. +
++ CheckEnabled is an indexed Boolean property used to maintain the Enabled property for the check box at the position specified in Index. Index contains the ordinal position in the list of check boxes for the control, and must be in the range 0..Items.Count-1. An exception is raised when Index is not within the required range. +
++ Use the Checked property to determine if a check box has its Checked property set to True. +
++ Use Items to maintain the Captions for the check boxes displayed in the grouped edit control. +
++ Columns is an Integer property which specifies the number of columns used to display the check boxes for the grouped edit control. Changing the value in the property causes the UpdateControlsPerLine method to be called. The new value for the property must be a positive non-zero value or an exception is raised. +
++ The value in Columns is used as the number of controls displayed per line in the ChildSizing property. +
++ The default value for the property is 1. +
++ ColumnLayout is a TColumnLayout property which specifies the layout strategy used when rendering the Items in the grouped edit control. The default value for the property is clHorizontalThenVertical, and causes check boxes to be drawn horizontally for the required number of Columns before advancing. +
++ Assigning a new value for the property causes ChildSizing to be updated to use the corresponding value in its Layout property. +
++ OnItemClick is a TCheckGroupClicked property used as the event handler signalled when a check box is clicked for the grouped edit control. Applications must implement and assign an object procedure using the signature in TCheckGroupClicked to respond to the input event. +
++ TCheckGroup is a group of Check Boxes physically and logically grouped together on a form. +
++ To use this control, place it in the required position on the form, then either right-click on the control to see the pop-up CheckGroup editor, or in the Object Inspector select Items and click on the ellipsis (...) to open the string editor. In either case, type in the captions to accompany each check box, then close the string or CheckGroup editor and you will see a series of boxes with their captions displayed beside them. +
++ Inherits properties from TCustomCheckGroup and TCustomGroupBox.
- Caption: the string which appears as a caption at the top of the Check Group Box to describe the function of the Check Group as a whole
-- Items - a string list containing the captions of the check boxes
-Use the String List editor or the CheckGroup editor (opened by right-clicking on the control in the Form) to insert the captions for the check boxes, and determine their order and layout
-+ Caption is the string which appears as a caption at the top of the grouped edit control to describe the function of the Check Group as a whole. +
++ Items is a string list containing the captions for the check boxes displayed in the grouped edit control. +
++ Use the String List editor or the CheckGroup editor (opened by right-clicking on the control in the Form) to insert the captions for the check boxes, and determine their order and layout. +
++ TBoundLabel is a TCustomLabel descendant which implements a label bound to another control. TBoundLabel is the type used to implement the EditLabel property in TCustomLabeledEdit and TLabeledEdit. +
++ Use Caption to assign the text displayed in the label. Use Layout to specify the text alignment used for the Caption value. +
++ The FocusControl property specifies the control given focus when a Dialog accelerator key or other input event in the class is handled. Use one of the AnchorSide* properties to specify the edge anchored to the FocusControl. +
++ Other than a constructor, the class does not have any new methods or event handlers. +
+ FocusControl also receives key messages in the DialogChar method. +
+- TCustomLabeledEdit - - - - - - -: The base type for - - LabeledEdit.
-Note particularly the EditLabel property (see TBoundLabel), which contains the label attached to the Edit control.
+ TCustomLabeledEdit : The base type for LabeledEdit. + ++ Note particularly the EditLabel property (see TBoundLabel), which contains the label attached to the Edit control. +
+ SetParent is overridden in TCustomLabeledEdit to ensure that the EditLabel for the control is properly aligned after the value in Parent is changed. Calls DoPositionLabel to set the label visibility and position the label using the value in LabelPosition and LabelSpacing. +
++ SetName is overridden in TCustomLabeledEdit to assign the new value for the property to the Caption in EditLabel at design-time. SetName calls the inherited method prior to exit. +
++ Loaded is overridden in TCustomLabeledEdit to position the EditLabel by calling the DoPositionLabel method. Loaded calls the inherited method. +
++ DoPositionLabel is a procedure used to place the EditLabel relative to the companion control. No actions are performed in the method when EditLabel is unassigned (contains Nil). +
++ DoPositionLabel ensures that DisableAlign is called in the Parent control (when assigned). EnableAlign is called for the Parent control prior to exiting from the method. +
++ DoPositionLabel updates EditLabel to use the values assigned to the Parent and Visibility properties. The values in LabelPosition and LabelSpacing are used to determine the anchoring to the companion control applied to EditLabel. +
++ Notification is overridden in TCustomLabeledEdit to ensure that a reference to the EditLabel property is released when Operation contains the value opRemove. Notification calls the inherited method. +
++ Ensures that an assigned EditLabel uses the value stored in the BiDiMode property. Calls DoPositionLabel to update the control layout and position, and calls Invalidate to force the control to be redrawn. +
++ Calls the inherited CMBiDiModeChanged method. +
++ CreateInternalLabel is a method used to allocate resources for the EditLabel property in the class instance. TCustomLabeledEdit creates the TBoundLabel class instance used in EditLabel, and updates its ControlStyle property to prevent selection at design-time (csNoDesignSelectable). The current class instance is used as the FocusControl in EditLabel. +
++ No actions are performed in the method if EditLabel has already been assigned in the class instance. +
++ CreateInternalLabel is used in the implementation of the Create constructor. +
+- TLabeledEdit - - - - - - -: An Edit Box with a permanently attached Label
-Saves time and effort over placing separate Label and Edit Box on Form. The properties are described in the parent component, TCustomLabeledEdit from which most of the properties are inherited
+ TLabeledEditis an Edit Box with a permanently attached Label. + ++ Saves time and effort over placing separate Label and Edit Box on Form. The properties are described in the parent component, TCustomLabeledEdit from which most of the properties are inherited. +
+ TPanelBevel is an alias to the TBevelCut type. TPanelBevel is the type used to implement the BevelInner and BevelOuter properties in TCustomPanel. +
+- TCustomPanel: The base type for TPanel + TCustomPanelis the base type for TPanel.
-A Panel is a defined rectangular area of the form into which other components can be placed to group them functionally and geographically.
- TCustomPanel defines the positioning and beveling properties of any descendent classes, and provides methods for painting and writing text to the panel.
+ A Panel is a defined rectangular area on a form into which other components can be placed to group them functionally and geographically. TCustomPanel defines the positioning and beveling properties of any descendent classes, and provides methods for painting and writing text to the panel. ++ PaintBevel is a procedure used to draw the bevel for the panel using the values in the BevelColor and BevelWidth properties. ARect is the rectangle with the coordinates where the bevel is drawn. ABevel contains the style used to draw the bevel. +
++ PaintBevel uses the Canvas for the control as the target for the drawing operation. The Frame3D method in the Canvas is used to draw the bevel with the required color, width, and style for the panel. +
++ PaintBevel is used in the implementation of the Paint method to draw using both the BevelInner and BevelOuter styles. +
++ AdjustClientRect is an overridden procedure used to adjust the drawing rectangle in ARect to account for borders and bevels used on the panel. AdjustClientRect calls the inherited method, and calculates the numer of pixels required for the settings in BorderWidth, BeveInner, and BevelOuter. AdjustClientRect calls InflateRect to adjust ARect by the calcluated border and bevel widths. +
++ AdjustClientRect is called when the control is autosize or aligned. +
++ GetControlClassDefaultSize is overridden to provide the default size for new instances of the class type. The return value is a TSize type which contains the dimensions for the new control. The CX member contains the Width for the panel, and defaults to 170 pixels. The CY member contains the Height for the panel, and defaults to 50 pixels. +
++ Loaded is an overridden procedure used to perform actions needed when the component has finished loading in the LCL component streaming mechanism. Loaded calls the inherited method, and calls UpdateParentColorChange to adjust the ControlStyle when ParentColor is in use. +
+A Panel is a defined rectangular area of the form into which other components can be placed to group them functionally and geographically.
++ RealSetText is an overridden procedure used to store the specified value as the Caption for the control. RealSetText calls the inherited method to store the text, and then calls the Invalidate method to repaint the control. +
+ Paint is an overridden procedure which paints the panel including the bevels and caption defined for the control. Paint calls GetClientRect to get the rectangle used to draw the control. PaintBevel is called to draw both the inner and outer bevels for the control (when used). +
++ When Caption contains a String value (other than an empty string), the Canvas for the control is used to render the text. Values in the BiDiMode, WordWrap, and Layout properties are applied to the text as needed. +
++ Paint calls the inherited Paint method prior to exit. +
++ SetParentBackground is an overridden procedure used to the set the background used for the parent control. SetParentBackground ensures that the ControlStyle property is updated to include or omit the value csOpaque. When AParentBackground contains True, the value is excluded from ControlStyle. When AParentBackground contains False, the value is included in ControlStyle. +
++ SetParentBackground calls the inherited method prior to exit. +
++ UpdateParentColorChange updates the control to reflect changes to the ParentColor property. +
++ When ParentColor is True, the parent color is used, so the value csOpaque is excluded from the ControlStyle property. Otherwise, Parent color is not used, and the value csOpaque is included in the ControlStyle property. +
++ UpdateParentColorChange is called from the Loaded method when the component has finished loading using the LCL component streaming mechanism. It is also called from the CMParentColorChanged method when the change message is handled for the control. +
++ WordWrap is a Boolean property which indicates if the text in the Caption property can be word wrapped into multiple lines when painting the control. The default value for the property is False, and indicates that word wrapping is not used for the caption. Changing the value in WordWrap causes the Invalidate method to be called to repaint the control. +
++ WordWrap is used in the Paint method to initialize properties in the TTextStyle argument used to render the text rectangle for the caption to its Canvas. +
++ Create is the constructor for TCustomPanel. It calls the inherited Create method, and sets the initial style, bevel, color, alignment and bounds for the control. +
++ Alignment is a TAlignment property that indicates how the text (or Caption) is aligned on the panel. The default value for the property is taCenter, and causes text to be aligned to the center of the panel. Changing the value in Alignment causes the Invalidate method to be called to repaint the control. +
++ BevelColor is a TColor property that specifies the color used to draw bevels for the panel. BevelColor is used in the PaintBevel method; it is passed as an argument to Canvas drawing routines when BevelColor contains a value other than clDefault. +
++ The default value for the property is clDefault. Changing the value in BevelColor causes the Invalidate to be called to repaint the control. +
++ Exists only for Delphi compatibility; it has no effect in LCL. +
++ When ParentBackground is True, the control uses the background from the parent color (including any theme drawing features from ThemeServices). +
++ ParentBackground is used in conjunction with the ControlStyle property. Changing the value in ParentBackground causes the ControlStyle property to be updated to reflect the property setting. When the property is set to True, the value csOpaque is excluded from ControlStyle to allow the default background to be drawn. When the property is set to False, the value csOpaque is included in the ControlStyle property. +
++ The default value for the property is True. +
++ When ParentColor is True, the control is drawn using the Color from the parent control. When ParentColor is False, the Color property is used to draw the control. +
++ The default value for the property is True. +
++ Changing the value for the property causes the UpdateParentColorChange method to be executed. +
++ TPanel is a TCustomPanel descendant which defines a rectangular area on a form into which components can be placed to group them functionally and geographically. TPanel is a general container for other components, and has a customizable border and caption. +
++ TFlowStyle is an enumerated type which contains values that represent the flow styles available in TCustomFlowPanel. It is the type used to implement the FlowStyle property in TCustomFlowPanel. +
++ TWrapAfter is an enumerated type with values that specify the wrapping strategy for controls in TCustomFlowPanel. +
++ TFlowPanelControl is a TCollectionItem descendant which implements a collection item maintained in TFlowPanelControlList. TFlowPanelControl provides properties and methods need to represent a flowed control in the collection, and provides support for the IObjInspInterface used in the Lazarus Object Inspector. +
++ AssignTo is an overridden method used to implement persistence in the control. AssignTo provides support for storing property values from the current class instance into the Dest argument when it is derived from TFlowPanelControl. Otherwise, the inherited AssignTo method is called. +
++ Index is a published property in TFlowPanelControl. Changing the value in Index causes the owner panel to call its ReAlign method when it is not being loaded, updated, or destroyed. +
++ TFlowPanelControlList is a TOwnedCollection descendant. TFlowPanelControlList implements the IObjInspInterface interface which allows the collection to be used in the Lazarus Object Inspector. +
++ Items is an indexed TFlowPanelControl property which provides access to the flow panel controls in the container. Items is the default property for the collection. +
++ Use the Add or the AddControl method to add a flow panel control to the collection. +
++ Use RemoveControl to remove a flow panel control from the collection. +
++ Calls DisableAlign prior to adding (inserting) the control in ControlList. Calls ReAlign when the control is added, and calls EnableAlign prior to exit. +
++ AlignControls is an overridden procedure used to perform layout and alignment for flowed controls on the panel. +
++ Create is the overridden constructor for the class instance, and calls the inherited constructor. Create ensures that resources are allocated for the ControlList property, and sets the default value for AutoWrap to True. +
++ Destroy is the overridden destructor for the class instance. Destroy calls the inherited destructor, and frees resources allocated to the ControlList property. +
++ GetControlIndex is a convenience method used to get the ordinal position in ControlList for the specified flowed control. +
++ Use SetControlList to store an Index value for the specified flowed control. +
++ In case of horizontal/vertical flow style: tlTop: top/left alignment in row/column tlCenter: center tlBottom: bottom/right. +
++ Use TFloatPanel if you need a container with a float layout. The Anchors and Align properties of child controls are ignored. The floating direction is determined with FlowStyle property. +
++ TBalloonFlags is an enumerated type with values representing flags used in Tray Icon balloon hints. It is the type used to implement the BalloonFlags property in TCustomTrayIcon. +
++ TCustomTrayIcon is the base class for TTrayIcon, a multi-platform System Tray component. +
+ ++ InternalShow is called when the Show method is executed during LCL component streaming. InternalShow sets a flag to enable delayed display when csLoading is in the ComponentState property. No additional actions are performed in the method during LCL component streaming. +
++ The return value contains the result from the Show method in WidgetSetClass. Visible is updated to reflect the state indicated in the widget set class. The value in Animate is used to enable or disable the animation timer for the class instance. +
++ HandleNotifierClose ensures that the internal balloon hint timer for the tray icon is disabled when the notifier is closed or destroyed. HandleNotifierClose is assigned to the OnClose event handler in the internal TPopupNotifier class instance used in the tray icon. +
++ HandleNotifierTimeout is a procedure which implements an event handler used to disabled the timer and to close the popup notifier for the tray icon. HandleNotifierTimeout is used as the OnTimer event handler in the TTimer class instance used in the component. +
++ HandleOnAnimateTimer is a procedure used to implement an event handler signalled when the interval for the animation timer has elapsed. HandleOnAnimateTimer retrieves and displays a bitmap stored in the Icons property when the interval for the timer has elapsed. An internal counter is incremented in the handler to indicate the next image used in the animation sequence. The counter is reset to zero (0) when the last bitmap in Icons is used. HandleOnAnimateTimer calls the InternalUpdate method to refresh the widget set class for the tray icon. +
++ HandleOnAnimateTimer is assigned to the OnTImer event handler for the internal TTimer instance used as the animation timer. +
++ Use Animate to control whether animations are displayed for the tray icon. +
++ Use AnimateInterval to specify the number of elapsed milliseconds allowed before the event handler in the animation timer is signalled. +
++ IconChanged is a procedure which implements an event handler signalled when the Icon is changed for the component. IconChanged ensures that the WidgetSetClass is notified of the change to the tray icon. +
++ IconChanged is assigned as the OnChange event handler for the Icon property in the constructor for the class instance. +
++ Notification is an overridden procedure used to perform actions when a component is added or removed at run-time. Notification calls the inherited method, and ensures that the PopUpMenu for the tray icon is set to Nil when the component is removed. +
++ Loaded is an overridden procedure used to perform actions needed when the component has finished loading from the LCL streaming mechanism. Loaded calls the inherited method, and calls the InternalShow method to display the tray icon. +
++ Handle is a public HWND member that represents the operating system handle for the control. The value in Handle is used (when assigned) in the IconChanged event handler. +
++ Create creates a new instance of a TCustomTrayIcon class. If AOwner is not Nil, the new component attempts to insert itself in the list of owned components of the owner. +
++ Destroy sends a opRemove notification to all components in the free-notification list. After that, all owned components are destroyed by calling DestroyComponents (and hence removed from the list of owned components). When this is done, the component removes itself from its owner's child component list. After that, the parent's destroy method is called. +
++ Hide is a Boolean function used to hide the tray icon and to remove it from the tray area in the task bar. +
++ Hide sets the value in the Visible property to False, and calls the namesake method in the WidgetSetClass. The internal animation timer for the tray icon is also disabled in the method. +
++ The return value is True when the tray icon is successfully hidden. For other conditions, the return value is False. +
++ Show is a Boolean function used to display the tray icon in the system tray. The return value is True if the control is successfully displayed in the method, or the control is already visible. No additional actions are performed in the method when Visible is already set to True. +
++ The return value is always False at design-time. At run-time, the InternalShow method is called to display the control with delayed loading and to set the sate for the internal animation timer. +
++ The behavior of this method depends on the widgetset.It was added to provide a way to update items which either cannot be updated automatically when changed, or would be too inefficient to be updated on each change. +
++ One example of this is the tray icon menu under LCL-Carbon. It is not automatically updated when changes are made to it's associated LCL TPopUpMenu, but changes are updated when InternalUpdate is called. This happens because the tray icon menus are Cocoa menus which don't match the Carbon menus from LCL-Carbon. +
++ Similar things happen in other widgetsets, so InternalUpdate can be expected to update the menu and/or icon of the tray icon, if this is necessary. If such an update is not required, for example because it is automatically updated on each change, then InternalUpdate will simply do nothing, so it is always a safe function to call, regardless of the widgetset. +
++ ShowBalloonHint displays a small balloon-like window near the tray icon. It can be used to send notifications about the status of an action, or notify of a received message or any other event which doesn't require an immediate response. The Balloon window disappears after the BallonHintTimeout interval has elapsed, or when the user clicks on the close button for the balloon hint. +
++ GetPosition is a TPoint function used to get the position of the tray icon on the display. GetPosition calls the namesake method in the WidgetSetClass to get the location for the tray icon. The coordinates in the return value are used to determine the location for a BalloonHint window for the tray icon. +
++ For the Windows platform, an approximate location in the tray area in the Windows taskbar is used. +
++ Animate is a Boolean property that indicates if animations are displayed on the tray icon. +
++ The default value for the property is False. Sets Animate to True to enable the animation timer using the interval in AnimateInterval, and start the animation sequence stored in the Icons property. +
++ AnimateInterval is a Cardinal property that defines the elapsed time interval between updates to the image displayed on the tray icon. The default value for the property is 1000 (milliseconds), and causes the animation timer to refresh the image on the tray icon every second. +
++ Update the Icons property to contain the bitmaps displayed in the animation sequence, +
++ Set Animate to True to enable the animation timer for the tray icon. +
++ BalloonFlags is a TBalloonFlags property which defines the balloon flag displayed for the tray icon balloon hint. BalloonFlags are used when the widget set class displays the balloon hint window for the tray icon. The default value for the property is bfNone. See for more information about the values in the enumeration and their meanings. +
++ OnPaint is an event handler used to implement custom drawing for the tray icon. Draw using the canvas property for the tray icon. +
++ TTrayIcon is a TCustomTrayIcon descendant which implements a multi-platform System Tray component. It adds an icon to the tray which signifies an application that is inactive but ready to be activated. +
++ On the Windows platform, the System tray is usually located on the bottom-right corner of the screen, but it ban be located on other edges for the physical screen. For other operating systems, this position varies according to the window or display manager in use. +
++ TTrayIcon sets the visibility for properties defined in the ancestor class. +
+- Assign copies the contents of - - Source to - - - Self, if the classes of the destination and source classes are -compatible. -
-The TPersistent implementation of Assign does nothing -but calling the AssignTo method of -source. This means that if the destination class does not know how to assign -the contents of the source class, the source class instance is asked to assign -itself to the destination class. This means that it is necessary to -implement only one of the two methods so that two classes can be assigned to -one another. -
-In general, a statement of the form -
-Destination:=Source;
-
- (where Destination and Source are classes) does not -achieve the same as a statement of the form -
-Destination.Assign(Source);
-
- After the former statement, both Source and -Destination will point to the same object. The latter statement -will copy the contents of the Source class to the -Destination class. -
-+ TBandPaintOption is an enumerated type with values that represent the paint options enabled when drawing a TControlBar instance. Values from TBandPaintOption are stored in the TBandPaintOptions type, and passed as an argument to a TBandPaintEvent event handler. +
++ TBandPaintEvent specifies an object procedure used to perform actions needed when a band in TCustomControlBar control is painted. TBandPaintEvent is the type used to implement the OnBandPaint event handler in TCustomControlBar. +
++ Arguments passed to the procedure identify the TCustomControlBar drawn in the band, and the Canvas and drawing rectangle used in the drawing operation. Options define the drawing features enabled for the band. +
++ TRowSize a range type which defines the range of values available for the RowSize property in TCustomControlBar. Essentially, any positive non-zero Integer value. +
++ BandRect is a TRect property which contains the bounds for the band control. BandRect is used in methods which set the layout and placement for the the band control, like InitializeBand and MoveBand. +
++ Values in BandRect are read from the Left, Right, Width, and Height properties in the control. When setting the value for the property, the Left, Right, Width, and Height properties are updated using the values provided in the rectangle. +
++ Control is a TControl property which contains the TToolBar or TToolButton displayed in the band control. The value in Control is assigned in either the Loaded or the InsertControl methods in TCustomControlBar. +
++ ControlHeight is an Integer property which represents the height for the TWinControl in the Control property. The value in ControlHeight is assigned when a TCustomControlBar is aligned to the band control. +
++ The value is updated in the AlignControlToBand method in TCustomControlBar, and provides convenient access to the property value in Control. +
++ The value is updated in the AlignControlToBand method in TCustomControlBar, and provides convenient access to the property value in Control. +
++ Updated and used in the CheckBandsSizeAndVisibility method in TCustomControlBar. +
++ The value is updated in the AlignControlToBand method in TCustomControlBar, and provides convenient access to the property value in Control. +
++ Updated in the InitializeMove method in TCustomControlBar. +
++ Updated in the InitializeMove method in TCustomControlBar. +
++ Updated when a value is assigned to the BandRect property, and in the AlignControlToBand method in TCustomControlBar. +
++ Updated when a value is assigned to the BandRect property, and in the AlignControlToBand method in TCustomControlBar. +
++ Updated when a value is assigned to the BandRect property, and in the AlignControlToBand method in TCustomControlBar. +
++ Updated when a value is assigned to the BandRect property, and in the AlignControlToBand method in TCustomControlBar. +
++ TCtrlBands is a container for TCtrlBand instances. TCtrlBands provides a GetIndex method used to access TCtrlBand items stored in the container by their ordinal positions. +
++ TCustomControlBar is a TCustomPanel descendant used to maintain and manage toolbars and toolbuttons added to the container. +
++ Internally, it uses a TCtrlBands member to represent the TToolBar, TToolButton, or TCoolBar classes added to the container. Use InsertControl and RemoveControl to maintain items in the container at run-time, or use the design-time support provided in the Lazarus Form Designer. +
++ ACursor contains the cursor shape requested in the method. The value in ACursor is translated into one the following cursor constants, and assigned to the Cursor property: +
++ Calls InitializeBand (when needed) for a TCtrlBand with a visibility different than the value in the control bar. Calls SortVisibleBands when a TCtrlBand is hidden. Calls NormalizeRows to display TCtrlBand instances in the order defined by their Bottom property. Recalculates the positions and dimensions for visible TCtrlBand instances, including the space reserved for the Grabber bar and borders. +
++ Overridden to provide support for dragging the control band under the mouse cursor. +
++ Create is the overridden constructor for the class instance. Create allocates resources needed to store the bands for the control bar, and calls the inherited constructor. Creates sets the default values for properties, including: +
++ Resources are allocated for the Picture property, and its OnChange event handler is set to the PictureChanged method. +
++ Creates set the initial bounds for the class instance using a width of 100 pixels, and a height of 50 pixels. +
++ Destroy is the overridden destructor for the class instance. Destroy frees resources allocated to the Picture property, as well as the internal TCtrlBands container. Destroy calls the inherited destructor prior to exit. +
++ InsertControl is an overridden procedure used to create, initialize, and store a TCtrlBand for the specified control. InsertControl calls the method inherited from TWinControl, and creates and stores a new TCtrlBand instance for the control in AControl. +
++ When AutoSize is False, the CheckBandsSizeAndVisibility method is called to Resize the bands in the control bar. When set to False, the inherited method is used. In addition, AutoSize determines if InvalidatePreferredSize is used when setting the value for the RowSize property. +
++ DrawingStyle is a TBandDrawingStyle property which indicates the fill style applied to the control bar. The default value for the property is dsNormal. Set DrawingStyle to dsGradient to draw the control bar using a gradient defined by the values in GradientDirection, GradientStartColor, and GradientEndColor. +
++ GradientDirection is a TGradientDirection property which controls the direction for a gradient drawn on the control bar. The default value for the property is gdVertical. Changing the value for the property causes the Invalidate method to be performed when BeginUpdate has not yet been called. +
++ GradientDirection is used when the DrawingStyle property contains the value dsGradient. Set the values in GradientStartColor and GradientEndColor to define the colors used to draw the gradient. +
++ Picture is a TPicture property which contains an optional image drawn on the client rectangle for the control bar. The image is tiled to fill the client area (if needed) immediately prior to drawing the visible bands for the control bar. +
++ Picture is used in the Paint method. +
++ PictureChanged is assigned as the OnChange event handler for the Picture property in the constructor for the class. +
++ RowSize is a TRowSize property which specifies the height for a row or band displayed on the control bar. The default value for the property is 26. +
++ Changing the value in the property causes the bands for the control bar to be resized and realigned. The Invalidate method will be called to repaint the control if BeginUpdate is not already active. +
++ TControlBar implements a panel used to maintain and manage toolbars and toolbuttons on a form. TControlBar is a TCustomControlBar descendant, and sets the visibility for properties from the ancestor class. +
++ Frame3D is a procedure which provides a wrapper for the Frame3D method in TCanvas. ACanvas is the TCanvas instance used to perform the Frame3D method with the settings in the specified arguments. +
++ Registers components for use in the Lazarus IDE. +
++ Adds the following components to the Standard tab: +
++ Adds the following components to the Additional tab: +
++ Adds the following components to the System tab: +
++ Registers the TPage component as a component with no icon in the component palette. +
+- Multi-PageControls - controls that offer a selection of alternative pages for display
-A number of controls, found in Units ExtCtrls and ComCtrls, offer the ability to create multi-page forms with a series of Tabs along one edge that allow the user to select one of the Pages for display and interaction.
-These include: TPageControl, TNoteBook, TTabControl and THeaderControl (the Header Control components have a very different structure and function). Icons for all of these exist on the Additional or Common Controls tabs of the Component Palette in the Lazarus IDE.
-While the various components may look superficially similar, they differ in properties, inheritance, method of adding additional pages, behavior at run-time, methods for referencing pages and so on.
-We have to be very clear when using the various properties, to distinguish between the word 'Tab' as referring to a Tab indicating an identifier for a page, and 'Tab' as referring to the TAB key on the standard keyboard. In common with most Lazarus components, it is possible to enable each control to be included in the TabOrder of TabStops for a Form, so that the component can be reached by repeated pressing of the TAB key, and we must not confuse this use of 'Tab' with the use to denote a Page.
-The properties CanTab, TabStop and TabOrder refer to the use of the TAB key to navigate to the relevant control.
-Properties such as Tabs, TabIndex, IndexOfTabAt(), TabIndexAtClientPos(), TabPosition, TabHeight, TabWidth, TabVisible, OnCloseTabClicked refer to the use for Page selection.
+ Multi-PageControls - controls that offer a selection of alternative pages for display. +- TTabControl and - - - - - TPageControl are both descended from - - - - - TCustomNoteBook (which is in turn descended from - - - - - TWinControl) and have many inherited properties in common. - - - - - TPageControl has, in general, more advanced features and is probably intended to replace - - - - - TNoteBook.
-The following table summarizes the main differences between the two components.
-Property or method | @@ -5072,10 +7674,7 @@ will copy the contents of the Source class to the | String, TPage | - TTabSheet, a more advanced version of - - - TPage + TTabSheet, a more advanced version of TPage | |
- ActivePageIndex, - - - TabIndex + ActivePageIndex, TabIndex | ||||
- TabVisible in - - - TTabSheet + TabVisible in TTabSheet | ||||
Hints | No Hinting methods | - ShowHint, - - - ParentShowHint + ShowHint, ParentShowHint | ||
Font | No Font properties | - Font, - - - ParentFont + Font, ParentFont | ||
Sensing position of Tab | None | - TabPosition, - - - OnGetSiteInfo + TabPosition, OnGetSiteInfo | ||
Options | -Published property Options, include nboShowCloseButtons, nboMultiLine + | + Published property Options, include nboShowCloseButtons, nboMultiLine + | ++ No published Options property, but inherits Options (public property) from TCustomNoteBook, so they could be set explicitly in code | -No published Options property, but inherits Options (public property) from TCustomNoteBook, so they could be set explicitly in code |
The individual Pages in both of the above controls (descended from TCustomNoteBook) are separate and can have their own specific collections of widgets which appear only when the relevant Page is selected by its Tab.
-In contrast, the TTabControl component (descended from TCustomTabControl) has only one display area (Protected property DisplayRect), but the image displayed in it is determined by which tab has been selected. Each Tab has an index value which is used to select the appropriate image from an indexed ImageList and display it in the Display Rectangle.
-The properties of the Tabs in TTabControl are very configurable compared with those in the controls derived from TCustomNoteBook, allowing for instance the creation of multi-line captions, the placement of images on Tabs, the possibility of the Owner routine determining the drawing of the tab, the configuration of Tab size, the selection of multiple tabs. The trade-off is that the display area is restricted in what it can display, and is essentially confined to display of images.
-To use any of the above controls, select them from the relevant tab on the IDE Component Palette and drop them on the form in the required position. Fill in as many relevant properties as you can in the Object Inspector.
-To add Tabs or Pages to the controls, select the control with a left mouse click or by selecting from the Component menu in the Object Inspector, then right-click on the component to get a pop-up menu, whose first item will be 'Add Page' or 'Add Tab'.
-The Tabs in TTabControl can be edited by selecting 'Tabs' in the Object Inspector, clicking on the ellipsis (...) and using the string editor that pops up.
-The pages inTNoteBook or TPageControl can be edited by selecting the ActivePage in the Object Inspector and then editing the properties of the individual page.
- THeaderControl offers a widget that could be placed along the edge of a Panel or Form, allowing a highly customized mechanism for selection. However, there are no intrinsically associated display areas, and it is the developer's responsibility to supply an index associated with the selection from the - - - - - THeaderControl and determining what action is to occur or what is to be displayed in any attached Panel or Form.
-When the control is first selected from the Component Palette and placed on a Form, it consists of an unadorned rectangle. However, selecting the control and right-clicking (or selecting the 'Sections' property in the Object Inspector) gives access to a Sections editor (a StringList editor) and Sections can be added to the control. The sections are separated by vertical lines, and each section can have a string inserted as a label, associated with an Index value. The Sections can be rearranged, re-ordered, or be individually painted.
-In a typical application a THeaderControl and a TPanel or TForm would be docked together, and code would be written to find which Section of the Header had been selected, then use its index to control the display in the other docked control.
+ The individual Pages in both of the above controls (descended from TCustomNoteBook) are separate and can have their own specific collections of widgets which appear only when the relevant Page is selected by its Tab. + ++ In contrast, the TTabControl component (descended from TCustomTabControl) has only one display area (Protected property DisplayRect), but the image displayed in it is determined by which tab has been selected. Each Tab has an index value which is used to select the appropriate image from an indexed ImageList and display it in the Display Rectangle. +
++ The properties of the Tabs in TTabControl are very configurable compared with those in the controls derived from TCustomNoteBook, allowing for instance the creation of multi-line captions, the placement of images on Tabs, the possibility of the Owner routine determining the drawing of the tab, the configuration of Tab size, the selection of multiple tabs. The trade-off is that the display area is restricted in what it can display, and is essentially confined to display of images. +
++ To use any of the above controls, select them from the relevant tab on the IDE Component Palette and drop them on the form in the required position. Fill in as many relevant properties as you can in the Object Inspector. +
++ To add Tabs or Pages to the controls, select the control with a left mouse click or by selecting from the Component menu in the Object Inspector, then right-click on the component to get a pop-up menu, whose first item will be 'Add Page' or 'Add Tab'. +
++ The Tabs in TTabControl can be edited by selecting 'Tabs' in the Object Inspector, clicking on the ellipsis (...) and using the string editor that pops up. +
++ The pages inTNoteBook or TPageControl can be edited by selecting the ActivePage in the Object Inspector and then editing the properties of the individual page. +
++ THeaderControl offers a widget that could be placed along the edge of a Panel or Form, allowing a highly customized mechanism for selection. However, there are no intrinsically associated display areas, and it is the developer's responsibility to supply an index associated with the selection from the THeaderControl and determining what action is to occur or what is to be displayed in any attached Panel or Form. +
++ When the control is first selected from the Component Palette and placed on a Form, it consists of an unadorned rectangle. However, selecting the control and right-clicking (or selecting the 'Sections' property in the Object Inspector) gives access to a Sections editor (a StringList editor) and Sections can be added to the control. The sections are separated by vertical lines, and each section can have a string inserted as a label, associated with an Index value. The Sections can be rearranged, re-ordered, or be individually painted. +
++ In a typical application a THeaderControl and a TPanel or TForm would be docked together, and code would be written to find which Section of the Header had been selected, then use its index to control the display in the other docked control. +
- -Use TFloatPanel if you need a container with float layout. - The Anchors and Align properties of child controls are ignored. -
The floating direction is determined with - FlowStyle property.
-