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

TToolBar.Images

List with images displayed when a tool button is enabled.

Declaration

Source position: comctrls.pp line 2378

published property TToolBar.Images : TCustomImageList
  read FImages
  write SetImages;

Description

Images is a TCustomImageList property with icon images displayed on tool buttons when they are enabled. Use DisabledImages for the images displayed when the tool button are not enabled. Use HotImages for the images displayed when tool buttons are enabled and 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.DisabledImages

  

List with images displayed when a tool button is not 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