BitBtn#

Qualified name: delphivcl.BitBtn

class BitBtn#

Bases: WinControl

TBitBtn is a push button control that can include a bitmap on its face. Bitmap buttons exhibit the same behavior as button controls. Use them to initiate actions from forms and dialog boxes. Bitmap buttons implement properties that specify the bitmap images, along with their appearance and placement on the button. You can choose from predefined bitmap buttons styles or use your own customized bitmap for the button. Although the button can be associated with only one bitmap, the bitmap (glyph property) can be subdivided into four equal-sized portions, which are displayed based on the state of the button: up, down, disabled, and clicked. The Kind property of TBitBtn provides commonly used buttons, such as OK, Cancel, Help, and so on. These predefined button types have corresponding graphical images and default behaviors, so you can easily add them to your application with little or no coding necessary. The recommended way to implement the response of other button kinds to user clicks is to assign an action from an action list as the value of the Action property. By setting the Action property, you make the button a client of the action, and the action handles updating the button’s properties and responding when the user clicks the button. If you are not using the built-in response to a specific kind of button or an action to respond when the user clicks the button, then you can specify the button’s response by writing an OnClick event handler.

Methods

CanFocus

Indicates whether a control can receive focus.

Click

Simulates a mouse click, as if the user had clicked the button.

Create

Constructs an instance of the button control and initializes its values.

Destroy

Destroys the bitmap button object.

SetFocus

Gives the input focus to the control.

Attributes

Action

Specifies the action associated with the control.

Align

Determines how the control aligns within its container (parent control).

AlignDisabled

Indicates child control realignment disabled.

AlignWithMargins

Specifies whether a control should be constrained by margins.

Anchors

Specifies how the control is anchored to its parent.

BiDiMode

Specifies the bidirectional mode for the control.

BoundsRect

Specifies the bounding rectangle of the control, expressed in the coordinate system of the parent control.

Brush

Determines the color and pattern used for painting the background of the control.

Cancel

<Delphi property Cancel of type TBitBtn at 21141CD4140>

Caption

Specifies a text string that identifies the control to the user.

ClassName

Returns the TObject.ClassName

ClientHeight

Specifies the height of the control's client area in pixels.

ClientOrigin

Specifies the screen coordinates (in pixels) of the upper-left corner of a control's client area.

ClientRect

Specifies the size of a control's client area in pixels.

ClientWidth

Specifies the horizontal size of the control's client area in pixels.

ComObject

Specifies the interface reference implemented by the component.

ComponentCount

Indicates the number of components owned by the component.

ComponentIndex

Indicates the position of the component in its owner's Components property array.

ComponentState

Describes the current state of the component, indicating when a component needs to avoid certain actions.

ComponentStyle

Governs the behavior of the component.

Components

<Delphi indexed property Components of type TComponent at 21141642500>

Constraints

Specifies the size constraints for the control.

ControlCount

Returns the count of contained controls

ControlState

Specifies the current state of a control at run time.

ControlStyle

Determines style characteristics of the control.

Controls

Returns an iterator over contained controls

CurrentPPI

Embarcadero Technologies does not currently have any additional information.

Cursor

Specifies the image used to represent the mouse pointer when it passes into the region covered by the control.

CustomHint

CustomHint is a custom hint for the control.

Default

<Delphi property Default of type TBitBtn at 21141CD43B0>

DesignInfo

Contains information used by the Form designer.

DisabledImageIndex

<Delphi property DisabledImageIndex of type TBitBtn at 21141CD4480>

DisabledImageName

<Delphi property DisabledImageName of type TBitBtn at 21141CD4550>

DockClientCount

Specifies the number of controls that are docked on the windowed control.

DockClients

<Delphi indexed property DockClients of type TWinControl at 211416EE520>

DockManager

Specifies the control's docking manager interface.

DockOrientation

DockOrientation specifies how the control is docked relative to other controls docked in the same parent.

