Vcl.ComCtrls.TTBCustomDrawFlags

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type TTBCustomDrawFlags = set of (tbNoEdges, tbHiliteHotTrack, tbNoOffset, tbNoMark, tbNoEtchedEffect);

C++

typedef System::Set<Vcl_Comctrls__74, Vcl_Comctrls__74::tbNoEdges, Vcl_Comctrls__74::tbNoEtchedEffect> TTBCustomDrawFlags;

Properties

Type Visibility Source Unit Parent
set
typedef
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

TTBCustomDrawFlags is the type of a parameter in the Vcl.ComCtrls.TToolBar.OnAdvancedCustomDrawButton event handler.


TTBCustomDrawFlags influences the subsequent painting of a tool button following an OnAdvancedCustomDrawButton event in the cdPrePaint stage:

Value Meaning

tbNoEdges

The button is drawn without edges to distinguish it from the tool bar.

tbHiliteHotTrack

Enables the change in background color when the button is hot tracked. If this is not included in the set, the background color does not change for hot tracking.

tbNoOffset

The button is not offset when in the "down" position.

tbNoMark

Disables the default change in background color on buttons with the Marked property set to True.

tbNoEtchedEffect

Disables the etched effect that appears by default on disabled tool buttons.


See Also