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

TToolBar.HotImages

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

Declaration

Source position: comctrls.pp line 2377

published property TToolBar.HotImages : TCustomImageList
  read FHotImages
  write SetHotImages;

Description

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

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.Images

  

List with images displayed when a tool button is enabled.

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