DockSite

Specifies whether the control can be the target of drag-and-dock operations.

DoubleBuffered

Determines whether the control's image is rendered directly to the window or painted to an in-memory bitmap first.

DragCursor

Specifies the image used to represent the mouse pointer when the control is being dragged.

DragKind

Specifies whether the control is being dragged normally or for docking.

DragMode

Specifies how the control initiates drag-and-drop or drag-and-dock operations.

Enabled

Controls whether the control responds to mouse, keyboard, and timer events.

ExplicitHeight

Specifies the explicit vertical size of the control in pixels.

ExplicitLeft

Specifies the explicit horizontal pixel coordinate of the left edge of a component relative to its parent.

ExplicitTop

Specifies the explicit vertical pixel coordinate of the top edge of a component relative to its parent.

ExplicitWidth

Specifies the explicit horizontal size of the control in pixels.

Floating

Specifies whether the control is floating.

FloatingDockSiteClass

Specifies the class of the temporary control that hosts the control when it is floating.

Focused

Determines whether the control has input focus.

Font

Specifies the attributes of text written on or in the control.

Glyph

Specifies the bitmap that appears on the bitmap button.

Handle

Provides access to the underlying Windows screen object for the control.

HandleAllocated

Reports whether a screen object handle exists for the control.

Height

Specifies the vertical size of the control in pixels.

HelpContext

The HelpContext property contains the numeric context ID that identifies the Help topic for the control.

HelpKeyword

The HelpKeyword property contains the keyword string that identifies the Help topic for the control.

HelpType

Specifies whether the control's context-sensitive Help topic is identified by a context ID or by keyword.

Hint

Hint contains the text string that appears when the user moves the mouse over the control.

HostDockSite

Specifies the control in which the control is docked.

HotImageIndex

<Delphi property HotImageIndex of type TBitBtn at 21141CD4B00>

HotImageName

<Delphi property HotImageName of type TBitBtn at 21141CD4BD0>

ImageIndex

<Delphi property ImageIndex of type TBitBtn at 21141CD4CA0>

ImageName

<Delphi property ImageName of type TBitBtn at 21141CD4D70>

Images

<Delphi property Images of type TBitBtn at 21141CD4E40>

IsDrawingLocked

IsDrawingLocked property returns True when redrawing for this control is locked.

Kind

Specifies the kind of bitmap button.

LRDockWidth

Specifies the width of the control when it is docked horizontally.

Layout

Specifies where the image appears on the bitmap button.

Left

Specifies the horizontal coordinate of the left edge of a component relative to its parent.

Margin

Specifies the number of pixels between the edge of the image (specified in the Glyph property) and the edge of the button.

Margins

Specifies the margins of the control.

ModalResult

<Delphi property ModalResult of type TBitBtn at 21141CD5250>

MouseInClient

Indicates whether the mouse pointer is currently in the client area of the control.

Name

Specifies the name of the component as referenced in code.

NumGlyphs

Indicates the number of images that are in the graphic specified in the Glyph property.

Observers

Indicates the TObservers object added to the TComponent.

OnClick

<Delphi property OnClick of type TBitBtn at 21141CD6360>

OnContextPopup

<Delphi property OnContextPopup of type TBitBtn at 21141CD6430>

OnDragDrop

<Delphi property OnDragDrop of type TBitBtn at 21141CD6500>

OnDragOver

<Delphi property OnDragOver of type TBitBtn at 21141CD65D0>

OnEndDock

<Delphi property OnEndDock of type TBitBtn at 21141CD66A0>

OnEndDrag

<Delphi property OnEndDrag of type TBitBtn at 21141CD6770>

OnEnter

<Delphi property OnEnter of type TBitBtn at 21141CD6840>

OnExit

<Delphi property OnExit of type TBitBtn at 21141CD6910>

OnGesture

<Delphi property OnGesture of type TControl at 211418EC500>

OnKeyDown

