Vcl.ComCtrls.TCustomStatusBar.DrawPanel

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure DrawPanel(Panel: TStatusPanel; const Rect: TRect); dynamic;

C++

DYNAMIC void __fastcall DrawPanel(TStatusPanel* Panel, const System::Types::TRect &Rect);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomStatusBar

説明

オーナー描画パネルを描画します。

DrawPanel メソッドは,Style に psOwnerDraw が指定されている各ステータスパネルに対して自動的に呼び出されます。OnDrawPanel イベントのイベントハンドラがある場合,DrawPanel は,OnDrawPanel イベントハンドラを呼び出します。イベントハンドラがない場合,Color プロパティで指定した色を使ってパネルの背景がペイントされます。

Panel は,描画する必要があるオーナー描画ステータスパネルです。

Rect は,ステータスバーのキャンバスにそのパネルの寸法を示します。

関連項目