Vcl.CategoryButtons.TCatButtonDrawIconEvent

提供:RAD Studio API Documentation

C++

typedef void __fastcall (__closure *TCatButtonDrawIconEvent)(System::TObject* Sender, TButtonItem* const Button, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &Rect, TButtonDrawState State, int &TextOffset);

プロパティ

種類 可視性 ソース ユニット 親
typedef public Vcl.CategoryButtons.hpp Vcl.CategoryButtons Vcl.CategoryButtons

説明

TCatButtonDrawIconEvent は、Vcl.CategoryButtons.TCategoryButtons.OnDrawIcon イベントで呼び出される手続きの型です。

TCatButtonDrawIconEvent に必要なパラメータの一覧を以下の表に示します。



引数 意味

Sender

当該イベントを生成した TCategoryButtons インスタンスを表します。

Button

アイコンが描画されたボタンを表します。

Canvas

アイコンが描画されたカテゴリ ボタンのキャンバスを表します。

Rect

キャンバス上のアイコンの矩形領域を表します。

State

アイコンが描画されたボタンの状態を指定します。

TextOffset

アイコンからキャプションまでのピクセル数を表します。


関連項目