<Delphi property OnKeyDown of type TBitBtn at 21141CD69E0>

OnKeyPress

<Delphi property OnKeyPress of type TBitBtn at 21141CD6AB0>

OnKeyUp

<Delphi property OnKeyUp of type TBitBtn at 21141CD6B80>

OnMouseActivate

<Delphi property OnMouseActivate of type TBitBtn at 21141CD6C50>

OnMouseDown

<Delphi property OnMouseDown of type TBitBtn at 21141CD6D20>

OnMouseEnter

<Delphi property OnMouseEnter of type TBitBtn at 21141CD6DF0>

OnMouseLeave

<Delphi property OnMouseLeave of type TBitBtn at 21141CD6EC0>

OnMouseMove

<Delphi property OnMouseMove of type TBitBtn at 21141CD6F90>

OnMouseUp

<Delphi property OnMouseUp of type TBitBtn at 21141CD7060>

OnStartDock

<Delphi property OnStartDock of type TBitBtn at 21141CD7130>

OnStartDrag

<Delphi property OnStartDrag of type TBitBtn at 21141CD7200>

Owner

Indicates the component that is responsible for streaming and freeing this component.

Padding

Specifies the padding of a control.

Parent

Specifies the parent of the control.

ParentBiDiMode

Specifies whether the control uses its parent's BiDiMode.

ParentCustomHint

Specifies where a control looks for its custom hint.

ParentDoubleBuffered

ParentDoubleBuffered defers the DoubleBuffered property of this component to the value of the parent's DoubleBuffered property.

ParentFont

Specifies where a control looks for its font information.

ParentShowHint

Specifies where a control looks to find out if its Help Hint should be shown.

ParentWindow

Reference to parent's underlying control.

PixelsPerInch

Embarcadero Technologies does not currently have any additional information.

PopupMenu

Specifies the pop-up menu associated with the control.

PressedImageIndex

<Delphi property PressedImageIndex of type TBitBtn at 21141CD5730>

PressedImageName

<Delphi property PressedImageName of type TBitBtn at 21141CD5800>

RedrawDisabled

RedrawDisabled property returns True when redrawing for this control is locked.

ScaleFactor

Embarcadero Technologies does not currently have any additional information.

SelectedImageIndex

<Delphi property SelectedImageIndex of type TBitBtn at 21141CD5A70>

SelectedImageName

<Delphi property SelectedImageName of type TBitBtn at 21141CD5B40>

ShowHint

ShowHint specifies whether to show the Help Hint when the mouse pointer moves over the control.

Showing

Indicates whether the control is showing on the screen.

Spacing

Determines where the image and text appear on a bitmap or speed button.

Style

Determines the appearance of a bitmap button.

StyleElements

Specifies the style elements that are used by the control.

StyleName

Embarcadero Technologies does not currently have any additional information.

TBDockHeight

Specifies the height of the control when it is docked vertically.

TabOrder

Indicates the position of the control in its parent's tab order.

TabStop

Determines whether the user can tab to a control.

Tag

Stores a NativeInt integral value as a part of a component.

Top

Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels.

Touch

Specifies the touch manager component associated with the control.

UndockHeight

Specifies the height of the control when it is floating.

UndockWidth

Specifies the width of the control when it is floating.

UseDockManager

Specifies whether the docking manager is used in drag-and-dock operations.

VCLComObject

Represents information used internally by components that support COM.

Visible

Specifies whether the component appears onscreen.

VisibleDockClientCount

Specifies the number of visible controls that are docked on the windowed control.

Width

Specifies the horizontal size of the control or form in pixels.

WindowProc

<Delphi property WindowProc of type TControl at 211418EC1C0>

WordWrap

<Delphi property WordWrap of type TBitBtn at 21141CD60F0>

Action#

