mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:34:01 +02:00
5195 lines
172 KiB
XML
5195 lines
172 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus
|
|
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0
|
|
International public license.
|
|
|
|
https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
|
|
file://../../cc-by-sa-4-0.txt
|
|
|
|
Copyright (c) 1997-2023, by the Lazarus Development Team.
|
|
|
|
-->
|
|
<fpdoc-descriptions>
|
|
<package name="lcl">
|
|
<!-- Buttons -->
|
|
<module name="Buttons">
|
|
<short>
|
|
Contains types and classes used to implement specialized buttons.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<file>buttons.pp</file> contains classes, types, and routines used to
|
|
implements specialized button controls. It registers the following components
|
|
in the Lazarus IDE component palette:
|
|
</p>
|
|
<p>
|
|
<b>Additional</b> Tab
|
|
</p>
|
|
<ul>
|
|
<li>TBitBtn</li>
|
|
<li>TSpeedButton</li>
|
|
</ul>
|
|
<p>
|
|
<file>buttons.pp</file> is part of the Lazarus Component Library (<b>LCL</b>).
|
|
</p>
|
|
</descr>
|
|
|
|
<!-- unresolved references -->
|
|
<element name="Types"/>
|
|
<element name="Classes"/>
|
|
<element name="SysUtils"/>
|
|
<element name="Math"/>
|
|
<element name="LCLType"/>
|
|
<element name="LCLProc"/>
|
|
<element name="LCLIntf"/>
|
|
<element name="LCLStrConsts"/>
|
|
<element name="LResources"/>
|
|
<element name="Graphics"/>
|
|
<element name="ImgList"/>
|
|
<element name="ActnList"/>
|
|
<element name="Controls"/>
|
|
<element name="StdCtrls"/>
|
|
<element name="LMessages"/>
|
|
<element name="Forms"/>
|
|
<element name="Themes"/>
|
|
<element name="Menus"/>
|
|
<element name="ImageListCache"/>
|
|
<element name="GraphType"/>
|
|
<element name="LazUtilities"/>
|
|
|
|
<element name="TButtonLayout">
|
|
<short>
|
|
Enumerated type which defines the position for a glyph on a button.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>TButtonLayout</var> is an enumerated type which contains constants that
|
|
define the position for a glyph on a button. It is used to implement the
|
|
<var>Layout</var> property in <var>TBitBtn</var> and <var>TSpeedButton</var>
|
|
classes. It is also used to control the layout of images drawn in the columns
|
|
for <var>TGrid</var> and <var>TStringGrid</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TBitBtn.Layout"/>
|
|
<link id="TSpeedButton.Layout"/>
|
|
<link id="#lcl.grids.TCustomGrid">TCustomGrid</link>
|
|
<link id="#lcl.grids.TCustomStringGrid">TCustomStringGrid</link>
|
|
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
|
|
<link id="#lcl.grids.TGridColumnTitle.ImageLayout">TGridColumnTitle.ImageLayout</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonLayout.blGlyphLeft">
|
|
<short>Image is drawn aligned to the left.</short>
|
|
</element>
|
|
<element name="TButtonLayout.blGlyphRight">
|
|
<short>Image is drawn aligned to the right.</short>
|
|
</element>
|
|
<element name="TButtonLayout.blGlyphTop">
|
|
<short>Image is drawn aligned to the top.</short>
|
|
</element>
|
|
<element name="TButtonLayout.blGlyphBottom">
|
|
<short>Image is drawn aligned to the bottom.</short>
|
|
</element>
|
|
|
|
<element name="TButtonState">
|
|
<short>A set of constants to define the state of a SpeedButton.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TButtonState</var> is an enumerated type with constants that define the
|
|
drawing state for a button. <var>TButtonState</var> is the type used to
|
|
implement the internal State member in <var>TCustomSpeedButton</var>. It is
|
|
also used to access bitmap images in <var>TButtonGlyph</var> drawn for the
|
|
corresponding state using its Draw method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Draw"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonState.bsUp">
|
|
<short>Draw the button in its up state.</short>
|
|
</element>
|
|
<element name="TButtonState.bsDisabled">
|
|
<short>Draw the button in its disabled state.</short>
|
|
</element>
|
|
<element name="TButtonState.bsDown">
|
|
<short>Draw the button in its down state.</short>
|
|
</element>
|
|
<element name="TButtonState.bsExclusive">
|
|
<short>Draw the button as the only one down in its group.</short>
|
|
</element>
|
|
<element name="TButtonState.bsHot">
|
|
<short>
|
|
Draw the button when the mouse cursor is hovered over the control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TNumGlyphs">
|
|
<short>Defines the range of values available to access button glyphs.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TNumGlyphs</var> is an <var>Integer</var> range constant which defines
|
|
the minimum and maximum number of glyphs available for buttons.
|
|
<var>TNumGlyphs</var> is the type used to implement the <var>NumGlyphs</var>
|
|
property in <var>TButtonGlyph</var>, <var>TCustomBitBtn</var>, and
|
|
<var>TCustomSpeedButton</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
<link id="TCustomBitBtn.NumGlyphs"/>
|
|
<link id="TCustomSpeedButton.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TGlyphTransparencyMode">
|
|
<short>
|
|
Enumerated type with transparency mode values for button glyphs.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>TGlyphTransparencyMode</var> is an enumerated type which contains values
|
|
representing the transparency modes used for button glyphs.
|
|
TGlyphTransparencyMode is the type used to implement the
|
|
<var>TransparentMode</var> property in <var>TButtonGlyph</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.TransparentMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TGlyphTransparencyMode.gtmGlyph">
|
|
<short>Transparency is defined in the glyph.</short>
|
|
</element>
|
|
<element name="TGlyphTransparencyMode.gtmOpaque">
|
|
<short>Transparent is not used, as defined by the owner of the glyph.</short>
|
|
</element>
|
|
<element name="TGlyphTransparencyMode.gtmTransparent">
|
|
<short>Glyph is drawn with transparency.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph">
|
|
<short>Represents an image that can be attached to a button.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TButtonGlyph</var> is a <var>TObject</var> descendant used to represent
|
|
the image with the symbol or pictograph displayed on a button, or in a column
|
|
in a grid. Use the properties and methods in the class to specify the image
|
|
displayed in the glyph, and the display settings required for the image.
|
|
</p>
|
|
<p>
|
|
<var>Images</var> and <var>ExternalImages</var> are image lists with the
|
|
content that can be displayed in the glyph. <var>Glyph</var> contains the
|
|
bitmap, scaled to the necessary display density, used in the class instance.
|
|
<var>Width</var> and <var>Height</var> represent the dimensions for the
|
|
<var>Glyph</var>.
|
|
</p>
|
|
<p>
|
|
<var>ShowMode</var> determines when the image is displayed, just like its
|
|
usage in <var>TMenu</var> and <var>TMenuItem</var>.
|
|
</p>
|
|
<p>
|
|
<var>TransparentMode</var> indicates whether the glyph image is drawn with
|
|
transparency, as works in conjunction with the <var>Transparent</var>
|
|
property in the parent control.
|
|
</p>
|
|
<p>
|
|
<var>TButtonGlyph</var> implements the <var>IImageCacheListener</var>
|
|
interface used to provide support for cached images in <var>TImageList</var>.
|
|
<var>TButtonGlyph</var> also implements the <var>IUnknown</var> interface to
|
|
support the <var>QueryInterface</var> method and reference counting.
|
|
</p>
|
|
<p>
|
|
<var>TButtonGlyph</var> is the type used to implement the
|
|
<var>ButtonGlyph</var> property in <var>TCustomBitBtn</var> and
|
|
<var>TCustomSpeedButton</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="#lcl.menus.TMenu">TMenu</link>
|
|
<link id="#lcl.menus.TMenuItem">TMenuItem</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.FIsDesigning"/>
|
|
<element name="TButtonGlyph.FShowMode"/>
|
|
<element name="TButtonGlyph.FImageIndexes"/>
|
|
<element name="TButtonGlyph.FImages"/>
|
|
<element name="TButtonGlyph.FExternalImages"/>
|
|
<element name="TButtonGlyph.FExternalImageIndexes"/>
|
|
<element name="TButtonGlyph.FExternalImageWidth"/>
|
|
<element name="TButtonGlyph.FLCLGlyphResourceName"/>
|
|
<element name="TButtonGlyph.FOriginal"/>
|
|
<element name="TButtonGlyph.FNumGlyphs"/>
|
|
<element name="TButtonGlyph.FOnChange"/>
|
|
<element name="TButtonGlyph.FImagesCache"/>
|
|
<element name="TButtonGlyph.FTransparentMode"/>
|
|
<element name="TButtonGlyph.FLCLGlyphName"/>
|
|
|
|
<element name="TButtonGlyph.GetExternalImageIndex">
|
|
<short>Gets the value for the ExternalImageIndex property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GetExternalImageIndex.Result">
|
|
<short>Value for the ExternalImageIndex property.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetExternalImageIndex.AState">
|
|
<short>
|
|
Ordinal position in the array of image indexes accessed for the property
|
|
value.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.GetHeight">
|
|
<short>Gets the value for the Height property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Height"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GetHeight.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.GetNumGlyphs">
|
|
<short>Gets the value for the NumGlyphs property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GetNumGlyphs.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.GetWidth">
|
|
<short>Gets the value for the Width property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Width"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GetWidth.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ResetExternalImageIndexes">
|
|
<short>
|
|
Initializes values in the internal array of image indexes used in property
|
|
values.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Sets all byte values in the storage for an internal array of image indexes to
|
|
the value $FF. Called from the Create constructor, and when a new bitmap is
|
|
assigned to the Glyph property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Create"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetExternalImageIndex">
|
|
<short>Sets the value for the ExternalImageIndex property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetExternalImageIndex.AState">
|
|
<short>
|
|
Ordinal position in the array of image indexes updated with the new value for
|
|
the property.
|
|
</short>
|
|
</element>
|
|
<element name="TButtonGlyph.SetExternalImageIndex.AExternalImageIndex">
|
|
<short>New value for the ExternalImageIndex property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetExternalImages">
|
|
<short>Sets the value for the ExternalImages property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.SetExternalImages"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetExternalImages.AExternalImages">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetExternalImageWidth">
|
|
<short>Sets the value for the ExternalImageWidth property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImageWidth"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetExternalImageWidth.AExternalImageWidth">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetGlyph">
|
|
<short>Sets the value for the Glyph property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetGlyph.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetNumGlyphs">
|
|
<short>Sets the value for the NumGlyphs property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetNumGlyphs.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetShowMode">
|
|
<short>Sets the value for the ShowMode property.</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ShowMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetShowMode.AValue">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ClearImages">
|
|
<short>Removes the references to Images for the button states.</short>
|
|
<descr>
|
|
<p>
|
|
<var>ClearImages</var> is a procedure used to remove index references to
|
|
Images used for button states in the glyph. ClearImages sets the values in an
|
|
internal member to -1 to indicate that the image for the corresponding
|
|
TButtonState is not used.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.SetImageIndex"/>
|
|
<link id="TButtonGlyph.SetExternalImageIndex"/>
|
|
<link id="TButtonGlyph.CanShowGlyph"/>
|
|
<link id="TButtonState"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ClearLCLGlyph">
|
|
<short>
|
|
Removes the name for the LCL Glyph resource used in the class instance.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetLCLGlyphName">
|
|
<short>
|
|
Sets the value for the LCLGlyphName property.
|
|
</short>
|
|
<descr/>
|
|
<seealso>
|
|
<link id="TButtonGlyph.LCLGlyphName"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetLCLGlyphName.ALCLGlyphName">
|
|
<short>New value for the LCLGlyphName property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.QueryInterface">
|
|
<short>Implements the method from IUnknown.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.QueryInterface.iid">
|
|
<short>Interface identifier for the specified object.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.QueryInterface.obj">
|
|
<short>Object examined for the specified interface.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph._AddRef">
|
|
<short>Implements the method from IUnknown.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TButtonGlyph._AddRef.Result">
|
|
<short>Always contains -1.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph._Release">
|
|
<short>Implements the method from IUnknown.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TButtonGlyph._Release.Result">
|
|
<short>Always contains -1.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.CacheSetImageList">
|
|
<short>Stores the specified Image list in the Images property.</short>
|
|
<descr>
|
|
<p>
|
|
Implements the <var>IImageCacheListener</var> interface method used to
|
|
receive changes to the cached image list. Stores the image list specified in
|
|
<var>AImageList</var> to the <var>Images</var> property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Images"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.CacheSetImageList.AImageList">
|
|
<short>Image list stored to the Images property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.CacheSetImageIndex">
|
|
<short>
|
|
Sets the button state for the image in AIndex to the value specified in
|
|
AImageIndex.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.CacheSetImageIndex.AIndex">
|
|
<short>Position of the Button state applied to the specified image.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.CacheSetImageIndex.AImageIndex">
|
|
<short>Position of the Image updated in the method.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.CanShow">
|
|
<short>Indicates if the glyph image can be drawn for the button glyph.</short>
|
|
<descr>
|
|
<p>
|
|
<var>CanShow</var> is a <var>Boolean</var> function which indicates if the
|
|
glyph can be drawn for the button glyph. The return value is determined by
|
|
examining the value in the <var>ShowMode</var> property. Values in the
|
|
TGlyphShowMode enumeration determine the return value using the following
|
|
logic:
|
|
</p>
|
|
<dl>
|
|
<dt>gsmAlways</dt>
|
|
<dd>Return value is <b>True</b></dd>
|
|
<dt>gsmNever</dt>
|
|
<dd>Return value is <b>False</b></dd>
|
|
<dt>gsmApplication</dt>
|
|
<dd>
|
|
Uses the Application.ShowButtonGlyphs property to determine the return value
|
|
</dd>
|
|
<dt>gsmSystem</dt>
|
|
<dd>Uses the value from SystemShowButtonGlyphs as the return value</dd>
|
|
</dl>
|
|
<remark>
|
|
The return value is always <b>True</b> at design-time.
|
|
</remark>
|
|
<p>
|
|
Use CanShowGlyph to determine if an image is available to be drawn on the
|
|
button.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ShowMode"/>
|
|
<link id="TGlyphShowMode"/>
|
|
<link id="TButtonGlyph.CanShowGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.CanShow.Result">
|
|
<short><b>True</b> when the glyph can be displayed on the button.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.CanShowGlyph">
|
|
<short>Determines if an image is available for the button glyph.</short>
|
|
<descr>
|
|
<p>
|
|
CanShowGlyph is a Boolean function used to determine if an image is available
|
|
for the button glyph. The return value is <b>True</b> when an image has been
|
|
specified using one of the following mechanisms (in the order of precedence):
|
|
</p>
|
|
<ul>
|
|
<li>Images is assigned and contains valid button state images</li>
|
|
<li>LCLGlyphName contains a non-empty resource name</li>
|
|
<li>ExternalImages is assigned and contains a valid ExternalImageIndex
|
|
value</li>
|
|
</ul>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.LCLGlyphName"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.CanShowGlyph.Result">
|
|
<short><b>True</b> when a glyph image is available.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.DoChange">
|
|
<short>
|
|
Performs actions needed when the glyph image has been changed for the class
|
|
instance.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>DoChange</var> is a procedure used to performs actions needed when the
|
|
glyph image has been changed for the class instance. <var>DoChange</var>
|
|
signals the <var>OnChange</var> event handler (when assigned).
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
<link id="TButtonGlyph.GlyphChanged"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.GlyphChanged">
|
|
<short>
|
|
Provides a default implementation for the OnChange event handler.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
GlyphChanged is procedure which provides the default implementation for the
|
|
OnChange event handler. Sender is the TObject instance for the change
|
|
notification, and normally receives a reference to the current TButtonGlyph
|
|
class instance.
|
|
</p>
|
|
<p>
|
|
GlyphChanged ensures that the internal ImagesCache member is set to
|
|
<b>Nil</b>, and the ClearImages methods is called to remove images stored in
|
|
the Images property. When CanShow returns <b>True</b>, the internal
|
|
ImagesCache member is re-populated and registered to listen for changes to
|
|
the Glyph property.
|
|
</p>
|
|
<p>
|
|
GlyphChanged is assigned to the OnChange event handler when the class
|
|
instance is created, and when a bitmap is assigned to the Glyph property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
<link id="TButtonGlyph.CanShow"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.Create"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GlyphChanged.Sender">
|
|
<short>Button glyph for the change notification.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.SetTransparentMode">
|
|
<short>Sets the value for the TransparentMode property.</short>
|
|
<descr>
|
|
<p>
|
|
<var>SetTransparentMode</var> is a procedure used to set the value in the
|
|
<var>TransparentMode</var> property to the specified
|
|
<var>TGlyphTransparencyMode</var> value. <var>SetTransparentMode</var>
|
|
ensures that the bitmap in the <var>Glyph</var> property is updated to use
|
|
the same transparency mode.
|
|
</p>
|
|
<remark>
|
|
<var>SetTransparentMode</var> is <b>not</b> the write access specifier for
|
|
<var>TransparentMode</var>, which is a read-only property.
|
|
</remark>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.TransparentMode"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TGlyphTransparencyMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.SetTransparentMode.AValue">
|
|
<short>Value stored in the TransparentMode property.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.TransparentMode">
|
|
<short>Indicates the transparency mode used to render the glyph image.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TransparentMode</var> is a read-only <var>TGlyphTransparencyMode</var>
|
|
property used to indicate the transparency mode applied when the glyph image
|
|
is drawn.
|
|
</p>
|
|
<p>
|
|
Use <var>SetTransparentMode</var> to change the value for the property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.SetTransparentMode"/>
|
|
<link id="TGlyphTransparencyMode"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Create">
|
|
<short>
|
|
<var>Create</var> - constructor for <var>TButtonGlyph</var>: frees the Images
|
|
cache then creates a Glyph Bitmap.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
If you drop a component on the form in the form editor, you don't need to add
|
|
code to explicitly create it. The component is automatically created together
|
|
with the the form, and destroyed when the form is destroyed.
|
|
</p>
|
|
<p>
|
|
However, if you create the component by code, don't forget to free it when it
|
|
is no longer needed. Constructors allocate memory and system resources needed
|
|
by the object. They also call the constructor for any sub-objects present in
|
|
the class.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Destroy">
|
|
<short>
|
|
<var>Destroy</var> - destructor for <var>TButtonGlyph</var>: frees caches and
|
|
calls inherited <var>Destroy</var>.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
If you call <var>Destroy</var> for an object which hasn't been initialized
|
|
yet, it will generate an error. Always use the <var>Free</var> method to
|
|
deallocate objects, because it verifies that the object does not contain the
|
|
value <b>Nil</b>.
|
|
</p>
|
|
<p>
|
|
Take the following precautions when creating your own <var>Destroy</var>
|
|
method:
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
Declare <var>Destroy</var> with the override directive, because it is a
|
|
virtual method.
|
|
</li>
|
|
<li>
|
|
Always call the inherited <var>Destroy</var> method as the last action in the
|
|
destructor code.
|
|
</li>
|
|
<li>
|
|
An exception may be raised in the constructor if there is not enough memory
|
|
to create an object, or something else goes wrong. If the exception is not
|
|
handled inside the constructor, the object will be only partially built. In
|
|
this case <var>Destroy</var> will be called, so your destructor must check if
|
|
the resources were really allocated before the are released.
|
|
</li>
|
|
<li>
|
|
Remember to call <var>Free</var> for all objects created on the constructor.
|
|
</li>
|
|
</ul>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#rtl.system.TObject.Destroy">TObject.Destroy</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect">
|
|
<short>
|
|
Gets the index for a button image using a given state, and the effect used to
|
|
draw it.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetImageIndexAndEffect</var> is a procedure used to get the ordinal
|
|
position for the image used to render the <var>Glyph</var> for the class
|
|
instance. In addition, it returns the image resolution for the specified
|
|
display density and the drawing effect for the button <var>State</var>.
|
|
</p>
|
|
<p>
|
|
<var>GetImageIndexAndEffect</var> uses <var>ThemeServices</var> to determine
|
|
if drawing effects are automatically applied to glyph images, and captures
|
|
the effect in the <var>AEffect</var> output argument.
|
|
</p>
|
|
<p>
|
|
<var>GetImageIndexAndEffect</var> determines the image source and the ordinal
|
|
position for the image used for the button glyph. <var>ExternalImages</var>
|
|
and <var>ExternalImageIndex</var> are used (when assigned). The next
|
|
available source is the resource name specified in
|
|
<var>LCLGlyphResourceName</var> (when specified). Finally, the
|
|
<var>Images</var> property is used (when assigned). When the image source has
|
|
been determined, the correct image resolution for the value in
|
|
<var>APPI</var> is selected and stored in <var>AImageResolution</var>.
|
|
<var>ImageIndexes</var> is used to get the position for the image with the
|
|
specified button <var>State</var>.
|
|
</p>
|
|
<p>
|
|
<var>GetImageIndexAndEffect</var> is used in in the implementation of the
|
|
<var>Draw</var> method in <var>TButtonGlyph</var>, and in the
|
|
<var>GetGlyphSize</var> method in <var>TCustomSpeedButton</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.LCLGlyphName"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.Draw"/>
|
|
<link id="TCustomSpeedButton.GetGlyphSize"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.State">
|
|
<short>Drawing state for the button glyph.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.APPI">
|
|
<short>
|
|
Pixels per inch for the image resolution with the button glyphs.
|
|
</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.ACanvasScaleFactor">
|
|
<short>Canvas scaling factor applied to the image resolution.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.AImageResolution">
|
|
<short>Returns the scaled image resolution with the button glyphs.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.AIndex">
|
|
<short>
|
|
Returns the index for the glyph image selected from Images or LCL glyph
|
|
resources
|
|
</short>
|
|
</element>
|
|
<element name="TButtonGlyph.GetImageIndexAndEffect.AEffect">
|
|
<short>
|
|
Returns the drawing effect needed for the glyph image with the specified
|
|
state.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Draw">
|
|
<short>
|
|
Draws the glyph for the button using the specified settings and state.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Draw</var> is a method used to draw the glyph for the button using the
|
|
target and configuration specified in the arguments. Draw is overloaded to
|
|
provide a variant which uses a scaling factor for the glyph image.
|
|
</p>
|
|
<p>
|
|
<var>Canvas</var> is the TCanvas instance where the glyph is rendered.
|
|
</p>
|
|
<p>
|
|
<var>Client</var> is a TRectangle instance with the client coordinates for
|
|
the drawing operation.
|
|
</p>
|
|
<p>
|
|
<var>Offset</var> is a TPoint instance which contains the offset where the
|
|
glyph is drawn in the Client rectangle.
|
|
</p>
|
|
<p>
|
|
<var>State</var> contains the button drawing state and is used to get both
|
|
the glyph image and graphic drawing effect applied in the method.
|
|
</p>
|
|
<p>
|
|
<var>Transparent</var> indicates if the glyph is draw transparently.
|
|
</p>
|
|
<p>
|
|
<var>PPI</var> indicates the display density for the image resolution
|
|
requested in the method.
|
|
</p>
|
|
<p>
|
|
<var>ScaleFactor</var> is the canvas scaling factor applied when the image is
|
|
drawn.
|
|
</p>
|
|
<p>
|
|
Images used for button glyphs can be loaded from three (3) different sources.
|
|
</p>
|
|
<ul>
|
|
<li>LCLGlyphResourceName property</li>
|
|
<li>ExternalImages property</li>
|
|
<li>Images property</li>
|
|
</ul>
|
|
<p>
|
|
By default, the LCL Glyph resource is used when the button is created.
|
|
Setting values for the corresponding properties changes the source for the
|
|
glyph image.
|
|
</p>
|
|
<p>
|
|
Draw calls <var>GetImageIndexAndEffect</var> to get the image resolution
|
|
needed for the value in PPI, and the index for the image drawn in the method.
|
|
The <var>TScaledImageListResolution.Draw</var> method is called to render the
|
|
selected glyph in the resolution to the Canvas using the Client, Offset, and
|
|
derived graphics drawing effect.
|
|
</p>
|
|
<p>
|
|
No actions are performed in the method when an bitmap has not been assigned
|
|
to the Glyph property, when the coordinates in Client are invalid, or when an
|
|
image resolution / image index was not found.
|
|
</p>
|
|
<p>
|
|
The return value is a TRectangle instance with the original value passed in
|
|
Client. Please note, this is different than the Delphi VCL; it returns the
|
|
text rectangle.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.LCLGlyphName"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
|
|
<link id="#lcl.imglist.TScaledImageListResolution">TScaledImageListResolution</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.Result">
|
|
<short>Rectangle where the glyph was drawn.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.Canvas">
|
|
<short>Canvas where the glyph is rendered.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.Client">
|
|
<short>Client coordinates for the drawing operation.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.Offset">
|
|
<short>Offset in the client coordinates where the glyph is drawn.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.State">
|
|
<short>Button state.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.Transparent">
|
|
<short><b>True</b> if the glyph is drawn transparently.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.BiDiFlags">
|
|
<short>Not used in the current implementation.</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.PPI">
|
|
<short>
|
|
Pixels Per Inch for the image resolution requested in the method.
|
|
</short>
|
|
</element>
|
|
<element name="TButtonGlyph.Draw.ScaleFactor">
|
|
<short>Canvas scaling factor used in the method.</short>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Refresh">
|
|
<short>Updates the button glyph after changes to property values.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Glyph">
|
|
<short>The bitmap image drawn as the glyph on the button.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Glyph</var> is a <var>TBitmap</var> property with the bitmap image drawn
|
|
as the glyph for the class instance. The value in Glyph is created/loaded
|
|
when a bitmap is assigned directly to the property, or when loaded from a
|
|
Lazarus resource or stock icon.
|
|
</p>
|
|
<p>
|
|
Assigning a new TBitmap value to Glyph causes the reference in
|
|
<var>ExternalImages</var> to be discarded. The <var>GlyphChanged</var> method
|
|
is assigned to the <var>OnChange</var> event handler in the bitmap to track
|
|
changes to the image. If the Bitmap contains multiple adjacent images
|
|
(determined using Width and Height), the <var>NumGlyphs</var> property is
|
|
updated to contain the number of glyphs stored in the bitmap. The
|
|
<var>Refresh</var> method is called to update the button glyph following
|
|
changes to its property values.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.GlyphChanged"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
<link id="TButtonGlyph.Refresh"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.IsDesigning">
|
|
<short>
|
|
Indicates whether change notifications are suppressed while editing property
|
|
values.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>IsDesigning</var> is a <var>Boolean</var> property which indicates
|
|
whether change notifications are suppressed while editing property values for
|
|
the button glyph. The default value for the property is <b>False</b>, as
|
|
assigned in the <var>Create</var> constructor.
|
|
</p>
|
|
<p>
|
|
Set <var>IsDesigning</var> to <b>True</b> to prevent calls to the
|
|
<var>Refresh</var> method following a change to the <var>ShowMode</var>
|
|
property, or when getting/setting the image for the button <var>Glyph</var>.
|
|
Controls which use <var>TButtonGlyph</var>, like <var>TBitBtn</var> and
|
|
<var>TSpeedButton</var>, will update the property to indicate whether the
|
|
<var>ComponentState</var> for the control includes the <var>csDesigning</var>
|
|
enumeration value. This has the net effect of disabling <var>OnChange</var>
|
|
notifications at design-time.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ShowMode"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
<link id="TButtonGlyph.Create"/>
|
|
<link id="TBitBtn"/>
|
|
<link id="TSpeedButton"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.NumGlyphs">
|
|
<short>The number of glyphs available for button states.</short>
|
|
<descr>
|
|
<p>
|
|
<var>NumGlyphs</var> is a <var>TNumGlyphs</var> property which indicates the
|
|
number of glyphs available for its button states. The default value for the
|
|
property is <b>1</b> (the low value for the range), and indicates that a
|
|
single image is used for all button states in the <var>TButtonGlyph</var>.
|
|
</p>
|
|
<p>
|
|
The value in <var>NumGlyphs</var> is updated when a <var>TBitmap</var>
|
|
instance is directly assigned to the <var>Glyph</var> property, and when
|
|
<var>GetImageIndexAndEffect</var> retrieves the Images and drawing effect(s)
|
|
for a given display density (PPI).
|
|
</p>
|
|
<p>
|
|
Reading the value in <var>NumGlyphs</var> causes the
|
|
<var>ExternalImages</var> property to be examined; when it is assigned, the
|
|
value for the property is always <b>1</b> (corresponding to the
|
|
<var>ExternalImageIndex</var>). Otherwise, the value in the internal member
|
|
is used.
|
|
</p>
|
|
<p>
|
|
Changing the value in <var>NumGlyphs</var> causes the <var>Refresh</var>
|
|
method to be called.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.Refresh"/>
|
|
<link id="TNumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Images">
|
|
<short>The list of available images for the button glyph.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Images</var> is a read-only <var>TCustomImageList</var> property which
|
|
contains the images available for the <var>Glyph</var> in the class instance.
|
|
The values in Images come from ExternalImages (when an image list has been
|
|
assigned to its button control). The values may come from the list of bitmaps
|
|
loaded from the glyph resource with the name in LCLGlyphName.
|
|
</p>
|
|
<p>
|
|
ExternalImages (when assigned) is used as the source for the Images in the
|
|
class instance. The images with the resolution needed for the display density
|
|
(PPI) are scaled to the <var>ExternalImageWidth</var> and stored in Images.
|
|
<var>LCLGlyphName</var> (when assigned) is used to retrieve a resource in
|
|
LCLGlyphs when ExternalImages are unassigned.
|
|
</p>
|
|
<p>
|
|
See <link id="TButtonGlyph.GetImageIndexAndEffect"/> for more information
|
|
about image retrieval for the button glyph with a given state.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.LCLGlyphName"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalImageWidth"/>
|
|
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.LCLGlyphName">
|
|
<short>
|
|
Stores the standard LCL resource name used for the Glyph in the class
|
|
instance.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>LCLGlyphName</var> is a <var>String</var> property used to store the
|
|
name for the LCL resource used as the <var>Glyph</var> for the class
|
|
instance. Changing the value in LCLGlyphName causes existing entries in
|
|
<var>Images</var> and <var>ExternalImages</var> to be removed, and the
|
|
<var>OnChange</var> event handler to be signalled. The Image lists are not
|
|
modified when the property is set to an empty string (<b>''</b>).
|
|
</p>
|
|
<p>
|
|
LCLGlyphName normally contains a value like those in
|
|
<var>BitBtnResNames</var>, and represents a standard resource name used in
|
|
the LCL.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalImageWidth"/>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
<link id="BitBtnResNames"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalImages">
|
|
<short>
|
|
Contains a reference to an external list of images that can be used as the
|
|
Glyph image,
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ExternalImages</var> is a <var>TCustomImageList</var> property with the
|
|
list of images that can be displayed as a glyph for the class instance.
|
|
ExternalImages represents an image list assigned to the Images property for a
|
|
button control, like TBitBtn or TSpeedButton. The image list contains bitmaps
|
|
displayed for the various states for an associated button; i. e. Up, Pressed,
|
|
Hot, Disabled, or Selected. The image used for a given button state is
|
|
indicated in the properties: ExternalImageIndex, ExternalHotImageIndex,
|
|
ExternalDisabledImageIndex, ExternalPressedImageIndex, and
|
|
ExternalSelectedImageIndex.
|
|
</p>
|
|
<p>
|
|
Values in ExternalImages are used when a glyph bitmap has not been allocated
|
|
in the Glyph property.
|
|
Setting a new value for ExternalImages causes the Glyph property to be
|
|
cleared, and the OnChange event handler is signalled. Conversely, setting a
|
|
value for the LCLGlyphName property causes the reference in ExternalImages to
|
|
be discarded.
|
|
</p>
|
|
<p>
|
|
Bitmaps in ExternalImages (or Glyph) are stored in the Images property, and
|
|
used in the GetImageIndexAndEffect method to determine the image resolution
|
|
and bitmap used for the glyph and the button state.
|
|
</p>
|
|
<p>
|
|
Use ExternalImageWidth to specify the Width of the images in the
|
|
ExternalImages container.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalHotImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalImageWidth"/>
|
|
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
<link id="TButtonGlyph.GlyphChanged"/>
|
|
<link id="TButtonGlyph.CanShowGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalImageWidth">
|
|
<short>Width for the images in the ExternalImages property.</short>
|
|
<descr>
|
|
<p>
|
|
<var>ExternalImageWidth</var> is an <var>Integer</var> property with the
|
|
Width for the images in the ExternalImages property. The property value is
|
|
used to determine the image resolution needed for the Images displayed in the
|
|
GetImageIndexAndEffect method.
|
|
</p>
|
|
<p>
|
|
Changing the value for the property causes the OnChange event handler to be
|
|
signalled (when assigned).
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.GetImageIndexAndEffect"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalImageIndex">
|
|
<short>
|
|
Ordinal position for the bitmap in ExternalImages displayed when the button
|
|
is Up (not pressed).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ExternalImageIndex</var> is a <var>Integer</var> property with the
|
|
ordinal position for the bitmap drawn on the control when the button is in
|
|
the Up (not pressed) state. ExternalImageIndex is an indexed property which
|
|
accesses the value stored in an internal array of image indexes for each of
|
|
the button states. The property value contains the ordinal position in
|
|
ExternalImages with the bitmap used for the button state. -1 indicates that
|
|
an explicit value has not been assigned for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Modified in LCL version 2.3.0 to use an internal array of button states for
|
|
the property value.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalHotImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalHotImageIndex">
|
|
<short>
|
|
Ordinal position in ExternalImages for the image displayed when the button is
|
|
Hot (hovered).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
ExternalHotImageIndex is an indexed property which accesses the value stored
|
|
in an internal array of image indexes for each of the button states. The
|
|
property value contains the ordinal position in ExternalImages with the
|
|
bitmap used for the button state. -1 indicates that an explicit value has not
|
|
been assigned for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalDisabledImageIndex">
|
|
<short>
|
|
Ordinal position in ExternalImages for the image displayed when the button is
|
|
Disabled.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
ExternalDiasabledImageIndex is an indexed property which accesses the value
|
|
stored in an internal array of image indexes for each of the button states.
|
|
The property value contains the ordinal position in ExternalImages with the
|
|
bitmap used for the button state. -1 indicates that an explicit value has not
|
|
been assigned for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalHotImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalPressedImageIndex">
|
|
<short>
|
|
Ordinal position in ExternalImages for the image displayed when the button is
|
|
Pressed (down).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
ExternalPressedImageIndex is an indexed property which accesses the value
|
|
stored in an internal array of image indexes for each of the button states.
|
|
The property value contains the ordinal position in ExternalImages with the
|
|
bitmap used for the button state. -1 indicates that an explicit value has not
|
|
been assigned for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalHotImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalSelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ExternalSelectedImageIndex">
|
|
<short>
|
|
Ordinal position in ExternalImages for the image displayed when the button is
|
|
Selected (has focus).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
ExternalSelectedImageIndex is an indexed property which accesses the value
|
|
stored in an internal array of image indexes for each of the button states.
|
|
The property value contains the ordinal position in ExternalImages with the
|
|
bitmap used for the button state. -1 indicates that an explicit value has not
|
|
been assigned for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.ExternalImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalHotImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalDisabledImageIndex"/>
|
|
<link id="TButtonGlyph.ExternalPressedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Width">
|
|
<short>The Width of the Glyph image.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Width</var> is an <var>Integer</var> property with the Width for bitmaps
|
|
displayed in the class instance. When Images has been assigned, its Width is
|
|
used as the property value. Otherwise, the property value is 0.
|
|
</p>
|
|
<p>
|
|
Width is used when a value is assigned to the Glyph property, and determines
|
|
if multiple images are present in the bitmap loaded into the Images property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Height"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.Height">
|
|
<short>The height of the glyph image.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Height</var> is an <var>Integer</var> property with the height for
|
|
bitmaps displayed in the class instance. When Images has been assigned, its
|
|
Height is used as the property value. Otherwise, the property value is 0.
|
|
</p>
|
|
<p>
|
|
Height is used when a value is assigned to the Glyph property, and determines
|
|
if multiple images are present in the bitmap loaded into the Images property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Height"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.ShowMode">
|
|
<short>
|
|
Indicates the logic used to display the Glyph image for the class instance.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ShowMode</var> is a <var>TGlyphShowMode</var> property which indicates
|
|
logic used to display the <var>Glyph</var> image for the class instance.
|
|
</p>
|
|
<p>
|
|
The default value for the property is <var>gsmApplication</var>, and
|
|
indicates that <var>ShowButtonGlyphs</var> in <var>TApplication</var>
|
|
determines the visibility of the button Glyph. See <link
|
|
id="TButtonGlyph.CanShow"/> for more information about
|
|
<var>TGlyphShowMode</var> enumeration values and their usage in
|
|
<var>TButtonGlyph</var>.
|
|
</p>
|
|
<p>
|
|
Changing the value for the property causes the <var>Refresh</var> method to
|
|
be called at run-time (<var>IsDesigning</var> contains <b>False</b>).
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.CanShow"/>
|
|
<link id="TButtonGlyph.IsDesigning"/>
|
|
<link id="TButtonGlyph.Refresh"/>
|
|
<link id="TGlyphShowMode"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TButtonGlyph.OnChange">
|
|
<short>
|
|
Event handler signalled when the bitmap in Glyph has been changed.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>OnChange</var> is a <var>TNotifyEvent</var> property with the event
|
|
handler signalled when the image used in the Glyph property is changed.
|
|
OnChange is signalled from the DoChange method, and occurs after Glyph has
|
|
been loaded using the resource or image lists available to the class instance.
|
|
</p>
|
|
<p>
|
|
TButtonGlyph provides a default implementation for the event handler in its
|
|
GlyphChanged method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.GlyphChanged"/>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.Images"/>
|
|
<link id="TButtonGlyph.ExternalImages"/>
|
|
<link id="TButtonGlyph.Refresh"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtnKind">
|
|
<short>
|
|
<var>TBitBtnKind</var> - enumerated type of possible kinds of BitButtons.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>TBitBtnKind</var> is an enumerated type with values which indicate the
|
|
intended use for a TCustomBitBtn / TBitBtn instance. Values in
|
|
<var>TBitBtnKind</var> are used to select the appropriate image displayed as
|
|
the glyph for <var>TBitBtn</var> class instances. <var>TBitBtnKind</var> is
|
|
the type used to implement the <var>Kind</var> property in
|
|
<var>TCustomBitBtn</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TBitBtnKind.bkCustom">
|
|
<short>Uses a custom image on a button.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkOK">
|
|
<short>Uses the OK button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkCancel">
|
|
<short>Uses the CANCEL button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkHelp">
|
|
<short>Uses the HELP button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkYes">
|
|
<short>Uses the YES button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkNo">
|
|
<short>Uses the NO button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkClose">
|
|
<short>Uses the CLOSE button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkAbort">
|
|
<short>Uses the ABORT button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkRetry">
|
|
<short>Uses the RETRY button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkIgnore">
|
|
<short>Uses the IGNORE button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkAll">
|
|
<short>Uses the ALL button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkNoToAll">
|
|
<short>Uses the NO TO ALL button image.</short>
|
|
</element>
|
|
<element name="TBitBtnKind.bkYesToAll">
|
|
<short>Uses the YES TO ALL button image.</short>
|
|
</element>
|
|
|
|
<element name="TBitBtnKinds">
|
|
<short>
|
|
<var>TBitBtnKinds</var> - set of <var>TBitBtnKind</var>.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Not used in the current LCL implementation.
|
|
</p>
|
|
</descr>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn">
|
|
<short>
|
|
<var>TCustomBitBtn</var> - the ancestor class for <var>TBitBtn</var>.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>TCustomBitBtn</var> is a <var>TCustomButton</var> descendant, and the
|
|
ancestor for <var>TBitBtn</var>. It provides the interface used to display a
|
|
button with a glyph (or image) and a caption. It performs an action when the
|
|
button is clicked.
|
|
</p>
|
|
<p>
|
|
If you want to define your own bitmap button class, you should derive it from
|
|
this class.
|
|
</p>
|
|
</descr>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.FDefaultCaption"/>
|
|
<element name="TCustomBitBtn.FKind"/>
|
|
<element name="TCustomBitBtn.FLayout"/>
|
|
<element name="TCustomBitBtn.FMargin"/>
|
|
<element name="TCustomBitBtn.FSpacing"/>
|
|
<element name="TCustomBitBtn.FImageChangeLink"/>
|
|
|
|
<element name="TCustomBitBtn.GetGlyph">
|
|
<short>Gets the value for the Glyph property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetGlyph.Result">
|
|
<short>Value for the Glyph property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetGlyphShowMode">
|
|
<short>Gets the value for the GlyphShowMode property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.GlyphShowMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetGlyphShowMode.Result">
|
|
<short>Value for the GlyphShowMode property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetNumGlyphs">
|
|
<short>Gets the value for the NumGlyphs property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetNumGlyphs.Result">
|
|
<short>Value for the NumGlyphs property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.ImageListChange">
|
|
<short>
|
|
Performs a change notification when Images for the control are updated.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ImageListChange</var> is a procedure used to perform a change
|
|
notification when the <var>Images</var> for the control have been updated.
|
|
</p>
|
|
<p>
|
|
<var>Sender</var> is the <var>TObject</var> instance generating the change
|
|
notification. <var>ImageListChange</var> compares Sender to the object in the
|
|
Images property, and calls the <var>GlyphChanged</var> method when they are
|
|
the same instance.
|
|
</p>
|
|
<p>
|
|
<var>ImageListChange</var> is assigned to the <var>OnChange</var> event
|
|
handler in the internal <var>TChangeLink</var> member used in the class.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.GlyphChanged"/>
|
|
<link id="TChangeLink.OnChange"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.ImageListChange.Sender">
|
|
<short>Object generating the change notification.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.IsGlyphStored">
|
|
<short>Gets the storage specifier for the Glyph property.</short>
|
|
<descr>
|
|
<p>
|
|
<var>IsGlyphStored</var> is a <var>Boolean</var> function used to get the
|
|
storage specifier for the <var>Glyph</var> property. The return value is
|
|
<b>True</b> when an image has not already been assigned in the
|
|
<var>Action</var> property, or in the <var>TButtonGlyph</var> constructed for
|
|
the control. This ensures that the image is included in processing that
|
|
occurs for the LCL component streaming mechanism.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomButton.Action"/>
|
|
<link id="TButtonGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.IsGlyphStored.Result">
|
|
<short>
|
|
<b>True</b> when the glyph image is stored in the LCL component stream.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetGlyph">
|
|
<short>Sets the value for the Glyph property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetGlyph.AValue">
|
|
<short>New value for the Glyph property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetGlyphShowMode">
|
|
<short>Sets the value for the GlyphShowMode property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.GlyphShowMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetGlyphShowMode.AValue">
|
|
<short>New value for the GlyphShowMode property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetKind">
|
|
<short>Sets the value for the Kind property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetKind.AValue">
|
|
<short>New value for the Kind property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetLayout">
|
|
<short>Sets the value for the Layout property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Layout"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetLayout.AValue">
|
|
<short>New value for the Layout property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetMargin">
|
|
<short>Sets the value for the Margin property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Margin"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetMargin.AValue">
|
|
<short>New value for the Margin property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetNumGlyphs">
|
|
<short>Sets the value for the NumGlyphs property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetNumGlyphs.AValue">
|
|
<short>New value for the NumGlyphs property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetSpacing">
|
|
<short>Sets the value for the Spacing property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Spacing"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetSpacing.AValue">
|
|
<short>New value for the Spacing property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.RealizeKind">
|
|
<short>
|
|
Loads and configures properties for the Kind value in the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>RealizeKind</var> is a procedure used to load and configure properties
|
|
for the control. <var>RealizeKind</var> ensures that the <var>Glyph</var>
|
|
displayed on the control contains a valid image for the value in the
|
|
<var>Kind</var> property. When <var>Kind</var> contains <b>bkCustom</b>, it
|
|
is assumed that the image was assigned directly to the <var>Glyph</var>
|
|
property. For all other values, the following logic is used to derive the
|
|
<var>Glyph</var> image:
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
Call <var>GetDefaultBitBtnGlyph</var> to get a user-supplied bitmap for the
|
|
glyph (when available).
|
|
</li>
|
|
<li>
|
|
Use <var>ThemeServices</var> to get a "stock" image supplied by the widget
|
|
set (when available).
|
|
</li>
|
|
<li>
|
|
Use the graphic stored in <var>Images</var> at the position in
|
|
<var>ImageIndex</var> (when assigned).
|
|
</li>
|
|
<li>
|
|
Load the <var>Glyph</var> image from a LCL resource for the specified
|
|
<var>Kind</var>.
|
|
</li>
|
|
</ol>
|
|
<p>
|
|
<var>ForceDefaults</var> indicates if default values are applied to
|
|
properties in the control. When it contains <b>True</b>, the following
|
|
properties are updated:
|
|
</p>
|
|
<ul>
|
|
<li>Caption</li>
|
|
<li>ModalResult</li>
|
|
<li>Default</li>
|
|
<li>Cancel</li>
|
|
</ul>
|
|
<p>
|
|
<var>RealizeKind</var> is called when the value in the <var>Kind</var>
|
|
property is changed, and when the control has been <var>Loaded</var> using
|
|
the LCL component streaming mechanism.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.ModalResult"/>
|
|
<link id="TCustomBitBtn.Default"/>
|
|
<link id="TCustomBitBtn.Cancel"/>
|
|
<link id="TBitBtnKind"/>
|
|
<link id="GetDefaultBitBtnGlyph"/>
|
|
<link id="BitBtnModalResults"/>
|
|
<link id=" #lcl.themes.TThemeServices.GetStockImage"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.RealizeKind.ForceDefaults">
|
|
<short>
|
|
<b>True</b> if the default values for properties are used in the control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetDefaultCaption">
|
|
<short>Sets the value for the DefaultCaption property.</short>
|
|
<descr>
|
|
<p>
|
|
<var>SetDefaultCaption</var> is the write access specifier for the
|
|
<var>DefaultCaption</var> property. <var>AValue</var> contains the new value
|
|
assigned to the property.
|
|
</p>
|
|
<p>
|
|
When <var>AValue</var> is <b>True</b>, and <var>Kind</var> contains a value
|
|
other than <var>bkCustom</var>, the <var>Caption</var> property is updated to
|
|
use the value returned from <var>GetCaptionOfKind</var>. This also causes the
|
|
<var>TextChanged</var> method to be called when the Caption property is
|
|
updated.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.DefaultCaption"/>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="TCustomBitBtn.GetCaptionOfKind"/>
|
|
<link id="TCustomBitBtn.TextChanged"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetDefaultCaption.AValue">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetCaptionOfKind">
|
|
<short>Gets the default Caption value for the button Kind.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetCaptionOfKind.Result">
|
|
<short>Default value for the Caption property.</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetCaptionOfKind.AKind">
|
|
<short>Enumeration value that identifies the kind of BitButton.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetImages">
|
|
<short>Gets the value for the Images property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetImages.Result">
|
|
<short>Value for the Images property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetImages">
|
|
<short>Sets the value for the Images property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetImages.AImages">
|
|
<short>New value for the Images property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetImageIndex">
|
|
<short>Gets the value for the ImageIndex property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetImageIndex.Result">
|
|
<short>Value for the ImageIndex property.</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetImageIndex.AState">
|
|
<short>Drawing state for the requested button glyph.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetImageIndex">
|
|
<short>Sets the value for the ImageIndex property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetImageIndex.AImageIndex">
|
|
<short>New value for the ImageIndex property.</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetImageIndex.AState">
|
|
<short>Identifies the drawing State for the specified image index.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetImageWidth">
|
|
<short>Gets the value for the ImageWidth property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.ImageWidth"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GetImageWidth.Result">
|
|
<short>Value for the ImageWidth property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.SetImageWidth">
|
|
<short>Sets the value for the ImageWidth property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.ImageWidth"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.SetImageWidth.AImageWidth">
|
|
<short>New value for the ImageWidth property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.FButtonGlyph">
|
|
<short>
|
|
An internal member which contains the TButtonGlyph instance for the control.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph"/>
|
|
<link id="TCustomBitBtn.Create"/>
|
|
<link id="TCustomBitBtn.Create"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.WSRegisterClass" link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
|
|
|
|
<element name="TCustomBitBtn.ActionChange">
|
|
<short>
|
|
Performs action when a new value is assigned to the Action property for the
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ActionChange</var> is overridden in TCustomBitBtn to ensure that values
|
|
from the new action instance in Sender are stored to properties in the
|
|
control. ActionChange is the routine which implements the OnChange event
|
|
handler for the ActionLink in the control. It is signalled (from TControl)
|
|
when a new value is assigned to the Action property, or when the control is
|
|
loaded using LCL component streaming.
|
|
</p>
|
|
<p>
|
|
Sender is the new action instance for the event, or <b>Nil</b> when the value
|
|
in Action has been removed (set to <b>Nil</b>).
|
|
</p>
|
|
<p>
|
|
CheckDefaults indicates whether existing properties values in the control are
|
|
used as default values. When set to <b>False</b>, the values from the action
|
|
instance are applied to the control. Values from the action may be used (when
|
|
assigned) if the properties in the control are unassigned - even when
|
|
CheckDefaults is <b>True</b>.
|
|
</p>
|
|
<p>
|
|
ActionChange calls the inherited method to update property values like
|
|
Caption, Enabled, Hint, Visible, HelpContext and HelpKeyword. When Sender is
|
|
a TCustomAction instance, the values in ImageIndex and Images are also
|
|
updated with the values from the action (when assigned).
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.ActionChange.Sender">
|
|
<short>New action instance for the event.</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.ActionChange.CheckDefaults">
|
|
<short>
|
|
<b>True</b> to use existing properties as default values, <b>False</b> to use
|
|
properties from the new action.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GlyphChanged">
|
|
<short>
|
|
Performs actions needed when the value in Glyph has been changed.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Ensures that the widget set class is notified of a change in the value for
|
|
the Glyph property. Calls InvalidatePreferredSize and AdjustSize to resize
|
|
the control for the new Glyph image.
|
|
</p>
|
|
<p>
|
|
Assigned to the OnChange event handler in the TButtonGlyph instance for the
|
|
control, and called directly from the ImageListChange method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.GlyphChanged.Sender">
|
|
<short>TObject instance for the change notification.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.InitializeWnd" link="#lcl.controls.TWinControl.InitializeWnd"/>
|
|
|
|
<element name="TCustomBitBtn.IsCaptionStored">
|
|
<short>Gets the storage specifier for the Caption property.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.IsCaptionStored.Result">
|
|
<short>
|
|
<b>True</b> when a value for the property is included in the LCL component
|
|
streaming mechanism.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Loaded">
|
|
<short>
|
|
Performs actions needed when the component has been loaded using LCL
|
|
component streaming.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Loaded</var> is an overridden method in <var>TCustomBitBtn</var>, and
|
|
calls the inherited method on entry. It ensures that properties in the class
|
|
instance are updated when a value other than bkCustom is used in the Kind
|
|
property. This includes loading the Glyph image and setting values in
|
|
Caption, ModalResult, Default, Cancel, ImageIndex, and DefaultCaption.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="#lcl.stdctrls.TCustomButton.Loaded">TCustomButton.Loaded</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Notification">
|
|
<short>
|
|
Performs actions needed when a sub-component is added or removed in the class
|
|
instance.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Ensures that a TCustomImageList reference in the button glyph is <b>Nil</b>'d
|
|
when the image list is freed.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.Notification">TControl.Notification</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.Notification.AComponent">
|
|
<short>Component for the notification message.</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.Notification.Operation">
|
|
<short>Operation performed for the notification message.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.TextChanged">
|
|
<short>
|
|
Performs actions needed when the CM_TEXTCHANGED control message is handled
|
|
for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>TextChanged</var> is an overridden method in <var>TCustomBitBtn</var>.
|
|
It ensures that the control is updated when the value in the Caption property
|
|
has been changed. AdjustSize is called to auto-size a visible control and its
|
|
parent. The value in DefaultCaption is set to <b>False</b> after the new
|
|
value has been assigned for the Caption property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.TextChanged">TControl.TextChanged</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GetControlClassDefaultSize" link="#lcl.controls.TControl.GetControlClassDefaultSize"/>
|
|
<element name="TCustomBitBtn.GetControlClassDefaultSize.Result"/>
|
|
|
|
<element name="TCustomBitBtn.CMAppShowBtnGlyphChanged">
|
|
<short>Handles the CM_APPSHOWBTNGLYPHCHANGED message for the control.</short>
|
|
<descr>
|
|
<p>
|
|
<var>CMAppShowBtnGlyphChanged</var> is a method used to handle the
|
|
<b>CM_APPSHOWBTNGLYPHCHANGED</b> control message for the control. It ensures
|
|
that the bitmap in <var>Glyph</var> is refreshed when the value in the
|
|
<var>GlyphShowMode</var> property is set to <var>gsmApplication</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.GlyphShowMode"/>
|
|
<link id="TButtonGlyph.Refresh"/>
|
|
<link id="#lcl.menus.TGlyphShowMode">TGlyphShowMode</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.CMAppShowBtnGlyphChanged.Message">
|
|
<short>Control message handled in the method.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Create">
|
|
<short>Constructor for the class instance.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Create</var> is the constructor for the class instance.
|
|
<var>Create</var> calls the inherited constructor, and initializes the
|
|
layout, style, spacing, and Button Glyph for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#rtl.classes.TComponent.Create">TComponent.Create</link>
|
|
<link id="#LCL.StdCtrls.TCustomButton.Create">TCustomButton.Create</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.Create.TheOwner">
|
|
<short>Owner of the class instance.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Destroy">
|
|
<short>Destructor for the class instance.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Destroy</var> is the overridden destructor for the class instance. It
|
|
ensures that resource allocated for the internal button glyph and image
|
|
change link are freed. It calls the inherited destructor prior to exiting
|
|
from the method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#rtl.Classes.TComponent.Destroy">TComponent.Destroy</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Click">
|
|
<short>
|
|
Performs actions needed when the button is clicked.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Click</var> is an overridden method in TCustomBitBtn. It ensures that
|
|
the correct actions are performed based on the value in the Kind property.
|
|
When Kind is set to bkClose, the non-nested parent form is closed for the
|
|
following conditions:
|
|
</p>
|
|
<ul>
|
|
<li>ModalResult is set to mrNone, or</li>
|
|
<li>
|
|
ModalResult is mrCancel and the parent form is displayed as a modal dialog.
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
If Kind has any other value, the inherited Click method is called to
|
|
determine the ModalResult and signal the OnChange event handler (when
|
|
assigned).
|
|
</p>
|
|
<p>
|
|
Click is called when the DialogChar method handles an accelerator key for the
|
|
control, when the Action for the control is executed, and when a mouse click
|
|
event is handled for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.stdctrls.TCustomButton.Click">TCustomButton.Click</link>
|
|
<link id="#lcl.stdctrls.TButtonControl.Click">TButtonControl.Click</link>
|
|
<link id="#lcl.controls.TControl.Click">TControl.Click</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.LoadGlyphFromResourceName">
|
|
<short>
|
|
Loads the Glyph image with the specified named from a resource instance.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.LoadGlyphFromResourceName.Instance">
|
|
<short>
|
|
Handle for the resource instance where the glyph is stored.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.LoadGlyphFromResourceName.AName">
|
|
<short>Resource name for the glyph loaded in the method.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.LoadGlyphFromLazarusResource">
|
|
<short>
|
|
Loads a glyph image from the Lazarus resource file (.lrs).
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.LoadGlyphFromLazarusResource.AName">
|
|
<short>Name for the resource loaded from the Lazarus resource file.</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.LoadGlyphFromStock">
|
|
<short>Loads a stock glyph image for the specified button identifier.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.LoadGlyphFromStock.idButton">
|
|
<short>
|
|
Button identifier used to determine the image loaded in the Glyph.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.CanShowGlyph">
|
|
<short>Indicates if the Glyph for the button can be displayed.</short>
|
|
<descr>
|
|
<p>
|
|
<var>CanShowGlyph</var> is a <var>Boolean</var> function which indicates if
|
|
the <var>Glyph</var> for the button can be displayed. The return value
|
|
contains the result from the <var>CanShowGlyph</var> method in the internal
|
|
<var>TButtonGlyph</var> member.
|
|
</p>
|
|
<p>
|
|
<var>AWithShowMode</var> indicates whether the <var>ShowMode</var> property
|
|
for the button glyph is examined in the method by calling the
|
|
<var>CanShow</var> method in <var>TButtonGlyph</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TButtonGlyph.Glyph"/>
|
|
<link id="TButtonGlyph.CanShowGlyph"/>
|
|
<link id="TButtonGlyph.CanShow"/>
|
|
<link id="TButtonGlyph.ShowMode"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomBitBtn.CanShowGlyph.Result">
|
|
<short>
|
|
<b>True</b> when the Glyph image can be displayed for the control.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomBitBtn.CanShowGlyph.AWithShowMode">
|
|
<short>
|
|
Indicates if the ShowMode for the glyph is examined in the method.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Caption">
|
|
<short>
|
|
Contains the descriptive text displayed for the Bitmap button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Caption</var> is a public <var>TCaption</var> property which contains
|
|
the descriptive text displayed for the Bitmap button control. Assign a value
|
|
to Caption when the <var>Kind</var> property is set to <var>bkCustom</var>.
|
|
When Kind contains one of the other <var>TBitBtnKind</var> enumeration
|
|
values, the Caption is normally set using the <var>GetCaptionOfKind</var>
|
|
method.
|
|
</p>
|
|
<p>
|
|
Use <var>DefaultCaption</var> to determine if the value in Caption is the
|
|
default one for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.DefaultCaption"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="TBitBtnKind"/>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.DefaultCaption">
|
|
<short>
|
|
Indicates if Caption contains the default value for the button Kind.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Changing the property value to <b>True</b> causes a resource string with the
|
|
caption text for the button ID to be assigned to the Caption property when
|
|
Kind is not bkCustom.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.DisabledImageIndex">
|
|
<short>
|
|
Ordinal position for the image displayed when the button is Disabled.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>DisabledImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the bitmap displayed on the button when it is Disabled.
|
|
It refers to the position in the Images property where the associated image
|
|
data is stored. The default value for the property is -1, and indicates that
|
|
an explicit value has not been assigned to the property.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso/>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Glyph">
|
|
<short>Bitmap with the Glyph displayed on the control.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Glyph</var> is a <var>TBitmap</var> property with bitmap(s) displayed on
|
|
the button control. The bitmap is stored internally in a TButtonGlyph
|
|
instance that is populated when a glyph resource is used for image(s) on the
|
|
control. A bitmap can be assigned directly to the property. Or, it can be
|
|
loaded when the LoadGlyphFromResourceName, LoadGlyphFromLazarusResource, or
|
|
LoadGlyphFromStock method is called.
|
|
</p>
|
|
<p>
|
|
Glyph can contain a bitmap with multiple adjacent images representing the
|
|
states for the button control. Use ImageWidth to define the Width for
|
|
individual images in the combined bitmap. If the bitmap has a Width that is
|
|
larger than ImageWidth, it is split into separate bitmaps for use in the
|
|
internal TButtonGlyph instance. Use ImageIndex, DisabledImageIndex,
|
|
HotImageIndex, and PressedImageIndex to indicate which bitmap is used for the
|
|
corresponding button state.
|
|
</p>
|
|
<remark>
|
|
Unlike TCustomSpeedButton, SelectedImageIndex is not available in
|
|
TCustomBitBtn; it cannot receive input focus, so a selected image is neither
|
|
needed nor implemented.
|
|
</remark>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.ImageWidth"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
|
|
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.NumGlyphs">
|
|
<short>The number of glyph bitmaps available for the control.</short>
|
|
<descr>
|
|
<p>
|
|
<var>NumGlyphs</var> is a <var>TNumGlyphs</var> property with the number of
|
|
images in the bitmap assigned to the Glyph property. The property value is
|
|
read from and written to the internal TButtonGlyph instance for the control.
|
|
Changing the value for the property causes the original image to be
|
|
re-examined and split into separate images based on the Width specified in
|
|
the ImageWidth property.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.ImageWidth"/>
|
|
<link id="TButtonGlyph.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.HotImageIndex">
|
|
<short>
|
|
Ordinal position for the bitmap displayed when the button control is hot
|
|
(hovered).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>HotImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the bitmap displayed on the button when it is hot (under
|
|
the mouse cursor - hovered). It refers to the position in the Images property
|
|
where the associated image data is stored. The default value for the property
|
|
is -1, and indicates that an explicit value has not been assigned to the
|
|
property.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso/>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Images">
|
|
<short>
|
|
Contains the list of images available for use as the glyph on a custom button
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Images</var> is a <var>TCustomImageList</var> property with the images
|
|
which can be displayed as the glyph for the various states on the button
|
|
control. Images provides an alternative to assigning a bitmap to the Glyph
|
|
property, and is used when the Kind property is set to bkCustom.
|
|
</p>
|
|
<p>
|
|
Use ImageWidth to set the image resolution size used when a value is
|
|
retrieved from the Images property.
|
|
</p>
|
|
<p>
|
|
Use ImageIndex to specify the ordinal position for the value in Images
|
|
displayed as the glyph for the button control.
|
|
</p>
|
|
<p>
|
|
Use the HotImageIndex, PressedImageIndex, and DisabledImageIndex properties
|
|
to specify the position for the image displayed for the corresponding button
|
|
states.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.Kind"/>
|
|
<link id="TCustomBitBtn.ImageWidth"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.HotImageIndex"/>
|
|
<link id="TCustomBitBtn.PressedImageIndex"/>
|
|
<link id="TCustomBitBtn.DisabledImageIndex"/>
|
|
<link id="#lcl.imglist.TCustomImageList">TCustomImageList</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.ImageIndex">
|
|
<short>
|
|
Ordinal position for the default bitmap displayed when the button control is
|
|
up (not pressed).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ImageIndex</var> is a <var>TImageIndex</var> property with the ordinal
|
|
position for the bitmap displayed on the button when it is in its default
|
|
state (up). It refers to the position in the Images property where the
|
|
associated image data is stored. The default value for the property is -1,
|
|
and indicates that an explicit value has not been assigned to the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.ImageWidth">
|
|
<short>
|
|
Width for the value in Images displayed on the button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ImageWidth</var> is an <var>Integer</var> property with the Width in
|
|
pixels for the TCustomImage instances stored in the Images property. The
|
|
default value for the property is 0, and indicates that an explicit value has
|
|
not been assigned for the property. This causes the Width property in the
|
|
TCustomImageList to be used for an image retrieved from the list.
|
|
</p>
|
|
<p>
|
|
Changing the property value causes the internal TButtonGlyph instance in the
|
|
class to be updated with the new value. InvalidatePreferredSize is called to
|
|
recalculate the preferred dimensions for the class instance. AdjustSize is
|
|
called to auto-size a visible control and its parent.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TButtonGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Kind">
|
|
<short>
|
|
Specifies the button kind including the default bitmap and caption for the
|
|
button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Kind</var> is a <var>TBitBtnKind</var> property which identifies the
|
|
intended usage for the button control. The enumeration value indicates the
|
|
default values used in the Glyph and Caption for the control. The default
|
|
value for the property is bkCustom, and causes values in Glyph (or the image
|
|
in ImageIndex) and Caption to be displayed on the button surface.
|
|
</p>
|
|
<p>
|
|
Changing the property value causes other values in the class instance to be
|
|
updated. When Kind has a value other than bkCustom, the default Glyph is
|
|
retrieved and stored using the GetDefaultBitBtnGlyph, ThemeServices, or
|
|
resources from BitBtnImages and BitBtnResNames. Values in Caption,
|
|
ModalResult, Default, Cancel and DefaultCaption are updated as needed for the
|
|
new value in Kind.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TBitBtnKind"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Layout">
|
|
<short>
|
|
Layout or alignment for the glyph bitmap and caption on the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Layout</var> is a <var>TButtonLayout</var> property which indicates the
|
|
alignment used for the Glyph (or image) and the Caption on the button
|
|
control. The default value for the property is blGlyphLeft. It causes the
|
|
Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge
|
|
of the button surface.
|
|
</p>
|
|
<p>
|
|
Changing the property value causes the widgetset class instance to be updated
|
|
when its handle has been allocated. InvalidatePreferredSize is called to
|
|
recalculate the preferred dimensions for the control. AdjustSize is called to
|
|
auto-size a visible control and its parent.
|
|
</p>
|
|
<p>
|
|
The property value is used in the InitializeWnd method to set the initial
|
|
value in the widget class instance.
|
|
</p>
|
|
<p>
|
|
Use Margin to set the space reserved prior to the glyph bitmap on the aligned
|
|
edge of the control. Use Spacing to set the space reserved between the Glyph
|
|
image and the Caption relative to the aligned edge of the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.Margin"/>
|
|
<link id="TCustomBitBtn.Spacing"/>
|
|
<link id="TButtonLayout"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.Margin">
|
|
<short>
|
|
The space prior to the glyph bitmap on the aligned edge of the button layout.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Margin</var> is an <var>Integer</var> property with the space reserved
|
|
prior to the Glyph or image displayed on the button control. It occurs on the
|
|
aligned edge specified in Layout, and generally refers to a number of pixels.
|
|
The value -1 has special meaning; it causes the glyph and caption to be
|
|
centered on the button surface.
|
|
</p>
|
|
<p>
|
|
The default value for the property is -1. Changing the property value causes
|
|
the widgetset class instance to be updated when its handle has been
|
|
allocated. AdjustSize is called to auto-size a visible control and its
|
|
parent. At design-time, the Invalidate method is called to redraw the control.
|
|
</p>
|
|
<p>
|
|
The property value is used in the InitializeWnd method to set the initial
|
|
value in the widget class.
|
|
</p>
|
|
<p>
|
|
Use Layout to specify the edge on the button control to which the glyph
|
|
bitmap and caption are aligned.
|
|
</p>
|
|
<p>
|
|
Use Spacing to set the space reserved between the glyph bitmap and the
|
|
caption for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.Layout"/>
|
|
<link id="TCustomBitBtn.Spacing"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.PressedImageIndex">
|
|
<short>
|
|
Ordinal position for the bitmap displayed when the button control is pressed
|
|
(down).
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>PressedImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the bitmap displayed on the button when it is pressed
|
|
(down). It refers to the position in the Images property where the associated
|
|
image data is stored. The default value for the property is -1, and indicates
|
|
that an explicit value has not been assigned to the property.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<!--
|
|
currently commented out in TCustomBitBtn
|
|
|
|
<element name="TCustomBitBtn.SelectedImageIndex">
|
|
<short>Ordinal position for the image displayed on the control.</short>
|
|
<descr>
|
|
<p>
|
|
SelectedImageIndex is a TImageIndex property.
|
|
The default value for the property is -1, and indicates that an explicit
|
|
value has not been assigned to the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0.
|
|
</version>
|
|
<seealso></seealso>
|
|
</element>
|
|
-->
|
|
|
|
<element name="TCustomBitBtn.Spacing">
|
|
<short>
|
|
The space reserved between the bitmap and the caption on the button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Spacing</var> is an <var>Integer</var> property with the number of
|
|
pixels used to separate the Glyph (or image) displayed on the button and its
|
|
Caption. The default value for the property is 4 pixels.
|
|
</p>
|
|
<p>
|
|
The number of pixels in Spacing is always displayed - even when the Caption
|
|
is an empty string. To suppress drawing of the additional space, set the
|
|
property to 0.
|
|
</p>
|
|
<p>
|
|
Changing the value for the property causes the widgetset instance to be
|
|
updated when its handle has been allocated. AdjustSize is called to auto-size
|
|
a visible control and its parent. At design-time, the Invalidate method is
|
|
called to redraw the control.
|
|
</p>
|
|
<p>
|
|
The property value is used in the InitializeWnd method to set the initial
|
|
value in the widget class.
|
|
</p>
|
|
<p>
|
|
Use Layout to specify the edge on the button control to which the glyph
|
|
bitmap is aligned.
|
|
</p>
|
|
<p>
|
|
Use Margin to set the space reserved on the aligned edge prior to the glyph
|
|
bitmap.
|
|
</p>
|
|
<remark>
|
|
For the macOS Carbon widgetset, the Spacing property is not supported. Layout
|
|
and alignment is determined by the native control for the platform.
|
|
</remark>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.Caption"/>
|
|
<link id="TCustomBitBtn.Glyph"/>
|
|
<link id="TCustomBitBtn.Images"/>
|
|
<link id="TCustomBitBtn.ImageIndex"/>
|
|
<link id="TCustomBitBtn.Layout"/>
|
|
<link id="TCustomBitBtn.Margin"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomBitBtn.GlyphShowMode">
|
|
<short>
|
|
Indicates the policy for showing or hiding the glyph image for the button.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="#lcl.menus.TGlyphShowMode">TGlyphShowMode</link>
|
|
<link id="#lcl.forms.TApplication.ShowMenuGlyphs">TApplication.ShowMenuGlyphs</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtn">
|
|
<short>A button with a small image attached.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TBitBtn</var> is a <var>TCustomBitBtn</var> descendant which provides
|
|
the interface used to display a button with a glyph (or image) and a caption.
|
|
It performs an action when the button is clicked.
|
|
</p>
|
|
<p>
|
|
TBitBtn sets the visibility for properties introduced in ancestor classes.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.stdctrls.HowToUseStdCtrls">How To Use Standard Controls</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtn.Action" link="#lcl.controls.TControl.Action"/>
|
|
<element name="TBitBtn.Align" link="#lcl.controls.TControl.Align"/>
|
|
<element name="TBitBtn.Anchors" link="#lcl.controls.TControl.Anchors"/>
|
|
<element name="TBitBtn.AutoSize" link="#lcl.controls.TControl.AutoSize"/>
|
|
<element name="TBitBtn.BidiMode" link="#lcl.controls.TControl.BidiMode"/>
|
|
<element name="TBitBtn.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
|
|
<element name="TBitBtn.Cancel" link="#lcl.stdctrls.TCustomButton.Cancel"/>
|
|
<element name="TBitBtn.Caption" link="#lcl.buttons.TCustomBitBtn.Caption"/>
|
|
<element name="TBitBtn.Color" link="#lcl.controls.TControl.Color"/>
|
|
<element name="TBitBtn.Constraints" link="#lcl.controls.TControl.Constraints"/>
|
|
<element name="TBitBtn.Default" link="#lcl.stdctrls.TCustomButton.Default"/>
|
|
<element name="TBitBtn.DefaultCaption" link="#lcl.buttons.TCustomBitBtn.DefaultCaption"/>
|
|
<element name="TBitBtn.DisabledImageIndex" link="#lcl.buttons.TCustomBitBtn.DisabledImageIndex"/>
|
|
<element name="TBitBtn.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
|
|
<element name="TBitBtn.DragKind" link="#lcl.controls.TControl.DragKind"/>
|
|
<element name="TBitBtn.DragMode" link="#lcl.controls.TControl.DragMode"/>
|
|
<element name="TBitBtn.Enabled" link="#lcl.controls.TControl.Enabled"/>
|
|
<element name="TBitBtn.Font" link="#lcl.controls.TControl.Font"/>
|
|
<element name="TBitBtn.Glyph" link="#lcl.buttons.TCustomBitBtn.Glyph"/>
|
|
<element name="TBitBtn.GlyphShowMode" link="#lcl.buttons.TCustomBitBtn.GlyphShowMode"/>
|
|
<element name="TBitBtn.HotImageIndex" link="#lcl.buttons.TCustomBitBtn.HotImageIndex"/>
|
|
<element name="TBitBtn.Kind" link="#lcl.buttons.TCustomBitBtn.Kind"/>
|
|
<element name="TBitBtn.Layout" link="#lcl.buttons.TCustomBitBtn.Layout"/>
|
|
<element name="TBitBtn.Margin" link="#lcl.buttons.TCustomBitBtn.Margin"/>
|
|
<element name="TBitBtn.ModalResult" link="#lcl.stdctrls.TCustomButton.ModalResult"/>
|
|
<element name="TBitBtn.NumGlyphs" link="#lcl.buttons.TCustomBitBtn.NumGlyphs"/>
|
|
<element name="TBitBtn.Images" link="#lcl.buttons.TCustomBitBtn.Images"/>
|
|
<element name="TBitBtn.ImageIndex" link="#lcl.buttons.TCustomBitBtn.ImageIndex"/>
|
|
<element name="TBitBtn.ImageWidth" link="#lcl.buttons.TCustomBitBtn.ImageWidth"/>
|
|
<element name="TBitBtn.OnChangeBounds" link="#lcl.controls.TControl.OnChangeBounds"/>
|
|
<element name="TBitBtn.OnClick" link="#lcl.controls.TControl.OnClick"/>
|
|
<element name="TBitBtn.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
|
|
<element name="TBitBtn.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
|
|
<element name="TBitBtn.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
|
|
<element name="TBitBtn.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
|
|
<element name="TBitBtn.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
|
|
<element name="TBitBtn.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
|
|
|
|
<element name="TBitBtn.OnKeyDown">
|
|
<short>
|
|
Event handler signalled when a key is down while the control has focus.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>OnKeyDown</var> differs from <link
|
|
id="#lcl.controls.TWinControl.OnKeyPress">OnKeyPress</link> in that the key
|
|
may have already been down when the control received focus; with
|
|
<var>OnKeyPress</var> the key needs to become pressed while the control has
|
|
focus.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TWinControl.OnKeyDown">TWinControl.OnKeyDown</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtn.OnKeyPress">
|
|
<short>
|
|
Event handler signalled when a key is pressed while the control has focus.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>OnKeyPress</var> differs from <link
|
|
id="#lcl.controls.TWinControl.OnKeyDown">OnKeyDown</link> in that the key
|
|
needs to become pressed while the control has focus; with
|
|
<var>OnKeyDown</var> the key may have already been down when the control
|
|
received focus.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TWinControl.OnKeyPress">TWinControl.OnKeyPress</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtn.OnKeyUp">
|
|
<short>
|
|
Event handler signalled when a key is released while the control has focus.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
In <var>OnKeyUp</var>, the key may already have been up when the control
|
|
received focus, or a pressed key may become released during the time the
|
|
control has focus.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TWinControl.OnKeyUp">TWinControl.OnKeyUp</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TBitBtn.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
|
|
<element name="TBitBtn.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
|
|
<element name="TBitBtn.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
|
|
<element name="TBitBtn.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
|
|
<element name="TBitBtn.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
|
|
<element name="TBitBtn.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
|
|
<element name="TBitBtn.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
|
|
<element name="TBitBtn.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
|
|
<element name="TBitBtn.OnResize" link="#lcl.controls.TControl.OnResize"/>
|
|
<element name="TBitBtn.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
|
|
<element name="TBitBtn.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
|
|
<element name="TBitBtn.ParentBidiMode" link="#lcl.controls.TControl.ParentBidiMode"/>
|
|
<element name="TBitBtn.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
|
|
<element name="TBitBtn.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
|
|
<element name="TBitBtn.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
|
|
<element name="TBitBtn.PressedImageIndex" link="#lcl.buttons.TCustomBitBtn.PressedImageIndex"/>
|
|
<!--
|
|
<element name="TBitBtn.SelectedImageIndex" link="#lcl.buttons.TCustomBitBtn.SelectedImageIndex"/>
|
|
-->
|
|
<element name="TBitBtn.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
|
|
<element name="TBitBtn.Spacing" link="#lcl.buttons.TCustomBitBtn.Spacing"/>
|
|
<element name="TBitBtn.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
|
|
<element name="TBitBtn.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
|
|
|
|
<element name="TBitBtn.Visible">
|
|
<short>Indicates if the control is visible on its parent.</short>
|
|
<descr>
|
|
<p>
|
|
The <var>Visible</var> property indicates the ability to see a visual
|
|
control. If <var>Visible</var> is <b>True</b>, the control is shown,
|
|
otherwise it is hidden. Calling <var>Show</var> sets <var>Visible</var> to
|
|
<b>True</b>. Setting <var>Visible</var> to <b>False</b> is equivalent to
|
|
calling the <var>Hide</var> method.
|
|
</p>
|
|
<remark>
|
|
The <var>Visible</var> property does not depend on the visibility of a parent
|
|
control. Use <var>IsVisible</var> method to consider this, and get the real
|
|
visibility for a control in its parent container.
|
|
</remark>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButtonActionLink">
|
|
<short>Links a TSpeedButton with a TAction instance.</short>
|
|
</element>
|
|
|
|
<element name="TSpeedButtonActionLink.AssignClient" link="#rtl.classes.TBasicActionLink.AssignClient"/>
|
|
<element name="TSpeedButtonActionLink.AssignClient.AClient"/>
|
|
|
|
<element name="TSpeedButtonActionLink.SetGroupIndex">
|
|
<short>
|
|
Sets the group index for the speed button in the action link.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>SetGroupIndex</var> is an overridden method in
|
|
<var>TSpeedButtonActionLink</var>. It implements the empty virtual method
|
|
from the ancestor class. SetGroupIndex call IsGroupIndexLinked to determine
|
|
if the action link has an assigned speed button instance. When assigned, the
|
|
GroupIndex property in the client control is set to Value.
|
|
</p>
|
|
<p>
|
|
SetGroupIndex is called when a TCustomAction instance notifies each of its
|
|
client controls of a new value for the group index property in the class
|
|
instance.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.actnlist.TCustomAction.GroupIndex">TCustomAction.GroupIndex</link>
|
|
<link id="#lcl.actnlist.TCustomActionList">TCustomActionList</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TSpeedButtonActionLink.SetGroupIndex.Value">
|
|
<short>
|
|
New value for the group index in the linked speed button.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TSpeedButtonActionLink.SetChecked">
|
|
<short>
|
|
Sets the Checked state for the control in the action link.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TSpeedButtonActionLink.SetChecked.Value">
|
|
<short>
|
|
New value for the Checked state in the linked speed button control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TSpeedButtonActionLink.SetImageIndex">
|
|
<short>
|
|
Sets the image index in the control for the action link when enabled.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>SetImageIndex</var> is an overridden method used to change the selected
|
|
image in the associated <var>TSpeedButton</var> control for the action link.
|
|
SetImageIndex uses the value from <var>IsImageIndexLinked</var> to determine
|
|
if the image can be changed by the action link. When IsImageIndexLinked
|
|
returns <b>False</b>, no actions are performed in the method.
|
|
</p>
|
|
<p>
|
|
SetImageIndex accesses the internal <var>TSpeedButton</var> control for the
|
|
action link, and sets its <var>ImageIndex</var> property to the ordinal
|
|
position specified in <var>Value</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TSpeedButtonActionLink.IsImageIndexLinked"/>
|
|
<link id="TSpeedButton.ImageIndex"/>
|
|
<link id="TSpeedButton.Images"/>
|
|
<link id="#lcl.actnlist.TActionLink.SetImageIndex">TActionLink.SetImageIndex</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TSpeedButtonActionLink.SetImageIndex.Value">
|
|
<short>
|
|
Ordinal position for the image selected in the speed button control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TSpeedButtonActionLink.IsCheckedLinked" link="#lcl.actnlist.TActionLink.IsCheckedLinked"/>
|
|
<element name="TSpeedButtonActionLink.IsCheckedLinked.Result"/>
|
|
|
|
<element name="TSpeedButtonActionLink.IsGroupIndexLinked" link="#lcl.actnlist.TActionLink.IsGroupIndexLinked"/>
|
|
<element name="TSpeedButtonActionLink.IsGroupIndexLinked.Result"/>
|
|
|
|
<element name="TSpeedButtonActionLink.IsImageIndexLinked">
|
|
<short>
|
|
Determines whether the action link can update the image index for the
|
|
associated control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>IsImageIndexLinked</var> is an overridden <var>Boolean</var> function
|
|
used to determine if the Action Link can update the image in its associated
|
|
<var>TSpeedButton</var> control. The return value is <b>True</b> when the
|
|
<var>Action</var> is derived from <var>TCustomAction</var> and the
|
|
<var>ImageIndex</var> values in the TSpeedButton and the Action currently
|
|
have the same values.
|
|
</p>
|
|
<p>
|
|
IsImageIndexLinked is called from the <var>SetImageIndex</var> method before
|
|
updating the value in the ImageIndex for the TSpeedButton control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TSpeedButtonActionLink.SetImageIndex"/>
|
|
<link id="#rtl.classes.TBasicActionLink.Action">TBasicActionLink.Action</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TSpeedButtonActionLink.IsImageIndexLinked.Result">
|
|
<short>
|
|
Returns <b>True</b> when the action is can update the image in the associated
|
|
control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton">
|
|
<short>The ancestor for the <var>TSpeedButton</var> class.</short>
|
|
<descr>
|
|
<p>
|
|
<var>TCustomSpeedButton</var> is a <var>TGraphicControl</var> descendant, and
|
|
the ancestor for <var>TSpeedButton</var>. If you want to define your own
|
|
speed button class, you should derive it from TCustomSpeedButton.
|
|
</p>
|
|
<p>
|
|
A speed button is designed to automatically perform a process when it is
|
|
pressed or clicked. The user can push the button to start an action or set a
|
|
mode. When a user clicks on a speed button, focus is not shifted; a speed
|
|
button never receives focus. The button may have a descriptive glyph (symbol
|
|
or pictograph), and has state (checked, unchecked, Up, Down, Hovered,
|
|
Selected, Disabled).
|
|
</p>
|
|
</descr>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.FGlyph"/>
|
|
<element name="TCustomSpeedButton.FGroupIndex"/>
|
|
<element name="TCustomSpeedButton.FImageChangeLink"/>
|
|
<element name="TCustomSpeedButton.FLastDrawDetails"/>
|
|
<element name="TCustomSpeedButton.FLayout"/>
|
|
<element name="TCustomSpeedButton.FMargin"/>
|
|
<element name="TCustomSpeedButton.FSpacing"/>
|
|
<element name="TCustomSpeedButton.FShortcut"/>
|
|
<element name="TCustomSpeedButton.FShowAccelChar"/>
|
|
<element name="TCustomSpeedButton.FShowCaption"/>
|
|
<element name="TCustomSpeedButton.FAllowAllUp"/>
|
|
<element name="TCustomSpeedButton.FDown"/>
|
|
<element name="TCustomSpeedButton.FDownLoaded"/>
|
|
<element name="TCustomSpeedButton.FDragging"/>
|
|
<element name="TCustomSpeedButton.FFlat"/>
|
|
<element name="TCustomSpeedButton.FMouseInControl"/>
|
|
<element name="TCustomSpeedButton.FAlignment"/>
|
|
|
|
<element name="TCustomSpeedButton.GetGlyph">
|
|
<short>Gets the value for the Glyph property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetGlyph.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ImageListChange">
|
|
<short>Performs actions needed when the value in Images is changed.</short>
|
|
<descr>
|
|
<p>
|
|
<var>ImageListChange</var> implements a handler routine assigned to the
|
|
OnChange event handler in the internal image change link for the speed
|
|
button. It is assigned in the Create method when the TChangeLink is created
|
|
for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Create"/>
|
|
<link id="#lcl.imglist.TChangeLink.OnChange">TChangeLink.OnChange</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.ImageListChange.Sender">
|
|
<short>Object for the event notification.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.IsGlyphStored">
|
|
<short>Gets the storage specifier for the Glyph property.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.IsGlyphStored.Result">
|
|
<short>
|
|
<b>True</b> when a value for the Glyph property is included in the LCL
|
|
component streaming mechanism.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetShowCaption">
|
|
<short>Sets the value for the ShowCaption property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ShowCaption"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetShowCaption.AValue">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.UpdateExclusive">
|
|
<short>
|
|
Sends a message to the parent control when the value in AllowAllUp,
|
|
GroupIndex, or Down is changed.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.AllowAllUp"/>
|
|
<link id="TCustomSpeedButton.GroupIndex"/>
|
|
<link id="TCustomSpeedButton.Down"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetTransparent">
|
|
<short>Gets the value for the Transparent property.</short>
|
|
<descr/>
|
|
<seealso/>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetTransparent.Result">
|
|
<short>Value for the Transparent property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetAlignment">
|
|
<short>Sets the value for the Alignment property.</short>
|
|
<descr/>
|
|
<seealso/>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetAlignment.Value">
|
|
<short>New value for the Alignment property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetAllowAllUp">
|
|
<short>Sets the value for the AllowAllUp property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.AllowAllUp"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetAllowAllUp.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetGlyph">
|
|
<short>Sets the value for the Glyph property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetGlyph.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetLayout">
|
|
<short>Sets the value for the Layout property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Layout"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetLayout.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetShowAccelChar">
|
|
<short>Sets the value for the ShowAccelChar property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ShowAccelChar"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetShowAccelChar.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetTransparent">
|
|
<short>Sets the value for the Transparent property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Transparent"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetTransparent.AValue">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.CMButtonPressed">
|
|
<short>Handles the Control message passed when the button is pressed.</short>
|
|
<descr>
|
|
<p>
|
|
<var>CMButtonPressed</var> is a method used to handle a
|
|
<var>CM_BUTTONPRESSED</var> control message received for the control.
|
|
CMButtonPressed ensures that the Down property is set to <b>False</b> when
|
|
another speed button with the same GroupIndex is pressed. AllowAllUp is
|
|
updated and the control is redrawn.
|
|
</p>
|
|
<p>
|
|
No actions are performed in the method when the control in Message does not
|
|
have the same GroupIndex value.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.CMButtonPressed.Message">
|
|
<short>TLMessage instance examined in the method.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.CMEnabledChanged">
|
|
<short>
|
|
Handles the Control message passed when the Enabled state is changed.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>CMEnabledChanged</var> is a method used to handle the CM_ENABLEDCHANGED
|
|
control message. It re-implements the method from the ancestor class, and
|
|
does not call the inherited method. CMEnabledChanged calls UpdateState to
|
|
(re-)create the glyph using the new state for the speed button and to
|
|
invalidate the drawing area for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.UpdateState"/>
|
|
<link id="TButtonState"/>
|
|
<link id="#lcl.controls.TControl.CMEnabledChanged">TControl.CMEnabledChanged</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.CMEnabledChanged.Message">
|
|
<short>Message handled in the method.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.WMLButtonDown" link="#lcl.controls.TControl.WMLButtonDown"/>
|
|
<element name="TCustomSpeedButton.WMLButtonDown.Message"/>
|
|
|
|
<element name="TCustomSpeedButton.WMLButtonUp" link="#lcl.controls.TControl.WMLButtonUp"/>
|
|
<element name="TCustomSpeedButton.WMLButtonUp.Message"/>
|
|
|
|
<element name="TCustomSpeedButton.WMLButtonDBLCLK" link="#lcl.controls.TControl.WMLButtonDBLCLK"/>
|
|
<element name="TCustomSpeedButton.WMLButtonDBLCLK.Message"/>
|
|
|
|
<element name="TCustomSpeedButton.GetImages">
|
|
<short>Gets the value for the Images property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetImages.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetImages">
|
|
<short>Sets the value for the Images property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetImages.AImages">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetImageIndex">
|
|
<short>Gets the value for the ImageIndex property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetImageIndex.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetImageIndex.AState">
|
|
<short>Drawing state for the requested glyph image.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetImageIndex">
|
|
<short>Sets the value for the ImageIndex property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetImageIndex.AState">
|
|
<short>Drawing state for the specified glyph image.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetImageIndex.AImageIndex">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetImageWidth">
|
|
<short>Gets the value for the ImageWidth property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ImageWidth"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetImageWidth.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetImageWidth">
|
|
<short>Sets the value for the ImageWidth property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ImageWidth"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetImageWidth.AImageWidth">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.FState">
|
|
<short>
|
|
Internal member used to store the TButtonState for the control.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.WSRegisterClass" link="#lcl.lclclasses.TLCLComponent.WSRegisterClass"/>
|
|
|
|
<element name="TCustomSpeedButton.ButtonGlyph">
|
|
<short>Gets the TButtonGlyph used for the control.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.ButtonGlyph.Result">
|
|
<short>TButtonGlyph instance used for the control </short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetNumGlyphs">
|
|
<short>Gets the value for the NumGlyphs property.</short>
|
|
<descr></descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetNumGlyphs.Result">
|
|
<short>Value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GlyphChanged">
|
|
<short>
|
|
Performs actions needed when the value in the Glyph property has been changed.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GlyphChanged</var> implements the handler routine used for the OnChange
|
|
event handler in the Glyph for the control. It is assigned in the Create
|
|
constructor. GlyphChanged calls Invalidate to request the control to be
|
|
redrawn when the glyph image is updated.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Create"/>
|
|
<link id="TButtonGlyph.OnChange"/>
|
|
<link id="#lcl.controls.TControl.Invalidate">TControl.Invalidate</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GlyphChanged.Sender">
|
|
<short>TObject instance for the change notification.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.DialogChar" link="#lcl.controls.TControl.DialogChar"/>
|
|
|
|
<element name="TCustomSpeedButton.CalculatePreferredSize">
|
|
<short>
|
|
Calculates the default height and Width required for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Calls MeasureDraw to gets the values for the variable parameters in
|
|
PreferredWidth and PreferredHeight.
|
|
</p>
|
|
<remark>
|
|
Please note that the WithThemeSpace parameter is <b>NOT</b> used in the
|
|
current implementation.
|
|
</remark>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.CalculatePreferredSize.PreferredWidth">
|
|
<short>Width calculated for the control.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.CalculatePreferredSize.PreferredHeight">
|
|
<short>Height calculated for the control.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.CalculatePreferredSize.WithThemeSpace">
|
|
<short>Not used in the current implementation.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.MeasureDraw">
|
|
<short>
|
|
Calculates the Width and Height for the layout used on the speed button and
|
|
optionally renders the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>MeasureDraw</var> determines the space needed to draw the content for the
|
|
speed button control. Values in the Caption, Glyph, Margin, Spacing, and
|
|
Layout properties are used to determine the layout for the control elements
|
|
and the space needed to draw the control without clipping.
|
|
</p>
|
|
<p>
|
|
When Draw is enabled, the control is rendered to its Canvas using the State,
|
|
Transparent and Layout settings. Otherwise, only measurements are performed in
|
|
the method.
|
|
</p>
|
|
<p>
|
|
No actions are performed in the method if the Glyph property has not been
|
|
assigned for the control; in this case, the output parameters in
|
|
PreferredWidth and PreferredHeight are unchanged from their default values.
|
|
</p>
|
|
<p>
|
|
PaintRect contains the area where the control is drawn on its Canvas, and
|
|
provides the bounds for the background on the control.
|
|
</p>
|
|
<p>
|
|
GetGlyphSize is called to get the dimensions for the glyph bitmap including
|
|
any drawing effect applied in ThemeServices for the control State.
|
|
</p>
|
|
<p>
|
|
When Caption has been assigned and ShowCaption is enabled, the text size is
|
|
included in the calculated space requirements. The values in Margins and
|
|
Spacing are included on the horizontal or vertical size based on the value in
|
|
Layout. Values in Alignment and UseRightToLeftReading are used when the text
|
|
rectangle is calculated. If the Font matches the default System font settings,
|
|
ThemeServices.DrawText is called to measure/render the text for the control.
|
|
</p>
|
|
<p>
|
|
Values in PreferredWidth and PreferredHeight are updated and returned to the
|
|
calling routine in the output parameters.
|
|
</p>
|
|
<p>
|
|
Used in the implementation of the CalculatePreferredSize and Paint methods.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.Margin"/>
|
|
<link id="TCustomSpeedButton.Spacing"/>
|
|
<link id="TCustomSpeedButton.Layout"/>
|
|
<link id="TCustomSpeedButton.Alignment"/>
|
|
<link id="TCustomSpeedButton.State"/>
|
|
<link id="TCustomSpeedButton.Transparent"/>
|
|
<link id="TCustomSpeedButton.CalculatePreferredSize"/>
|
|
<link id="TCustomSpeedButton.PaintBackground"/>
|
|
<link id="TCustomSpeedButton.Paint"/>
|
|
<link id="TCustomSpeedButton.GetDrawDetails"/>
|
|
<link id="TCustomSpeedButton.GetGlyphSize"/>
|
|
<link id="TCustomSpeedButton.GetTextSize"/>
|
|
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
<link id="#lcl.controls.TControl.UseRightToLeftReading">TControl.UseRightToLeftReading</link>
|
|
<link id="#lcl.themes.TThemeServices.DrawText">TThemeServices.DrawText</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MeasureDraw.Draw">
|
|
<short>
|
|
<b>True</b> if the background and content for the control are drawn.
|
|
<b>False</b> to calculate the preferred width and height only.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MeasureDraw.PaintRect">
|
|
<short>
|
|
Drawing area on the canvas where the content is positioned.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MeasureDraw.PreferredWidth">
|
|
<short>
|
|
Returns the preferred width calculated for the control.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MeasureDraw.PreferredHeight">
|
|
<short>
|
|
Returns the preferred height calculated for the control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.MouseEnter" link="#lcl.controls.TControl.MouseEnter"/>
|
|
<element name="TCustomSpeedButton.MouseLeave" link="#lcl.controls.TControl.MouseLeave"/>
|
|
|
|
<element name="TCustomSpeedButton.MouseDown">
|
|
<short>
|
|
Performs actions needed for a mouse down event on the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>MouseDown</var> is an overridden method in
|
|
<var>TCustomSpeedButton</var>. It calls the inherited MouseDown method on
|
|
entry to signal the OnEditingDone event for the active control on the Parent
|
|
form. It also updates the DragManager coordinates when a drag operation is
|
|
already active.
|
|
</p>
|
|
<p>
|
|
No additional actions are performed in the method at design-time.
|
|
</p>
|
|
<p>
|
|
If the Left mouse button was pressed when the control is Enabled, Down is set
|
|
to <b>True</b> (when needed) and the Action for the control is unchecked. An
|
|
internal flag for a pending drag operation in MouseMove is set prior to
|
|
exiting from the method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.MouseDown">TControl.MouseDown</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseDown.Button">
|
|
<short>Button for the mouse event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseDown.Shift">
|
|
<short>Shift, Ctrl, or Alt modifier for the mouse event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseDown.X">
|
|
<short>Horizontal coordinate for the mouse pointer.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseDown.Y">
|
|
<short>Vertical coordinate for the mouse pointer.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.MouseMove">
|
|
<short>
|
|
Performs actions needed for a mouse move message received for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>MouseMove</var> calls the inherited method on entry to update the
|
|
pointer position for the DragManager (when active) and to signal the
|
|
OnMouseMove event handler (when assigned).
|
|
</p>
|
|
<p>
|
|
No additional actions are performed in the method at design-time.
|
|
</p>
|
|
<p>
|
|
if a drag operation has been started in MouseDown, the internal TButtonState
|
|
for the control is updated to reflect the values in AllowAllUp and Down. When
|
|
the button state has changed, the control is redrawn.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.MouseDown"/>
|
|
<link id="TButtonState"/>
|
|
<link id="#lcl.controls.TControl.OnMouseMove">TControl.OnMouseMove</link>
|
|
<link id="#lcl.controls.TControl.MouseMove">TControl.MouseMove</link>
|
|
<link id="#lcl.controls.TControl.WMMouseMove">TControl.WMMouseMove</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseMove.Shift">
|
|
<short>Shift, Ctrl, or Alt modifier for the mouse move event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseMove.X">
|
|
<short>Horizontal coordinate where the mouse pointer was moved.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseMove.Y">
|
|
<short>Vertical coordinate where the mouse pointer was moved.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.MouseUp" link="#lcl.controls.TControl.MouseUp"/>
|
|
<element name="TCustomSpeedButton.MouseUp.Button">
|
|
<short>Button for the mouse event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseUp.Shift">
|
|
<short>Shift, Ctrl, or Alt modifier for the mouse up event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseUp.X">
|
|
<short>Horizontal coordinate for the mouse pointer.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.MouseUp.Y">
|
|
<short>Vertical coordinate for the mouse pointer.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Notification">
|
|
<short>
|
|
Performs actions needed when a sub-component is added or removed for the
|
|
control.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.Notification.AComponent">
|
|
<short>Component for the notification message.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.Notification.Operation">
|
|
<short>Action performed for the notification message.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Paint">
|
|
<short>
|
|
Updates the state for the control, and paints it to the control Canvas.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Paint</var> is an overridden method in <var>TCustomSpeedButton</var>
|
|
used to draw the control to its <var>Canvas</var>.
|
|
</p>
|
|
<p>
|
|
Paint calls UpdateState to ensure that the internal TButtonState for the
|
|
control is updated to reflect its current condition. No additional actions
|
|
are performed in the method when a bitmap has not been assigned in the Glyph
|
|
property.
|
|
</p>
|
|
<p>
|
|
When a Glyph is available, additional actions are performed to draw the
|
|
control to its client rectangle. MeasureDraw is called to draw the
|
|
background, Glyph, and Caption using the layout and state for the control.
|
|
</p>
|
|
<p>
|
|
Paint calls the inherited method prior to exit to signal the OnPaint event
|
|
handler (when assigned).
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TGraphicControl.Paint">TGraphicControl.Paint</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.PaintBackground">
|
|
<short>
|
|
Paints the background for the control to the specified rectangle.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>PaintBackground</var> is a method used to draw the background for the
|
|
speed button control on its Canvas. When Transparent is <b>True</b> and the
|
|
theme element has transparent areas, the value in Color is used to fill the
|
|
drawing area in PaintRect.
|
|
</p>
|
|
<p>
|
|
The DrawElement method in ThemeServices is called to render the drawing area
|
|
to the Canvas for the control. PaintRect is updated following the drawing
|
|
operation with the reduced content rectangle (the button surface without
|
|
borders/edges) needed for the control.
|
|
</p>
|
|
<p>
|
|
PaintBackground is called when the MeasureDraw method is used to render the
|
|
control. The adjusted rectangle is later used in the method to calculate the
|
|
drawing areas for the glyph bitmap and caption text.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Color"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
<link id="TCustomSpeedButton.Paint"/>
|
|
<link id="TCustomSpeedButton.Transparent"/>
|
|
<link id="#lcl.themes.ThemeServices">ThemeServices</link>
|
|
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.PaintBackground.PaintRect">
|
|
<short>Rectangle where the control is drawn.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetDown">
|
|
<short>Sets the value for the Down property.</short>
|
|
<descr>
|
|
<var>SetDown</var> - specifies the Boolean value of <var>Down</var> (i.e.
|
|
whether or not button was pressed)
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Down"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetDown.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetGroupIndex">
|
|
<short>Sets the value for the GroupIndex property.</short>
|
|
<descr>
|
|
<var>SetGroupIndex</var> - specifies the value of the Group Index.
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.GroupIndex"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetGroupIndex.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetFlat">
|
|
<short>Sets the value for the Flat property.</short>
|
|
<descr>
|
|
<var>SetFlat</var> - specifies whether or not the button is displayed
|
|
<var>Flat</var>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Flat"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetFlat.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetMargin">
|
|
<short>Sets the value for the Margin property.</short>
|
|
<descr>
|
|
<var>SetMargin</var> - specifies the size of the margin
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Margin"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetMargin.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetNumGlyphs">
|
|
<short>Sets the value for the NumGlyphs property.</short>
|
|
<descr>
|
|
<var>SetNumGlyphs</var> - specifies the number of glyphs.
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.NumGlyphs"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetNumGlyphs.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SetSpacing">
|
|
<short>Sets the value for the Spacing property.</short>
|
|
<descr>
|
|
<var>SetSpacing</var> - specifies the spacing between buttons.
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Spacing"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.SetSpacing.Value">
|
|
<short>New value for the property.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.RealSetText" link="#lcl.controls.TControl.RealSetText">
|
|
<descr>
|
|
<p>
|
|
Used by SetTextBuf to store a text string rather than performing read/write
|
|
using a PChar buffer
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.RealSetText.Value">
|
|
<short>Value stored in the method.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.UpdateState">
|
|
<short>
|
|
Updates internal members used to track state changes in the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>UpdateState</var> brings the state up to date, implementing any pending
|
|
changes, and rendering non-valid if <var>InvalidateOnChange</var> is
|
|
<b>True</b>.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.UpdateState.InvalidateOnChange">
|
|
<short>
|
|
Indicates if the control is invalidated following a change in state.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetDrawDetails">
|
|
<short>
|
|
Gets the theme element details used to draw the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Called from the <var>MeasureDraw</var> method. The return value can be an
|
|
enumeration value from either <var>TThemedToolBar</var> or
|
|
<var>TThemedButton</var> depending on the value in the <var>Flat</var>
|
|
property.
|
|
</p>
|
|
<p>
|
|
When Flat is <b>True</b>, one of the following TThemedToolBar values is
|
|
returned:
|
|
</p>
|
|
<dl>
|
|
<dt>ttbButtonDisabled</dt>
|
|
<dd>Used when IsEnabled is <b>False</b>.</dd>
|
|
<dt>ttbButtonChecked</dt>
|
|
<dd>Used when Down is <b>True</b> and the mouse pointer is not over the
|
|
control.</dd>
|
|
<dt>ttbButtonCheckedHot</dt>
|
|
<dd>Used when Down is <b>True</b> and the mouse pointer is hovered over the
|
|
control.</dd>
|
|
<dt>ttbButtonPressed</dt>
|
|
<dd>
|
|
Used when Down is <b>False</b> and the mouse is hovered over a grouped button
|
|
control.
|
|
</dd>
|
|
<dt>ttbButtonHot</dt>
|
|
<dd>
|
|
Used when Down is <b>False</b> and the mouse is hovered over a non-grouped
|
|
button control.
|
|
</dd>
|
|
<dt>ttbButtonNormal</dt>
|
|
<dd>Default state for the control.</dd>
|
|
</dl>
|
|
<p>
|
|
When Flat is <b>False</b>, one of the following TThemedButton values is
|
|
returned:
|
|
</p>
|
|
<dl>
|
|
<dt>tbPushButtonDisabled</dt>
|
|
<dd>Used when IsEnabled is <b>False</b>.</dd>
|
|
<dt>tbPushButtonPressed</dt>
|
|
<dd>Used when a grouped button control is Down.</dd>
|
|
<dt>tbPushButtonHot</dt>
|
|
<dd>Used when a grouped button control is under the mouse pointer.</dd>
|
|
<dt>tbPushButtonNormal</dt>
|
|
<dd>Default state for the control.</dd>
|
|
</dl>
|
|
</descr>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetDrawDetails.Result">
|
|
<short>
|
|
Theme element detail used to draw the control in its current state.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.MouseInControl">
|
|
<short>
|
|
Returns <b>True</b> if the mouse pointer is in the display area for the
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
The property value is updated in the <var>MouseEnter</var> and
|
|
<var>MouseLeave</var> methods when the mouse pointer enters or leaves the
|
|
control area. The property value is used in the <var>UpdateState</var> method
|
|
to determine if the button control is drawn using the "up" or "hot" states.
|
|
It is used in the <var>GetDrawDetails</var> method to selected the theme
|
|
element detail needed to draw the control in its current state.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.MouseEnter"/>
|
|
<link id="TCustomSpeedButton.MouseLeave"/>
|
|
<link id="TCustomSpeedButton.UpdateState"/>
|
|
<link id="TCustomSpeedButton.GetDrawDetails"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ActionChange">
|
|
<short>
|
|
Performs action when a new value is assigned to the Action property for the
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ActionChange</var> is overridden in <var>TCustomSpeedButton</var> to
|
|
ensure that values from the new action instance in Sender are stored to
|
|
properties in the control. ActionChange is the routine which implements the
|
|
OnChange event handler for the ActionLink in the control. It is signalled
|
|
(from TControl) when a new value is assigned to the Action property, or when
|
|
the control is loaded using LCL component streaming.
|
|
</p>
|
|
<p>
|
|
Sender is the new action instance for the event, or <b>Nil</b> when the value
|
|
in Action has been removed (set to <b>Nil</b>).
|
|
</p>
|
|
<p>
|
|
CheckDefaults indicates whether existing properties values in the control are
|
|
used as default values. When set to <b>False</b>, the values from the action
|
|
instance are applied to the control. Values from the action may be used (when
|
|
assigned) if the properties in the control are unassigned - even when
|
|
CheckDefaults is <b>True</b>.
|
|
</p>
|
|
<p>
|
|
ActionChange calls the inherited method to update property values like
|
|
Caption, Enabled, Hint, Visible, HelpContext and HelpKeyword. When Sender is
|
|
a TCustomAction instance, the values in GroupIndex, ImageIndex, and Images
|
|
are also updated with the values from the action.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.ActionChange">TControl.ActionChange</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.ActionChange.Sender">
|
|
<short>New action instance for the event.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.ActionChange.CheckDefaults">
|
|
<short>
|
|
<b>True</b> to use existing properties as default values, <b>False</b> to use
|
|
properties from the new action.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetActionLinkClass" link="#lcl.controls.TControl.GetActionLinkClass"/>
|
|
<element name="TCustomSpeedButton.GetActionLinkClass.Result"/>
|
|
|
|
<element name="TCustomSpeedButton.GetControlClassDefaultSize" link="#lcl.controls.TControl.GetControlClassDefaultSize"/>
|
|
|
|
<element name="TCustomSpeedButton.Loaded">
|
|
<short>
|
|
Performs actions needed when LCL component streaming is completed for the
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Loaded</var> is called by the LCL streaming system when a root component
|
|
was completely read from a stream and all properties and references to other
|
|
objects have been resolved. Descendents of <var>TComponent</var> should
|
|
override this method to perform additional processing when all published
|
|
properties have been set from values obtained from the LCL component stream.
|
|
</p>
|
|
<p>
|
|
Application programmers should never call <var>Loaded</var> directly; this is
|
|
done automatically by the LCL streaming system.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#rtl.Classes.TComponent">TComponent</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetGlyphSize">
|
|
<short>
|
|
Gets the size of the glyph within the specified <var>PaintRect</var>.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetGlyphSize</var> is a <var>TSize</var> function used to get the size
|
|
of the glyph within the client rectangle specified in the
|
|
<var>PaintRect</var> argument. The return value contains the Width (in CX)
|
|
and the height (in CY). The member values are retrieved from a scaled image
|
|
resolution for the glyph bitmaps in ButtonGlyph. The values are scaled to the
|
|
client rectangle using the PixelsPerInch for the Font and the Canvas scaling
|
|
factor for the control.
|
|
</p>
|
|
<p>
|
|
Use GetTextSize to get the Width and height or the Caption displayed on the
|
|
control.
|
|
</p>
|
|
<p>
|
|
GetGlyphSize is used in the implementation of the MeasureDraw method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="TCustomSpeedButton.GetTextSize"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetGlyphSize.Result">
|
|
<short>
|
|
TSize instance with the Width (CX) and height ( CY) for the glyph .
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetGlyphSize.Drawing">
|
|
<short>
|
|
<b>True</b> if the control is drawing, <b>False</b> if the control is
|
|
measuring its components.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetGlyphSize.PaintRect">
|
|
<short>Client rectangle for the control.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GetTextSize">
|
|
<short>
|
|
Gets the size of the Caption text within the specified <var>PaintRect</var>.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetTextSize</var> is a <var>TSize</var> function used to get the
|
|
dimensions for the <var>Caption</var> text for the control. It calculates the
|
|
dimensions for the text using the TextStyle and Font assigned to the control
|
|
Canvas.
|
|
</p>
|
|
<p>
|
|
The return value is a TSize instance where the CX and CY members represent
|
|
the width and height for the text. The DrawText routine in the LCL interface
|
|
is called to calculate the dimensions using the text style, flags, and the
|
|
PaintRect for the control. The coordinates from the updated PaintRect are
|
|
stored in CX and CY in the return value. Both members are set to <b>0</b>
|
|
when ShowCaption is <b>False</b> or Caption contains an empty string
|
|
(<b>''</b>).
|
|
</p>
|
|
<p>
|
|
GetTextSize is called from the <var>MeasureDraw</var> method.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.ShowCaption"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
<link id="#lcl.controls.TControl.Font">TControl.Font</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetTextSize.Result">
|
|
<short>TSize instance with the dimensions for the caption text.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetTextSize.Drawing">
|
|
<short>Not used in the current implementation.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.GetTextSize.PaintRect">
|
|
<short>
|
|
Display rectangle for the control; updated in the method with the calculated
|
|
text dimensions.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.DrawGlyph">
|
|
<short>
|
|
Draws the glyph image on the canvas at a given offset in the specified client
|
|
rectangle.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Uses the internal TButtonGlyph instance for the control (when assigned) to
|
|
access its Draw method. The PixelsPerInch setting in Font and the Canvas
|
|
scaling factor for the control are used to scale the image.
|
|
</p>
|
|
<p>
|
|
The return value is a TRect instance with are needed to draw the glyph image
|
|
on the the specified canvas. Its member values are set to 0 (zero) when a
|
|
TButtonGlyph instance has not been assigned by setting a Glyph bitmap for the
|
|
control.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.Result">
|
|
<short>TRect instance used to draw the glyph bitmap.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.ACanvas">
|
|
<short>Canvas where the control is glyph is drawn.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.AClient">
|
|
<short>Client rectangle for the drawing operation.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.AOffset">
|
|
<short>Offset into the client rectangle where the glyph is drawn.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.AState">
|
|
<short>Button state drawn for the control.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.ATransparent">
|
|
<short><b>True</b> if the glyph image is drawn with transparency.</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.DrawGlyph.BiDiFlags">
|
|
<short>Not used in the current implementation.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Create">
|
|
<short>
|
|
<var>Create</var> - constructor for <var>TCustomSpeedButton</var>: calls
|
|
inherited <var>Create</var> and initializes many defaults and properties.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Create</var> is the constructor for <var>TCustomSpeedButton</var>. It
|
|
calls the inherited <var>Create</var> method and sets the default values for
|
|
properties in the class instance. Among the properties set are Glyph, the
|
|
initial bounds, control style, layout, color, caption and mouse responses.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TGraphicControl.Create">TGraphicControl.Create</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.Create.AOwner">
|
|
<short>Owner of the class instance.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Destroy">
|
|
<short>
|
|
<var>Destroy</var> - destructor for <var>TCustomSpeedButton</var>: frees
|
|
Glyph then calls inherited <var>Destroy</var>.
|
|
</short>
|
|
<descr>
|
|
<var>Destroy</var> is the destructor for <var>TCustomSpeedButton</var>. It
|
|
frees resources allocated to the Glyph property, and calls the inherited
|
|
<var>Destroy</var> method.
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TGraphicControl.Destroy">TGraphicControl.Destroy</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.FindDownButton">
|
|
<short>
|
|
Gets the speed button with the same GroupIndex that has its Down property set.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>FindDownButton</var> locates a <var>TCustomSpeedButton</var> instance on
|
|
the parent form which has the same GroupIndex and its Down property is set to
|
|
<b>True</b>. FindDownButton visits each of the child controls on the parent
|
|
form to find the speed buttons in the list of controls.
|
|
</p>
|
|
<p>
|
|
The return value contains the TCustomSpeedButton instance located. The return
|
|
value is <b>Nil</b> if another speed button does not exist, is not in the
|
|
same group, or is not Down.
|
|
</p>
|
|
<p>
|
|
No actions are performed in the method if the Down property in the current
|
|
class instance is set, or when GroupIndex is <b>0</b> (zero). The return
|
|
value is the current class instance in this circumstance.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.GroupIndex"/>
|
|
<link id="TCustomSpeedButton.Down"/>
|
|
<link id="#lcl.controls.TControl.Parent">TControl.Parent</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.FindDownButton.Result">
|
|
<short>The speed button in the group which is down.</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Click" link="#lcl.controls.TControl.Click"/>
|
|
|
|
<element name="TCustomSpeedButton.LoadGlyphFromResourceName">
|
|
<short>
|
|
Loads the image for the Glyph with the specified name from a resource
|
|
instance.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.LoadGlyphFromResourceName.Instance">
|
|
<short>
|
|
Handle for the resource with the specified glyph.
|
|
</short>
|
|
</element>
|
|
<element name="TCustomSpeedButton.LoadGlyphFromResourceName.AName">
|
|
<short>
|
|
Name of the glyph image resource loaded for the control.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.LoadGlyphFromLazarusResource">
|
|
<short>
|
|
<var>LoadGlyphFromLazarusResource</var> - method for loading a glyph from a
|
|
Lazarus Resource file (.lrs).
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="TCustomSpeedButton.LoadGlyphFromLazarusResource.AName">
|
|
<short>
|
|
Name of the glyph image loaded from the Lazarus resource.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Alignment">
|
|
<short>
|
|
Horizontal alignment for the text displayed on the button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Alignment</var> is a <var>TAlignment</var> property with the horizontal
|
|
alignment for the <var>Caption</var> displayed on the button control.
|
|
Alignment is used (along with <var>UseRightToLeftReading</var>) in the
|
|
<var>MeasureDraw</var> method to set the text flags needed to measure / draw
|
|
the Caption> for the control.
|
|
</p>
|
|
<p>
|
|
The default value for the property is <var>taCenter</var>, and causes the
|
|
Caption to be centered in the text area on the control. Use <var>taLeft</var>
|
|
to left-align the Caption in the text area. Use <var>taRight</var> to
|
|
right-align the Caption for the control. Changing the value for the property
|
|
causes the control to be redrawn.
|
|
</p>
|
|
<p>
|
|
Set the value in <var>ShowCaption</var> to <b>True</b> to display the Caption
|
|
for the control.
|
|
</p>
|
|
<p>
|
|
Use the <var>Layout</var> property to control the placement of the image
|
|
relative to the text value displayed on the control.
|
|
</p>
|
|
<p>
|
|
Use the <var>Align</var> property to specify the side on the parent control
|
|
to which the speed button is aligned, or to specify that custom
|
|
<var>Anchors</var> are used for positioning and sizing.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Layout"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
<link id="TCustomSpeedButton.ShowCaption"/>
|
|
<link id="#lcl.controls.TControl.Align">TControl.Align</link>
|
|
<link id="#lcl.controls.TControl.Anchors">TControl.Anchors</link>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
<link id="#lcl.controls.TControl.UseRightToLeftReading">TControl.UseRightToLeftReading</link>
|
|
<link id="#rtl.classes.TAlignment">TAlignment</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.AllowAllUp">
|
|
<short>
|
|
Indicates if all buttons in a group can be in an up state.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>AllowAllUp</var> is a <var>Boolean</var> property which indicates
|
|
whether all speed buttons with the same <var>GroupIndex</var> value can be in
|
|
the "up" state. The default value for the property is <b>False</b>, and means
|
|
that one of the grouped speed buttons must have its <var>Down</var> property
|
|
set to <b>True</b> when GroupIndex has a non-zero value.
|
|
</p>
|
|
<p>
|
|
Changing the value for the property causes a button pressed event to be sent
|
|
to the Parent control (when assigned) and the Down property is toggled and
|
|
updated for the new property value.
|
|
</p>
|
|
<p>
|
|
Set GroupIndex to a value other than 0 (zero) to use AllowAllUp when a mouse
|
|
button or an accelerator key is handled for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.GroupIndex"/>
|
|
<link id="TCustomSpeedButton.Down"/>
|
|
<link id="TCustomSpeedButton.MouseUp"/>
|
|
<link id="TCustomSpeedButton.DialogChar"/>
|
|
<link id="#lcl.controls.TControl.Parent">TControl.Parent</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Color">
|
|
<short>
|
|
The background color for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
The default value for the property is clBtnFace in TCustomSpeedButton.
|
|
</p>
|
|
<p>
|
|
If the color is clDefault, the result will need to be passed through
|
|
GetDefaultColor to resolve clDefault to a TColor value. Convenience routines
|
|
which obtain the color by resolving clDefault and ParentColor are also
|
|
provided in the GetColorResolvingParent and GetRGBColorResolvingParent
|
|
methods.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
|
|
<link id="#lcl.controls.TControl.ParentColor">TControl.ParentColor</link>
|
|
<link id="#lcl.controls.TControl.GetDefaultColor">TControl.GetDefaultColor</link>
|
|
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
|
|
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParent</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.DisabledImageIndex">
|
|
<short>
|
|
Ordinal position for the image displayed when the control is disabled.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>DisabledImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the bitmap displayed when Enabled is set to
|
|
<b>False</b>. It indicates the position in Images or Glyph where the image
|
|
data is stored. The default value for the property is -1, and indicates that
|
|
an explicit value has not been assigned for the property.
|
|
</p>
|
|
<p>
|
|
The property value is read from and written to the image index members in
|
|
ButtonGlyph.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.HotImageIndex"/>
|
|
<link id="TCustomSpeedButton.PressedImageIndex"/>
|
|
<link id="TCustomSpeedButton.SelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Down">
|
|
<short>Indicates if the button has been set to the Down state.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Down</var> is a <var>Boolean</var> property which indicates whether the
|
|
button control is in the down (or pressed) state. The default value for the
|
|
property is <b>False</b>. Changing the value for the property causes the
|
|
control to be redrawn.
|
|
</p>
|
|
<p>
|
|
The value in Down is toggled in the DialogChar method when ShowAccelChar has
|
|
been enabled and the accelerator key in Caption is received for the control.
|
|
This also calls the Click method to execute the OnClick event handler or the
|
|
action for the control.
|
|
</p>
|
|
<p>
|
|
Down is used in the UpdateState method, along with GroupIndex and
|
|
MouseInControl, to determine the current TButtonState for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso/>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Flat">
|
|
<short>
|
|
Indicates whether the button is displayed with a Flat (non-relief) appearance.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Set <var>Flat</var> to <b>True</b> to draw the control without relief,
|
|
elevation, or a three-dimensional appearance. The default value for the
|
|
property is <b>False</b>. Changing the value for the property causes the
|
|
control to be redrawn.
|
|
</p>
|
|
<p>
|
|
Flat is used in the <var>GetDrawDetails</var> method to select the theme
|
|
element details applied to the control for its current state. When set to
|
|
<b>False</b>, TThemedButton element details are used. When set to
|
|
<b>True</b>, TThemedToolBar element details are used. See <link
|
|
id="TCustomSpeedButton.GetDrawDetails">GetDrawDetails</link> for more
|
|
information about the values used for specific button states.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.GetDrawDetails"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Glyph">
|
|
<short>The bitmap with the glyph image(s) displayed for button states.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Glyph</var> is a <var>TBitmap</var> property with the image drawn for
|
|
the button control. Read and write access to the property value are
|
|
redirected to an internal <var>TButtonGlyph</var> instance for the control.
|
|
This allows a single image to be specified for Glyph, or multiple bitmaps for
|
|
various button states using the Images property.
|
|
</p>
|
|
<p>
|
|
Changing the value for the property cause the control to be redrawn.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.DisabledImageIndex"/>
|
|
<link id="TCustomSpeedButton.HotImageIndex"/>
|
|
<link id="TCustomSpeedButton.PressedImageIndex"/>
|
|
<link id="TCustomSpeedButton.SelectedImageIndex"/>
|
|
<link id="TButtonGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.GroupIndex">
|
|
<short>
|
|
Identifies the group to which the speed button control belongs.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GroupIndex</var> is used with <var>AllowAllUp</var> and <var>Down</var>
|
|
to determine if the button state can be changed within the related group of
|
|
controls. All buttons on the Parent control with the same value in GroupIndex
|
|
are treated as a single group. The default value for the property is 0
|
|
(zero), and indicates that an explicit value has not been assigned for the
|
|
property.
|
|
</p>
|
|
<p>
|
|
Set GroupIndex to a positive non-zero value to enable AllowAllUp checking
|
|
when a mouse button event or an accelerator key is handled for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.AllowAllUp"/>
|
|
<link id="TCustomSpeedButton.Down"/>
|
|
<link id="TCustomSpeedButton.MouseUp"/>
|
|
<link id="TCustomSpeedButton.DialogChar"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.HotImageIndex">
|
|
<short>
|
|
Ordinal position for the glyph bitmap displayed when the mouse is hovered
|
|
over the button control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>HotImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the bitmap displayed when the mouse cursor is hovered
|
|
over the control. The default value for the property is -1, and indicates
|
|
that an explicit value has not been assigned for the property.
|
|
</p>
|
|
<p>
|
|
The property value is read from and written to the image index members in
|
|
ButtonGlyph.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="TCustomSpeedButton.DrawGlyph"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.DisabledImageIndex"/>
|
|
<link id="TCustomSpeedButton.PressedImageIndex"/>
|
|
<link id="TCustomSpeedButton.SelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Images">
|
|
<short>
|
|
List of images available for use as state glyphs on the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Provides an alternate way to specify images (individually) as opposed to
|
|
multiple adjacent bitmaps in Glyph.
|
|
</p>
|
|
<p>
|
|
Use ImageIndex to specify the ordinal position in Images for the glyph bitmap
|
|
displayed on the control.
|
|
</p>
|
|
<p>
|
|
Use Glyph to access an image in the TButtonGlyph assigned to the control.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ImageIndex">
|
|
<short>
|
|
Ordinal position for the glyph bitmap displayed when the button is in its up
|
|
state.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
ImageIndex is a TImageIndex property with the ordinal position for the glyph
|
|
bitmap displayed when the button is in its up state. The default value for
|
|
the property is -1, and indicates that an explicit value has not been
|
|
assigned for the property.
|
|
</p>
|
|
<p>
|
|
The property value is read from and written to the image index members in
|
|
ButtonGlyph.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="TCustomSpeedButton.DrawGlyph"/>
|
|
<link id="TCustomSpeedButton.DisabledImageIndex"/>
|
|
<link id="TCustomSpeedButton.HotImageIndex"/>
|
|
<link id="TCustomSpeedButton.PressedImageIndex"/>
|
|
<link id="TCustomSpeedButton.SelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ImageWidth">
|
|
<short>
|
|
Width for the glyph bitmap displayed on the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ImageWidth</var> is an <var>Integer</var> property with the Width in
|
|
pixels for the TCustomImage instances stored in the Images property. The
|
|
default value for the property is 0, and indicates that an explicit value has
|
|
not been assigned for the property. This causes the Width property in the
|
|
TCustomImageList to be used for an image retrieved from the list.
|
|
</p>
|
|
<p>
|
|
Changing the property value causes the external TButtonGlyph instance in the
|
|
class to be updated with the new value. InvalidatePreferredSize is called to
|
|
recalculate the preferred dimensions for the class instance. AdjustSize is
|
|
called to auto-size the visible control and its parent.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TButtonGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Layout">
|
|
<short>
|
|
Indicates the alignment of the glyph bitmap relative to the caption for the
|
|
control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Layout</var> is a <var>TButtonLayout</var> property which indicates the
|
|
position for the glyph on the speed button relative to the caption text for
|
|
the control. The default value for the property is blGlyphLeft. It causes the
|
|
Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge
|
|
of the button surface.
|
|
</p>
|
|
<p>
|
|
Changing the property value causes the control to be redrawn.
|
|
</p>
|
|
<p>
|
|
Layout is used in the MeasureDraw method to position and size the text and
|
|
glyph image for the button.
|
|
</p>
|
|
<p>
|
|
Use Margin to set the space reserved prior to the glyph bitmap on the aligned
|
|
edge of the control. Use Spacing to set the space reserved between the Glyph
|
|
image and the Caption relative to the aligned edge of the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.Margin"/>
|
|
<link id="TCustomSpeedButton.Spacing"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
<link id="TButtonLayout"/>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Margin">
|
|
<short>
|
|
Space between the glyph bitmap and the aligned edge in the button layout.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>Margin</var> is an <var>Integer</var> property with the space reserved
|
|
between the Glyph image an the edge of the control. It occurs on the edge
|
|
specified in Layout, and generally refers to a number of pixels. The value -1
|
|
has special meaning; it causes both the glyph and caption to be centered on
|
|
the button surface.
|
|
</p>
|
|
<p>
|
|
Margin is used in the MeasureDraw method when the glyph image and caption text
|
|
are positioned and sized on the control.
|
|
</p>
|
|
<p>
|
|
Use Layout to specify the edge on the button control to which the glyph
|
|
bitmap and caption are aligned.
|
|
</p>
|
|
<p>
|
|
Use Spacing to set the space reserved between the glyph bitmap and the
|
|
caption for the control.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.Layout"/>
|
|
<link id="TCustomSpeedButton.Spacing"/>
|
|
<link id="TCustomSpeedButton.MeasureDraw"/>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.NumGlyphs">
|
|
<short>
|
|
The number of glyph bitmaps available for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>NumGlyphs</var> is an <var>Integer</var> property which contains the
|
|
number of glyph images available to the button control. Its value is read from
|
|
and written to the NumGlyphs property in the internal TButtonGlyph instance
|
|
used in the control.
|
|
</p>
|
|
<p>
|
|
The default value for the property is 1, and is set when a bitmap is assigned
|
|
to the Glyph property or an image list is assigned to Images. Changing the
|
|
value for the property causes the control to be redrawn.
|
|
</p>
|
|
<p>
|
|
Use Images to assign a user-specified list of images that can be used as the
|
|
glyph for the button states. Use ImageIndex, PressedImageIndex, HotImageIndex,
|
|
and DisabledImageIndex to specify which image is displayed on the control for
|
|
the button states.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.PressedImageIndex"/>
|
|
<link id="TCustomSpeedButton.HotImageIndex"/>
|
|
<link id="TCustomSpeedButton.DisabledImageIndex"/>
|
|
<link id="TButtonGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.PressedImageIndex">
|
|
<short>
|
|
Ordinal position for the glyph bitmap displayed when the button is in a
|
|
pressed (down) state.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>PressedImageIndex</var> is a <var>TImageIndex</var> property with the
|
|
ordinal position for the glyph bitmap displayed when the Down property is
|
|
<b>True</b>. The default value for the property is -1, and indicates that an
|
|
explicit value has not been assigned for the property.
|
|
</p>
|
|
<p>
|
|
The property value is read from and written to the image index members in
|
|
ButtonGlyph.
|
|
</p>
|
|
<p>
|
|
The Lazarus IDE provides a property editor that allows selection of one of the
|
|
Images from a drop-down image list. The position for the selected image is
|
|
stored as the property value in the Object Inspector.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.Images"/>
|
|
<link id="TCustomSpeedButton.Glyph"/>
|
|
<link id="TCustomSpeedButton.ButtonGlyph"/>
|
|
<link id="TCustomSpeedButton.DrawGlyph"/>
|
|
<link id="TCustomSpeedButton.DisabledImageIndex"/>
|
|
<link id="TCustomSpeedButton.HotImageIndex"/>
|
|
<link id="TCustomSpeedButton.ImageIndex"/>
|
|
<link id="TCustomSpeedButton.SelectedImageIndex"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.SelectedImageIndex">
|
|
<short>
|
|
Ordinal position for the glyph bitmap displayed when the button is selected.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
SelectedImageIndex is a TImageIndex property. The default value for the
|
|
property is -1, and indicates that an explicit value has not been assigned
|
|
for the property.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Added in LCL version 2.3.0. Available since version 3.0.
|
|
</version>
|
|
<seealso/>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ShowAccelChar">
|
|
<short>
|
|
Indicates if the accelerator key (shortcut) is displayed in the Caption for
|
|
the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>ShowAccelChar</var> is a <var>Boolean</var> property which controls
|
|
whether an accelerator key in Caption is displayed as an underlined
|
|
character. The accelerator (or shortcut) key in Caption is identified by the
|
|
'&' character, with the subsequent character used as the accelerator key.
|
|
</p>
|
|
<p>
|
|
When set to <b>False</b>, the underlined character is not drawn in Caption
|
|
and the accelerator key is not handled in the DialogChar method.
|
|
</p>
|
|
<p>
|
|
The default value for ShowAccelChar is <b>True</b>. Changing the value for
|
|
the property causes the control to be redrawn.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomSpeedButton.DialogChar"/>
|
|
<link id="TCustomSpeedButton.ShowCaption"/>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.ShowCaption">
|
|
<short>Indicates if the Caption for the speed button is displayed.</short>
|
|
<descr>
|
|
<p>
|
|
The default value for the property is <b>True</b>. Changing the value for the
|
|
property causes the control to be redrawn.
|
|
</p>
|
|
<p>
|
|
ShowCaption is used in the MeasureDraw method. When set to <b>True</b>, the
|
|
text extent for Caption is displayed using the Font and Layout for the
|
|
control. It is also used in the GetTextSize method when the text extent is
|
|
calculated.
|
|
</p>
|
|
</descr>
|
|
<seealso/>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Spacing">
|
|
<short>
|
|
Spacing between the Glyph bitmap and the Caption for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
If Spacing is -1 and Margin is -1 then the glyph and the Caption are
|
|
centered, with the same amount of unused space on each side of the control.
|
|
If Spacing is -1 and Margin is not -1 then Spacing will fill the remaining
|
|
unused space.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TCustomSpeedButton.Transparent">
|
|
<short>Indicates if the control is drawn with transparency.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Transparent</var> is a <var>Boolean</var> property which indicates
|
|
whether the control is drawn with transparency. Changing the value for the
|
|
property causes the ControlStyle property to be updated to include or exclude
|
|
the csOpaque flag as needed, and the control is redrawn. The property value
|
|
is read from and written to the TransparentMode property in ButtonGlyph.
|
|
</p>
|
|
<p>
|
|
The property value is passed as an argument to the DrawGlyph method when
|
|
MeasureDraw is executed. When set to <b>False</b>, the PaintBackground method
|
|
fills the display area with the background Color when theme element details
|
|
have transparent areas.
|
|
</p>
|
|
</descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButton">
|
|
<short>A Button used to represent states (checked or unchecked).</short>
|
|
<descr>
|
|
<p>
|
|
The Speed Button is designed to automate a process when it is selected. An
|
|
user pushes a button to start an action or set a mode.
|
|
</p>
|
|
<p>
|
|
When a user clicks on a SpeedButton focus is not shifted; a Speed Button
|
|
never gets focus. The button may carry an descriptive glyph, and has a state
|
|
(checked or not, etc).
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.stdctrls.HowToUseStdCtrls">How To Use Standard Controls</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButton.Action" link="#lcl.controls.TControl.Action"/>
|
|
<element name="TSpeedButton.Align" link="#lcl.controls.TControl.Align"/>
|
|
<element name="TSpeedButton.Alignment" link="#lcl.buttons.TCustomSpeedButton.Alignment"/>
|
|
<element name="TSpeedButton.AllowAllUp" link="#lcl.buttons.TCustomSpeedButton.AllowAllUp"/>
|
|
<element name="TSpeedButton.Anchors" link="#lcl.controls.TControl.Anchors"/>
|
|
<element name="TSpeedButton.AutoSize" link="#lcl.controls.TControl.AutoSize"/>
|
|
|
|
<element name="TSpeedButton.BidiMode">
|
|
<short>Indicates the bi-directional text mode for the control.</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButton.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
|
|
<element name="TSpeedButton.Constraints" link="#lcl.controls.TControl.Constraints"/>
|
|
|
|
<element name="TSpeedButton.Caption">
|
|
<short>
|
|
String with the caption displayed for the control.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Gets caption as a text-string (<var>GetText</var>), or stores the new caption
|
|
(<var>SetText</var>). Shows flag if caption is stored
|
|
(<var>IsCaptionStored</var>).
|
|
</p>
|
|
<p>
|
|
By default, the <var>Caption</var> appears the same as the control
|
|
<var>Name</var> in the Object Inspector, and the developer needs to set it
|
|
explicitly to some new text.
|
|
</p>
|
|
<p>
|
|
The VCL implementation relies on the virtual <var>Get/SetTextBuf</var> to
|
|
exchange text between widgets and VCL. This means a lot of (unnecessary) text
|
|
copies.
|
|
</p>
|
|
<p>
|
|
The LCL uses strings for exchanging text (more efficient). To maintain VCL
|
|
compatibility, the virtual <var>RealGet/SetText</var> is introduced. These
|
|
functions interface with the LCLInterface.
|
|
</p>
|
|
<p>
|
|
The default <var>Get/SetTextBuf</var> implementation calls the
|
|
<var>RealGet/SetText</var>. As long as the <var>Get/SetTextBuf</var> isn't
|
|
overridden <var>Get/SetText</var> calls <var>RealGet/SetText</var> to avoid
|
|
PChar copying.
|
|
</p>
|
|
<p>
|
|
To keep things optimal, LCL implementations should always override
|
|
RealGet/SetText. Get/SetTextBuf is only kept for compatibility.
|
|
</p>
|
|
</descr>
|
|
<version>
|
|
Modified in LCL version 3.0 to allow a multi-line value to be entered in the
|
|
Object Inspector at design-time.
|
|
</version>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.Caption">TControl.Caption</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButton.Color" link="#lcl.buttons.TCustomSpeedButton.Color"/>
|
|
<element name="TSpeedButton.DisabledImageIndex" link="#lcl.buttons.TCustomSpeedButton.DisabledImageIndex"/>
|
|
<element name="TSpeedButton.Down" link="#lcl.buttons.TCustomSpeedButton.Down"/>
|
|
<element name="TSpeedButton.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
|
|
<element name="TSpeedButton.DragKind" link="#lcl.controls.TControl.DragKind"/>
|
|
<element name="TSpeedButton.DragMode" link="#lcl.controls.TControl.DragMode"/>
|
|
<element name="TSpeedButton.Enabled" link="#lcl.controls.TControl.Enabled"/>
|
|
<element name="TSpeedButton.Flat" link="#lcl.buttons.TCustomSpeedButton.Flat"/>
|
|
<element name="TSpeedButton.Font" link="#lcl.controls.TControl.Font"/>
|
|
<element name="TSpeedButton.Glyph" link="#lcl.buttons.TCustomSpeedButton.Glyph"/>
|
|
<element name="TSpeedButton.GroupIndex" link="#lcl.buttons.TCustomSpeedButton.GroupIndex"/>
|
|
<element name="TSpeedButton.HotImageIndex" link="#lcl.buttons.TCustomSpeedButton.HotImageIndex"/>
|
|
<element name="TSpeedButton.Images" link="#lcl.buttons.TCustomSpeedButton.Images"/>
|
|
<element name="TSpeedButton.ImageIndex" link="#lcl.buttons.TCustomSpeedButton.ImageIndex"/>
|
|
<element name="TSpeedButton.ImageWidth" link="#lcl.buttons.TCustomSpeedButton.ImageWidth"/>
|
|
<element name="TSpeedButton.Layout" link="#lcl.buttons.TCustomSpeedButton.Layout"/>
|
|
<element name="TSpeedButton.Margin" link="#lcl.buttons.TCustomSpeedButton.Margin"/>
|
|
<element name="TSpeedButton.NumGlyphs" link="#lcl.buttons.TCustomSpeedButton.NumGlyphs"/>
|
|
<element name="TSpeedButton.PressedImageIndex" link="#lcl.buttons.TCustomSpeedButton.PressedImageIndex"/>
|
|
<element name="TSpeedButton.SelectedImageIndex" link="#lcl.buttons.TCustomSpeedButton.SelectedImageIndex"/>
|
|
<element name="TSpeedButton.Spacing" link="#lcl.buttons.TCustomSpeedButton.Spacing"/>
|
|
<element name="TSpeedButton.Transparent" link="#lcl.buttons.TCustomSpeedButton.Transparent"/>
|
|
|
|
<element name="TSpeedButton.Visible">
|
|
<short>
|
|
Indicates if the control is visible on its parent.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
The <var>Visible</var> property indicates whether a visual control is
|
|
displayed. If Visible is <b>True</b> the control is shown, otherwise it is
|
|
hidden. Calling Show sets Visible to <b>True</b>. Setting Visible to
|
|
<b>False</b> is equivalent to calling the Hide method.
|
|
</p>
|
|
<remark>
|
|
The Visible property does not use the visibility for the parent control. Use
|
|
the IsVisible method to get the realized visibility.
|
|
</remark>
|
|
</descr>
|
|
<seealso>
|
|
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="TSpeedButton.OnClick" link="#lcl.controls.TControl.OnClick"/>
|
|
<element name="TSpeedButton.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
|
|
<element name="TSpeedButton.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
|
|
<element name="TSpeedButton.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
|
|
<element name="TSpeedButton.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
|
|
<element name="TSpeedButton.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
|
|
<element name="TSpeedButton.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
|
|
<element name="TSpeedButton.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
|
|
<element name="TSpeedButton.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
|
|
<element name="TSpeedButton.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
|
|
<element name="TSpeedButton.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
|
|
<element name="TSpeedButton.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
|
|
<element name="TSpeedButton.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
|
|
<element name="TSpeedButton.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
|
|
<element name="TSpeedButton.OnPaint" link="#lcl.controls.TGraphicControl.OnPaint"/>
|
|
<element name="TSpeedButton.OnResize" link="#lcl.controls.TControl.OnResize"/>
|
|
<element name="TSpeedButton.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
|
|
<element name="TSpeedButton.OnChangeBounds" link="#lcl.controls.TControl.OnChangeBounds"/>
|
|
<element name="TSpeedButton.ShowCaption" link="#lcl.buttons.TCustomSpeedButton.ShowCaption"/>
|
|
<element name="TSpeedButton.ShowHint" link="#lcl.controls.TControl.ShowHint"/>
|
|
<element name="TSpeedButton.ParentBidiMode" link="#lcl.controls.TControl.ParentBidiMode"/>
|
|
<element name="TSpeedButton.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
|
|
<element name="TSpeedButton.ParentShowHint" link="#lcl.controls.TControl.ParentShowHint"/>
|
|
<element name="TSpeedButton.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
|
|
|
|
<element name="TGetDefaultBitBtnGlyph">
|
|
<short>
|
|
<var>TGetDefaultBitBtnGlyph</var> - generic method to return a default Bit
|
|
Button Glyph of specified Kind.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="GetDefaultBitBtnGlyph">
|
|
<short>
|
|
Address of the routine used to get default glyphs for TBitBtn instances.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetDefaultBitBtnGlyph</var> is a <var>TGetDefaultBitBtnGlyph</var>
|
|
variable with the address for the routine used to get the default glyphs for
|
|
<var>TBitBtn</var> instances in the application.
|
|
</p>
|
|
<p>
|
|
<var>Kind</var> is a <var>TBitBtnKind</var> argument that identifies the
|
|
content needed in the bitmap returned from the function.
|
|
</p>
|
|
<p>
|
|
<var>Handled</var> is a <var>Boolean</var> value which indicates if the
|
|
<var>TBitmap</var> instance was successfully created and loaded in the
|
|
routine.
|
|
</p>
|
|
<p>
|
|
Create a function using the signature in TGetDefaultBitBtnGlyph, and assign
|
|
it the variable to use custom bitmaps for the glyphs in TBitBtn. For example:
|
|
</p>
|
|
<code>
|
|
// provides Ok and Cancel glyphs
|
|
function GetCustomBitBtnGlyph(Kind: TBitBtnKind; Handled: Boolean): TBitmap;
|
|
begin
|
|
if Kind in [bkOK, bkCancel] then
|
|
begin
|
|
Result := TBitmap.Create;
|
|
case Kind of
|
|
bkOk: Result.Assign(MyOkGlyph);
|
|
bkCancel: Result.Assign(MyCancelGlyph);
|
|
end;
|
|
end
|
|
else
|
|
Result := Nil;
|
|
|
|
Handled := (Result <> Nil);
|
|
end;
|
|
|
|
// assign the routine to the GetDefaultBitBtnGlyph variable
|
|
Buttons.GetDefaultBitBtnGlyph := @GetCustomBitBtnGlyph;
|
|
</code>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TGetDefaultBitBtnGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="GetLCLDefaultBtnGlyph">
|
|
<short>
|
|
Gets the default LCL button glyph for the specified button Kind.
|
|
</short>
|
|
<descr>
|
|
</descr>
|
|
<seealso>
|
|
<link id="GetDefaultBitBtnGlyph"/>
|
|
<link id="TGetDefaultBitBtnGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="GetLCLDefaultBtnGlyph.Result">
|
|
<short>
|
|
TGraphic instance with the glyph loaded in the routine.
|
|
</short>
|
|
</element>
|
|
<element name="GetLCLDefaultBtnGlyph.Kind">
|
|
<short>
|
|
Determines the default image loaded for the bitmapped button.
|
|
</short>
|
|
</element>
|
|
|
|
|
|
<element name="LoadGlyphFromResourceName">
|
|
<short>Loads a bitmap from a named resource into the specified Glyph.</short>
|
|
<descr>
|
|
<p>
|
|
<var>LoadGlyphFromResourceName</var> is a procedure used to load a bitmap
|
|
into the specified <var>Glyph</var> from a named resource. <var>AGlyph</var>
|
|
is the <var>TButtonGlyph</var> where the bitmap is stored.
|
|
<var>Instance</var> is a <var>THandle</var> for the resource instance
|
|
accessed in the routine. <var>AName</var> contains the name for the resource
|
|
loaded in the routine.
|
|
</p>
|
|
<p>
|
|
<var>LoadGlyphFromResourceName</var> calls
|
|
<var>CreateBitmapFromResourceName</var> to retrieve a
|
|
<var>TCustomBitmap</var> using the specified handle and resource name. The
|
|
bitmap is assigned to the <var>TButtonGlyph</var> in <var>AGlyph</var>. When
|
|
<var>AName</var> is an empty string (<b>''</b>), the Glyph image in AGlyph is
|
|
set to <b>Nil</b>.
|
|
</p>
|
|
<p>
|
|
<var>LoadGlyphFromResourceName</var> is used in the implementation of the
|
|
<var>LoadGlyphFromResourceName</var> method in both <var>TCustomBitBtn</var>
|
|
and <var>TCustomSpeedButton</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.LoadGlyphFromResourceName"/>
|
|
<link id="TCustomSpeedButton.LoadGlyphFromResourceName"/>
|
|
<link id="TButtonGlyph"/>
|
|
<link id="CreateBitmapFromResourceName"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="LoadGlyphFromResourceName.AGlyph">
|
|
<short>Button glyph updated in the routine.</short>
|
|
</element>
|
|
<element name="LoadGlyphFromResourceName.Instance">
|
|
<short>Handle for the resource.</short>
|
|
</element>
|
|
<element name="LoadGlyphFromResourceName.AName">
|
|
<short>Resource name loaded in the routine.</short>
|
|
</element>
|
|
|
|
<element name="LoadGlyphFromLazarusResource">
|
|
<short>Loads the named glyph image from a Lazarus Resource file.</short>
|
|
<descr>
|
|
<p>
|
|
<var>LoadGlyphFromLazarusResource</var> loads a glyph image with the
|
|
specified name from a Lazarus Resource file (<file>.lrs</file>). Used in the
|
|
implementation of the LoadGlyphFromLazarusResource method in both
|
|
<var>TCustomBitBtn</var> and <var>TCustomSpeedButton</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.LoadGlyphFromLazarusResource"/>
|
|
<link id="TCustomSpeedButton.LoadGlyphFromLazarusResource"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="LoadGlyphFromLazarusResource.AGlyph">
|
|
<short>Class instance where the bitmap for the glyph is stored.</short>
|
|
</element>
|
|
<element name="LoadGlyphFromLazarusResource.AName">
|
|
<short>Resource name loaded in the routine.</short>
|
|
</element>
|
|
|
|
<element name="LoadGlyphFromStock">
|
|
<short>
|
|
Loads the bitmap for the specified Glyph using the image for the specified
|
|
button identifier.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>LoadGlyphFromStock</var> is a procedure used to load a
|
|
<var>TBitmap</var> into the <var>AGlyph</var> argument with the image used
|
|
for the button identifier in <var>idButton</var>. LoadGlyphFromStock calls
|
|
the <var>GetButtonIcon</var> routine to load the graphic image for the button
|
|
identifier.
|
|
</p>
|
|
<p>
|
|
Used in the implementation of the <var>LoadGlyphFromStock</var> method in
|
|
both <var>TCustomBitBtn</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TCustomBitBtn.LoadGlyphFromStock"/>
|
|
<link id="LoadGlyphFromStock"/>
|
|
<link id="GetButtonIcon"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="LoadGlyphFromStock.AGlyph">
|
|
<short>TButtonGlyph where the bitmap is stored.</short>
|
|
</element>
|
|
<element name="LoadGlyphFromStock.idButton">
|
|
<short>Button identifier for the image loaded in the routine.</short>
|
|
</element>
|
|
|
|
<element name="GetButtonCaption">
|
|
<short>Gets the default caption for the specified button identifier.</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetButtonCaption</var> is a <var>String</var> function used to get the
|
|
default caption for the numeric button identifier in idButton. The return
|
|
value contains the resource string from the <file>LCLStrConsts.pas</file>
|
|
unit for the value in idButton.
|
|
</p>
|
|
<p>
|
|
idButton contains one of the button identifiers defined in
|
|
<file>LCLType.pp</file>, such as:
|
|
</p>
|
|
<dl>
|
|
<dt>idButtonOk (1)</dt>
|
|
<dd>Returns the value in rsmbOK.</dd>
|
|
<dt>idButtonCancel (2)</dt>
|
|
<dd>Returns the value in rsmbCancel.</dd>
|
|
<dt>idButtonHelp (3)</dt>
|
|
<dd>Returns the value in rsmbHelp.</dd>
|
|
<dt>idButtonYes (4)</dt>
|
|
<dd>Returns the value in rsmbYes.</dd>
|
|
<dt>idButtonNo (5)</dt>
|
|
<dd>Returns the value in rsmbNo.</dd>
|
|
<dt>idButtonClose (6)</dt>
|
|
<dd>Returns the value in rsmbClose.</dd>
|
|
<dt>idButtonAbort (7)</dt>
|
|
<dd>Returns the value in rsmbAbort.</dd>
|
|
<dt>idButtonRetry (8)</dt>
|
|
<dd>Returns the value in rsmbRetry.</dd>
|
|
<dt>idButtonIgnore (9)</dt>
|
|
<dd>Returns the value in rsmbIgnore.</dd>
|
|
<dt>idButtonAll (10)</dt>
|
|
<dd>Returns the value in rsmbAll.</dd>
|
|
<dt>idButtonYesToAll (11)</dt>
|
|
<dd>Returns the value in rsmbYesToAll.</dd>
|
|
<dt>idButtonNoToAll (12)</dt>
|
|
<dd>Returns the value in rsmbNoToAll.</dd>
|
|
<dt>idButtonOpen (13)</dt>
|
|
<dd>Returns the value in rsmbOpen.</dd>
|
|
<dt>idButtonSave (14)</dt>
|
|
<dd>Returns the value in rsmbSave.</dd>
|
|
<dt>idButtonShield (15)</dt>
|
|
<dd>Returns the value in rsmbUnlock.</dd>
|
|
</dl>
|
|
<p>
|
|
The return value is '?' if any other numeric value is passed in idButton.
|
|
</p>
|
|
<p>
|
|
GetButtonCaption is called when a value other than bkCustom is assigned to
|
|
the Kind property in TCustomBitBtn.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="GetDefaultButtonIcon"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="GetButtonCaption.Result">
|
|
<short>Default caption for the specified button.</short>
|
|
</element>
|
|
<element name="GetButtonCaption.idButton">
|
|
<short>
|
|
Button identifier used to get the default caption from a resource string.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="GetDefaultButtonIcon">
|
|
<short>
|
|
Gets a scaled bitmap with the default glyph for the specified button
|
|
identifier.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetDefaultButtonIcon</var> is a <var>TCustomBitmap</var> function used
|
|
to retrieve the default glyph bitmap for the button identifier in idButton.
|
|
idButton contains one of the button identifiers defined in
|
|
<file>LCLType.pp</file>, such as:
|
|
</p>
|
|
<ul>
|
|
<li>idButtonOk (1)</li>
|
|
<li>idButtonCancel (2)</li>
|
|
<li>idButtonHelp (3)</li>
|
|
<li>idButtonYes (4)</li>
|
|
<li>idButtonNo (5)</li>
|
|
<li>idButtonClose (6)</li>
|
|
<li>idButtonAbort (7)</li>
|
|
<li>idButtonRetry (8)</li>
|
|
<li>idButtonIgnore (9)</li>
|
|
<li>idButtonAll (10)</li>
|
|
<li>idButtonYesToAll (11)</li>
|
|
<li>idButtonNoToAll (12)</li>
|
|
<li>idButtonOpen (13)</li>
|
|
<li>idButtonSave (14)</li>
|
|
<li>idButtonShield (15)</li>
|
|
</ul>
|
|
<p>
|
|
GetDefaultButtonIcon uses the value in idButton to get the resource name for
|
|
the button from the BitBtnResNames constant. If a resource name is not found
|
|
for the button identifier, the image data in the return value is empty.
|
|
</p>
|
|
<p>
|
|
<var>ScalePercent</var> contains the scaling percentage for the retrieved
|
|
bitmap. The default value is 100 and keeps the original dimensions for the
|
|
bitmap.
|
|
</p>
|
|
<p>
|
|
GetDefaultButtonIcon calls the GetDefaultGlyph routine to retrieve the scaled
|
|
bitmap. The image is loaded from application or LCL resources with the
|
|
required name and scaling percentage, and stored in the return value.
|
|
Transparency is applied to the bitmap using the color in the bottom, left
|
|
pixel if it is not already enabled. Please note that GetDefaultGlyph raises
|
|
an exception if a resource with the required name and scaling percentage is
|
|
not found in the available resources.
|
|
</p>
|
|
<p>
|
|
GetDefaultButtonIcon is called from the GetButtonIcon and
|
|
GetLCLDefaultBtnGlyph routines, and occurs when a value other than bkCustom
|
|
is assigned to the Kind property in TCustomBitBtn.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="BitBtnResNames"/>
|
|
<link id="GetButtonIcon"/>
|
|
<link id="GetLCLDefaultBtnGlyph"/>
|
|
<link id="#lcl.imglist.GetDefaultGlyph">GetDefaultGlyph</link>
|
|
</seealso>
|
|
</element>
|
|
<element name="GetDefaultButtonIcon.Result">
|
|
<short>
|
|
Default glyph bitmap for the specified button identifier.
|
|
</short>
|
|
</element>
|
|
<element name="GetDefaultButtonIcon.idButton">
|
|
<short>
|
|
Numeric button identifier used to retrieve the glyph from LCL resources.
|
|
</short>
|
|
</element>
|
|
<element name="GetDefaultButtonIcon.ScalePercent">
|
|
<short>
|
|
Scaling percentage for the glyph bitmap. The default value is 100.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="GetButtonIcon">
|
|
<short>
|
|
Gets a bitmap with the glyph image for the specified button identifier.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>GetButtonIcon</var> is a <var>TCustomBitmap</var> function used to get a
|
|
bitmap with the glyph for the button identifier in <var>idButton</var>.
|
|
GetButtonIcon calls the <var>GetStockImage</var> routine in
|
|
<var>ThemeServices</var> to get the handle used for the stock image. If the
|
|
return value is <b>False</b>, the <var>GetDefaultButtonIcon</var> routine is
|
|
called to get the icon for the button identifier.
|
|
</p>
|
|
<p>
|
|
GetButtonIcon is used in the implementation of the
|
|
<var>LoadGlyphFromStock</var> routine.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="LoadGlyphFromStock"/>
|
|
</seealso>
|
|
</element>
|
|
<element name="GetButtonIcon.Result">
|
|
<short>
|
|
Bitmap instance with the glyph for the specified button.
|
|
</short>
|
|
</element>
|
|
<element name="GetButtonIcon.idButton">
|
|
<short>
|
|
Numeric button identifier for the glyph loaded in the routine.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="BidiAdjustButtonLayout">
|
|
<short>
|
|
Adjusts the specified button layout for use in bi-directional rendering.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
Adjusts the layout for button glyphs to reflect the settings in
|
|
<var>IsRightToLeft</var>. Uses an implementation constant to get the
|
|
<var>TButtonLayout</var> value needed for the setting in IsRightLeft.
|
|
</p>
|
|
<p>
|
|
In general, when IsRightToLeft is <b>True</b> the value in <var>Layout</var>
|
|
is reversed and used as the return value. <var>blGlyphLeft</var> becomes
|
|
<var>blGlyphRight</var>, <var>blGlyphTop</var> becomes
|
|
<var>blGlyphBottom</var>, etc.
|
|
</p>
|
|
<p>
|
|
When IsRightToLeft is <var>False</var>, the value in Layout is used.
|
|
</p>
|
|
</descr>
|
|
<seealso/>
|
|
</element>
|
|
<element name="BidiAdjustButtonLayout.Result">
|
|
<short>Adjusted glyph layout needed for the value in IsRightToLeft.</short>
|
|
</element>
|
|
<element name="BidiAdjustButtonLayout.IsRightToLeft">
|
|
<short>
|
|
<b>True</b> when BiDiMode has any value other than bdLeftToRight.
|
|
</short>
|
|
</element>
|
|
<element name="BidiAdjustButtonLayout.Layout">
|
|
<short>
|
|
Glyph layout needed for the button using the specified BiDi setting.
|
|
</short>
|
|
</element>
|
|
|
|
<element name="dbgs">
|
|
<short>
|
|
Gets a String with debugging information from the specified TBitBtnKind
|
|
instance.
|
|
</short>
|
|
<descr></descr>
|
|
<seealso></seealso>
|
|
</element>
|
|
<element name="dbgs.Result">
|
|
<short>Formatted string value with the information for the type.</short>
|
|
</element>
|
|
<element name="dbgs.Kind">
|
|
<short>TBitBtnKind instance examined in the routine.</short>
|
|
</element>
|
|
|
|
<element name="BitBtnModalResults">
|
|
<short>
|
|
Contains modal result values for buttons defined in TBitBtnKind.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>BitBtnModalResults</var> is an <var>Array</var> constant which contains
|
|
<var>TModalResult</var> values returned for buttons in <var>TBitBtn</var>.
|
|
BitBtnModalResults is indexed by the enumeration values in
|
|
<var>TBitBtnKind</var>. BitBtnModalResults is used in the implementation of
|
|
the <var>RealizeKind</var> method in <var>TCustomBitBtn</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TBitBtnKind"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="BitBtnImages">
|
|
<short>
|
|
Contains button identifiers used to get icons for TBitBtn button glyphs.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>BitBtnImages</var> is an Array constant which contains LongInt values
|
|
for the button identifiers used in <var>TBitBtn</var>. BitBtnImages is
|
|
indexed by the enumeration values in <var>TBitBtnKind</var>. Values in
|
|
BitBtnImages are used in the <var>GetLCLDefaultBtnGlyph</var> routine.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="TBitBtnKind"/>
|
|
<link id="GetLCLDefaultBtnGlyph"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="BitBtnResNames">
|
|
<short>
|
|
Contains resource names for corresponding button identifiers in TBitBtn.
|
|
</short>
|
|
<descr>
|
|
<p>
|
|
<var>BitBtnResNames</var> is an <var>Array</var> constant that contains
|
|
Strings with the resource name for button identifiers used in TBitBtn. Values
|
|
in BitBtnResNames are indexed by the range of values defined in
|
|
<var>BitBtnImages</var>:
|
|
<b><var>idButtonOk</var>..<var>idButtonNoToAll</var></b>.
|
|
</p>
|
|
<p>
|
|
BitBtnResNames is used in the implementation of the <var>RealizeKind</var>
|
|
method in <var>TCustomBitBtn</var>.
|
|
</p>
|
|
</descr>
|
|
<seealso>
|
|
<link id="BitBtnImages"/>
|
|
<link id="TCustomBitBtn"/>
|
|
</seealso>
|
|
</element>
|
|
|
|
<element name="Register">
|
|
<short>Registers components for use in the Lazarus IDE.</short>
|
|
<descr>
|
|
<p>
|
|
<var>Register</var> is the procedure used to register components for use in
|
|
the Lazarus IDE. The following components are added to the Lazarus IDE
|
|
component palette:
|
|
</p>
|
|
<p>
|
|
<b>Additional</b> Tab
|
|
</p>
|
|
<ul>
|
|
<li>TBitBtn</li>
|
|
<li>TSpeedButton</li>
|
|
</ul>
|
|
</descr>
|
|
</element>
|
|
|
|
</module>
|
|
<!-- Buttons -->
|
|
</package>
|
|
</fpdoc-descriptions>
|