Vcl.ComCtrls.TCustomStatusBar.DrawPanel
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 は,ステータスバーのキャンバスにそのパネルの寸法を示します。