Specifies the action associated with the control. Action is the action object that is associated with the control. Actions allow an application to centralize the response to user commands. When a control is associated with an action, the action determines the appropriate properties and events of the control (such as whether the control is enabled or how it responds to an OnClick event). To create actions at design time, place an action list component on a form or data module. Double-click the action list to bring up the action list editor. Add actions in the editor using its context menu. Once the actions have been added using the Action List editor, they appear in the drop-down list for the Action property in the Object Inspector.

Align#

Determines how the control aligns within its container (parent control). Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes. When the parent is resized, an aligned control also resizes so that it continues to span the top, bottom, left, or right edge of the parent. For example, to use a panel component with various controls on it as a tool palette, change the panel’s Align value to alLeft. The value of alLeft for the Align property of the panel guarantees that the tool palette remains on the left side of the form and always equals the client height of the form. The default value of Align is alNone, which means a control remains where it is positioned on a form or panel.

Tip: If Align is set to alClient, the control fills the entire client area so that it is impossible to select the parent form by clicking it. In this case, select the parent by selecting the control on the form and pressing ESC, or by using the Object Inspector. Any number of child components within a single parent can have the same Align value, in which case they stack up along the edge of the parent. The child controls stack up in z-order. To adjust the order in which the controls stack up, drag the controls into their desired positions.

Note: To cause a control to maintain a specified relationship with an edge of its parent, but not necessarily lie along one edge of the parent, use the Anchors property instead.

Anchors#

Specifies how the control is anchored to its parent. Use Anchors to ensure that a control maintains its current position relative to an edge of its parent, even if the parent is resized. When its parent is resized, the control holds its position relative to the edges to which it is anchored. If a control is anchored to opposite edges of its parent, the control stretches when its parent is resized. For example, if a control has its Anchors property set to [akLeft, akRight], the control stretches when the width of its parent changes. Anchors is enforced only when the parent is resized. Thus, for example, if a control is anchored to opposite edges of a form at design time and the form is created in a maximized state, the control is not stretched because the form is not resized after the control is created.

Note: If a control should maintain contact with three edges of its parent (hugging one side of the parent and stretching the length of that side), use the Align property instead. Unlike Anchors, Align allows controls to adjust to changes in the size of other aligned sibling controls as well as changes to the parent’s size.

BiDiMode#

Specifies the bidirectional mode for the control. Use BiDiMode to enable the control to adjust its appearance and behavior automatically when the application runs in a locale that reads from right to left instead of left to right. The bidirectional mode controls the reading order for the text, the placement of the vertical scroll bar, and whether the alignment is changed. Alignment does not change for controls that are known to contain number, date, time, or currency values. For example, with data-aware controls, the alignment does not change for the following field types: ftSmallint, ftInteger, ftWord, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, ftAutoInc.

CanFocus()#

Indicates whether a control can receive focus.

Cancel#

<Delphi property Cancel of type TBitBtn at 21141CD4140>

Caption#

Specifies a text string that identifies the control to the user. Use Caption to specify the text string that labels the control. To underline a character in a Caption that labels a component, include an ampersand (&) before the character. This type of character is called an accelerator character. The user can then select the component by pressing ALT while typing the underlined character. To display an ampersand character in the caption, use two ampersands (&&).

Notes: Controls that display text use either the Caption property or the Text property to specify the text value. The property that is used depends on the type of control. In general, Caption is used for text that appears as a window title or label, while Text is used for text that appears as the content of a control. For some controls, such as TButton, it is not possible to change the color of the Caption. If you want to change the color of a button caption, you should use an alternate button type such as TSpeedButton or TBitBtn instead of TButton. With either TSpeedButton or TBitBtn, you can change the color of the Caption property by using the Font property. For TLinkLabel, an HTML tag is declared inside the Caption property either at run time or at design time.

Click()#

Simulates a mouse click, as if the user had clicked the button. Use Click to simulate a mouse click. Click performs the following tasks:

If the value of the Kind property is bkClose, Click closes the form. If the value of Kind is bkHelp, Click displays the Help screen assigned with the HelpContext property. Any associated action fires, or, if there is no associated action, any code attached to the OnClick event is executed.

