Vcl.ComCtrls.TToolBar.OnAdvancedCustomDrawButton
Delphi
property OnAdvancedCustomDrawButton: TTBAdvancedCustomDrawBtnEvent read FOnAdvancedCustomDrawButton write FOnAdvancedCustomDrawButton;
C++
__property TTBAdvancedCustomDrawBtnEvent OnAdvancedCustomDrawButton = {read=FOnAdvancedCustomDrawButton, write=FOnAdvancedCustomDrawButton};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Occurs at discrete stages during the painting of the toolbar's buttons.
Write an OnAdvancedCustomDrawButton event handler to enhance or replace the automatic painting of the toolbar's buttons. Use the toolbar's Canvas property to render the button's image. OnAdvancedCustomDrawButton occurs during the erasure and painting of individual buttons on the toolbar. The painting of the toolbar itself should be handled in an OnCustomDraw or OnAdvancedCustomDraw event handler.
Note: OnAdvancedCustomDrawButton occurs at several points during the painting of the toolbar's buttons. If you only need to respond immediately prior to the default painting of each button and are not using the Flags parameter, use OnCustomDrawButton instead.
OnAdvancedCustomDrawButton is an event handler of type Vcl.ComCtrls.TTBAdvancedCustomDrawBtnEvent.