Vcl.StdActnMenus.TStandardMenuItem.DrawBackground

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawBackground(var PaintRect: TRect); override;

C++

virtual void __fastcall DrawBackground(System::Types::TRect &PaintRect);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.StdActnMenus.pas
Vcl.StdActnMenus.hpp
Vcl.StdActnMenus TStandardMenuItem

Description

Draws the background of the menu item.

This method is called automatically when the menu item needs to render its background (everything except the text and glyph).

PaintRect indicates the dimensions of the menu item on its canvas.

DrawBackground paints the background of the menu item so that its color reflects whether the item currently has focus, adjusting PaintRect to accommodate any glyph or checkmark that appears on the menu item.

See Also