Constraints#

Specifies the size constraints for the control. Use Constraints to specify the minimum and maximum width and height of the control. When Constraints contains maximum or minimum values, the control cannot be resized to violate those constraints.

Note: Constraints apply to the height of the form. However, the height of the form depends on how large Windows makes the title bar. For example, Windows XP uses much larger title bars than other windowing systems. To work around this, note the ClientHeight when you design your form and set the constraints in the FormCreate event. In the following example, ClientHeight is represented by x: Constraints.MinHeight?:= x + Height - ClientHeight. Warning: Do not set up constraints that conflict with the value of the Align or Anchors property. When these properties conflict, the response of the control to resize attempts is not well-defined.

ControlCount#

Returns the count of contained controls

Controls#

Returns an iterator over contained controls

Create(AOwner: Component)#

Constructs an instance of the button control and initializes its values. Use Create to programmatically instantiate a button. Buttons added using the form designer are created automatically. The AOwner parameter specifies the component, typically a form, that is responsible for freeing the button.

Default#

<Delphi property Default of type TBitBtn at 21141CD43B0>

Destroy()#

Destroys the bitmap button object. Do not call Destroy directly in an application. Instead, call Free. Free checks that the bitmap button is not nil, and only then calls Destroy.

DisabledImageIndex#

<Delphi property DisabledImageIndex of type TBitBtn at 21141CD4480>

DisabledImageName#

<Delphi property DisabledImageName of type TBitBtn at 21141CD4550>

DoubleBuffered#

Determines whether the control’s image is rendered directly to the window or painted to an in-memory bitmap first. When DoubleBuffered is false, the windowed control paints itself directly to the window. When DoubleBuffered is true, the windowed control paints itself to an in-memory bitmap that is then used to paint the window. Double buffering reduces the amount of flicker when the control repaints, but is more memory intensive. When a windowed control is a dock site and has an associated dock manager, it must be double-buffered.

Note: Some controls, such as TRichEdit, can’t paint themselves into a bitmap. For such controls, DoubleBuffered must be set to false.

DragCursor#

Specifies the image used to represent the mouse pointer when the control is being dragged. Use the DragCursor property to change the cursor image presented when the control is being dragged.

Note: To make a custom cursor available for the DragCursor property, see the Cursor property.

DragKind#

Specifies whether the control is being dragged normally or for docking. Use DragKind to get or set whether the control participates in drag-and-drop operations or drag-and-dock operations.

DragMode#

Specifies how the control initiates drag-and-drop or drag-and-dock operations. Use DragMode to control when the user can drag the control. Disable the drag-and-drop or drag-and-dock capability at run time by setting the DragMode property value to dmManual. Enable automatic dragging by setting DragMode to dmAutomatic. For more information about dmManual and dmAutomatic, see TDragMode.

Enabled#

Controls whether the control responds to mouse, keyboard, and timer events. Use Enabled to change the availability of the control to the user. To disable a control, set Enabled to False. Some disabled controls appear dimmed (for example: buttons, check boxes, labels), while others (container controls) simply lose their functionality without changing their appearance. If Enabled is set to False, the control ignores mouse, keyboard, and timer events. To re-enable a control, set Enabled to True.

Note: This property applies to all TControl descendants.

Focused#

Determines whether the control has input focus.

Font#

Specifies the attributes of text written on or in the control. To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name , Pitch, Size, or Style of the TFont object.

Note: Changing the font color of the Caption is not supported for some controls (such as TButton). In most cases, there is an alternate control you can use whose Font property will change the color of the caption or text (such as TBitBtn or TSpeedButton).

Glyph#

Specifies the bitmap that appears on the bitmap button. Use the Open dialog box that appears as an editor in the Object Inspector to choose a bitmap file (with a .BMP extension) to use on the button, or specify a TBitmap object at runtime. You can provide up to four images within a single bitmap. All images must be the same size and next to each other in a row. Bit buttons display one of these images depending on their state.

