[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TToolBar.DisabledImages

List with images displayed when a tool button is not enabled.

Declaration

Source position: comctrls.pp line 2365

published property TToolBar.DisabledImages : TCustomImageList
  read FDisabledImages
  write SetDisabledImages;

Description

DisabledImages is a TCustomImageList property with icon images displayed on tool buttons when they are not Enabled. Use Images for the images displayed when the tool button are enabled but not hovered. Use HotImages for the images displayed when tool buttons are hovered under the mouse cursor.

The image position for a tool button is stored in the ImageIndex property in the TToolButton instance.This requires the image at a given position in the image lists to target the same button on the tool bar control.

The image list should contain images which uses the sames width and height, and appropriately sized for the ButtonWidth and ButtonHeight for the tool bar. Use ImagesWidth to specify the size needed for tool button icons independent of the actual image size stored in the image lists.

When a new image list is assigned to the property, the tool bar is redrawn.

The image lists are used when the tool buttons get the current icon drawn in the Paint method.

See also

TToolBar.Images

  

List with images displayed when a tool button is enabled.

TToolBar.HotImages

  

List with images displayed when a button is "hot" or hovered.

TToolBar.ImagesWidth

  

Width for the images displayed on the tool bar.

TToolButton.GetCurrentIcon

  

Gets the image list, index, and drawing effect for the icon on the tool button.

TToolButton.Paint

  

Draws the tool bar button to the Canvas for the control.

TCustomImageList

  

The base class for TImageList.


Version 3.2 Generated 2024-02-25 Home