Image position

Button state

Description

First

Up

This image appears when the button is up (unselected). This image is also used when the button has focus (for example, if the user tabs to it); in this case, a focus rectangle is drawn around the button. If no other images exist in the bitmap, bit buttons also use this image for all other states.

Second

Disabled

This image usually appears dimmed to indicate that the button can’t be selected.

Third

Clicked

This image appears when the button is clicked. The Up image reappears when the user releases the mouse button.

Fourth

Down

This image appears when the button stays down (indicating that it remains selected).

If only one image is present, bit buttons attempt to represent the other states by altering the image slightly for the different states, although the Down state is always the same as the Up state. If you aren’t satisfied with the results, you can provide additional images in the bitmap. If you have multiple images in a bitmap, you must specify the number of images that are in the bitmap with the Num Glyphs property.

Note: The lower left pixel of the bitmap is reserved for the “transparent” color. Any pixel in the bitmap which matches that lower left pixel will be transparent.

Handle#

Provides access to the underlying Windows screen object for the control.

HandleAllocated#

Reports whether a screen object handle exists for the control.

HotImageIndex#

<Delphi property HotImageIndex of type TBitBtn at 21141CD4B00>

HotImageName#

<Delphi property HotImageName of type TBitBtn at 21141CD4BD0>

ImageIndex#

<Delphi property ImageIndex of type TBitBtn at 21141CD4CA0>

ImageName#

<Delphi property ImageName of type TBitBtn at 21141CD4D70>

Images#

<Delphi property Images of type TBitBtn at 21141CD4E40>

Kind#

Specifies the kind of bitmap button. Use Kind to specify the appearance of the TBitBtn control and its response when the user clicks the button. A standard set of buttons are included and operate as expected without the addition of code. However, you can write additional code in the button events, if you want to. This does not include the Custom button kind, which can be programmed in any way you like. The images (such as the green check mark on the OK button) appear on the button when using this version of TBitBtn.

Layout#

Specifies where the image appears on the bitmap button. Layout indicates whether the text appears on the left of the button (blGlyphLeft), the right of the button (blGlyphRight), the top (blGlyphTop) or the bottom (blGlyphBottom).

Margin#

Specifies the number of pixels between the edge of the image (specified in the Glyph property) and the edge of the button. The margin is the space between the image edge and the button edge. The format of the edges depends on the layout of the image and text (specified in the Layout property). For example, if Layout is blGlyphLeft, the margin appears between the left edge of the image and the left edge of the button. If Margin is 3, three pixels separate the image and the button edges. If Margin is 0, there is no space between the image and the button edges. If Margin is -1 (the default value), the image and text (specified in the Caption property) are centered. The number of pixels between the image and button edge is equal to the number of pixels between the opposite edge of the button and the text.

ModalResult#

<Delphi property ModalResult of type TBitBtn at 21141CD5250>

NumGlyphs#

Indicates the number of images that are in the graphic specified in the Glyph property. If you have multiple images in a bitmap, you must specify the number of images that are in the bitmap with the NumGlyphs property. The default value is 1.

OnClick#

<Delphi property OnClick of type TBitBtn at 21141CD6360>

OnContextPopup#

<Delphi property OnContextPopup of type TBitBtn at 21141CD6430>

OnDragDrop#

<Delphi property OnDragDrop of type TBitBtn at 21141CD6500>

OnDragOver#

<Delphi property OnDragOver of type TBitBtn at 21141CD65D0>

OnEndDock#

<Delphi property OnEndDock of type TBitBtn at 21141CD66A0>

OnEndDrag#

<Delphi property OnEndDrag of type TBitBtn at 21141CD6770>

OnEnter#

<Delphi property OnEnter of type TBitBtn at 21141CD6840>

OnExit#

<Delphi property OnExit of type TBitBtn at 21141CD6910>

OnKeyDown#

<Delphi property OnKeyDown of type TBitBtn at 21141CD69E0>

OnKeyPress#

<Delphi property OnKeyPress of type TBitBtn at 21141CD6AB0>

OnKeyUp#

<Delphi property OnKeyUp of type TBitBtn at 21141CD6B80>

OnMouseActivate#

<Delphi property OnMouseActivate of type TBitBtn at 21141CD6C50>

OnMouseDown#

<Delphi property OnMouseDown of type TBitBtn at 21141CD6D20>

OnMouseEnter#

<Delphi property OnMouseEnter of type TBitBtn at 21141CD6DF0>

OnMouseLeave#

<Delphi property OnMouseLeave of type TBitBtn at 21141CD6EC0>

OnMouseMove#

<Delphi property OnMouseMove of type TBitBtn at 21141CD6F90>

OnMouseUp#

<Delphi property OnMouseUp of type TBitBtn at 21141CD7060>

OnStartDock#

<Delphi property OnStartDock of type TBitBtn at 21141CD7130>

OnStartDrag#

<Delphi property OnStartDrag of type TBitBtn at 21141CD7200>

ParentBiDiMode#

Specifies whether the control uses its parent’s BiDiMode. Use ParentBiDiMode to get or set whether the control uses its parent’s BiDiMode. When ParentBiDiMode is true, the control’s BiDiMode property is always equal to that of its parent. If ParentBiDiMode is false, the control uses its own BiDiMode property. Set ParentBiDiMode to true for all controls in a form to ensure that the entire user interface adjusts to Middle Eastern locales in a uniform manner. When the value of the control’s BiDiMode property changes, ParentBiDiMode becomes false automatically.

ParentDoubleBuffered#

ParentDoubleBuffered defers the DoubleBuffered property of this component to the value of the parent’s DoubleBuffered property. ParentDoubleBuffered is a boolean indicating that the DoubleBuffered property of this component is overridden by the value of the parent’s DoubleBuffered property.

ParentFont#

Specifies where a control looks for its font information. To have a control use the same font as its parent control, set ParentFont to true. If ParentFont is false, the control uses its own Font property. Many controls default ParentFont to true so that all the controls in a form or other container present a uniform appearance. When the value of a control’s Font property changes, ParentFont becomes false automatically. When ParentFont is true for a form, the form uses the default font. Currently, the default font is Tahoma 8 pt.

ParentShowHint#

Specifies where a control looks to find out if its Help Hint should be shown. Use ParentShowHint to ensure that all the controls on a form either uniformly show their Help Hints or uniformly do not show them. If ParentShowHint is True, the control uses the ShowHint property value of its parent. If ParentShowHint is False, the control uses the value of its own ShowHint property. To provide Help Hints only for selected controls on a form, set the ShowHint property for those controls that should have Help Hints to True, and ParentShowHint becomes False automatically.

Note: Enable or disable all Help Hints for the entire application using the ShowHint property of the application object.

ParentWindow#

Reference to parent’s underlying control.

PopupMenu#

Specifies the pop-up menu associated with the control. Assign a value to PopupMenu to make a pop-up menu appear when the user selects the control and clicks the right mouse button. If the TPopupMenu’s AutoPopup property is True, the pop-up menu appears automatically. If the menu’s AutoPopup property is False, display the menu with a call to its Popup method from the control’s OnContextPopup event handler.

PressedImageIndex#

<Delphi property PressedImageIndex of type TBitBtn at 21141CD5730>

PressedImageName#

<Delphi property PressedImageName of type TBitBtn at 21141CD5800>

SelectedImageIndex#

<Delphi property SelectedImageIndex of type TBitBtn at 21141CD5A70>

SelectedImageName#

<Delphi property SelectedImageName of type TBitBtn at 21141CD5B40>

SetFocus()#

Gives the input focus to the control.

ShowHint#

ShowHint specifies whether to show the Help Hint when the mouse pointer moves over the control. ShowHint determines whether the Help Hint appears for the control. The Help Hint is the value of the TControl.Hint property. The Help Hint appears in a box just beneath the control when the mouse pointer moves over the control. To enable Help Hints for a particular control, two conditions must be satisfied:

The application’s ShowHint property must be True. Either the control’s own ShowHint property must be True, or the control’s ParentShowHint property must be True and its parent’s ShowHint property must be True. For example, imagine a check box within a group box. If the ShowHint property of the group box is True and the ParentShowHint property of the check box is True, but the ShowHint property of the check box is False, the check box still displays its Help Hint. Changing the ShowHint value automatically sets the ParentShowHint property to False.

Showing#

Indicates whether the control is showing on the screen.

Spacing#

Determines where the image and text appear on a bitmap or speed button. Spacing determines the number of pixels between the image (specified in the Glyph property) and the text (specified in the Caption property). The default value is 4 pixels. If Spacing is a positive number, its value is the number of pixels between the image and text. If Spacing is 0, no pixels will be between the image and text. If Spacing is -1, the text appears centered between the image and the button edge. The number of pixels between the image and text is equal to the number of pixels between the text and the button edge opposite the glyph.

Style#

Determines the appearance of a bitmap button. Style indicates whether the TBitBtn control uses the modern button look, or reflects the look of a 16-bit Windows pushbutton.

StyleElements#

Specifies the style elements that are used by the control. Use StyleElements to customize the style of the control. If a custom style is enabled, you can enable or disable style elements in the control. StyleElements is a set of values that specify which elements of the current style are to be applied to this control. By default, all the elements of the style are enabled.

StyleName#

Embarcadero Technologies does not currently have any additional information.

TabOrder#

Indicates the position of the control in its parent’s tab order. TabOrder is the order in which child windows are visited when the user presses the Tab key. The control with the TabOrder value of 0 is the control that has the focus when the form first appears. Initially, the tab order is always the order in which the controls were added to the form. The first control added to the form has a TabOrder value of 0, the second is 1, the third is 2, and so on. Change this by changing the TabOrder property. Each control has a unique tab-order value within its parent. If you change the TabOrder property value of one control to be the same as the value of a second control, the TabOrder value for all the other controls changes. For example, suppose a control is sixth in the tab order. If you change the control’s TabOrder property value to 3 (making the control fourth in the tab order), the control that was originally fourth in the tab order now becomes fifth, and the control that was fifth becomes sixth. Assigning TabOrder a value greater than the number of controls contained in the parent control moves the control to the end of the tab order. The control does not take on the assigned value of TabOrder, but instead is given the number that assures the control is the last in the tab order.

Note: TabOrder is meaningful only if the TabStop property is True and if the control has a parent. (The TabOrder property of a form is not used unless the form is the child of another form.) A control with a TabOrder of -1 has no parent, and therefore cannot be reached by pressing the Tab key. To remove a parented control from the Tab order, set its TabStop property to False.

TabStop#

Determines whether the user can tab to a control. Use the TabStop to allow or disallow access to the control using the Tab key. If TabStop is True, the control is in the tab order. If TabStop is False, the control is not in the tab order and the user cannot press the TAB key to move to the control.

Note: TabStop is not meaningful for a form unless the form assigns another form to be its parent.

Visible#

Specifies whether the component appears onscreen. Use the Visible property to control the visibility of the control at run time. If Visible is True, the control appears. If Visible is False, the control is not visible. Calling the Show method sets the control’s Visible property to True. Calling the Hide method sets it to False. For TCustomForm descendants, the Show and ShowModal methods set Visible to True and bring the form to the front of all open windows. For TTabSheet descendants, Visible does not control the visibility of the control at run time. For more information, see the description of the TabVisible property.

WordWrap#

<Delphi property WordWrap of type TBitBtn at 21141CD60F0>