状態対応プロパティ

◆概要
    各プロパティ名は [状態][チェック状態][種別] という形式です。

    状態
    Normal, Hover, Active, Disabled, Focused, DefaultButton のいずれかです。
    State 列挙体を参照してください。
    ただし、Normal 時のフォント・前景色・背景色は、
    継承元コントロールの Font, ForeColor, BackColor プロパティをそのまま使用し、
    Disabled 時の前景色・背景色はありません。
    また、Focused はボタン系と FreeShapeLinkLabel のみ、
    DefaultButton は FreeShapeButton のみです。
    ※ボタン系とは FreeShapeButton, FreeShapeCheckBox, FreeShapeRadioButton を意味します。

    チェック状態
    FreeShapeCheckBox, FreeShapeRadioButton で種別が Image のとき指定します。
    FreeShapeCheckBox では Checked, Unchecked, Indeterminate のいずれかです。
    CheckState 列挙体を参照してください。
    FreeShapeRadioButton では Checked, Unchecked のいずれかです。

    種別
    Image, Font, ForeColor, BackColor のいずれかで、いずれも取得・設定ともできます。
    Image は Image 型ではなく Bitmap 型ですので Metafile 型は使用できません。
    Font は Font 型、ForeColor, BackColor は Color 型です。
    Image, Font の既定値は null 参照、ForeColor, BackColor の既定値は Color.Empty です。
    ただし、FreeShapeLinkLabel では
    ForeColor, ActiveForeColor の代わりに LinkColor, ActiveLinkColor を使用し、
    HoverForeColor, FocusedForeColor は HoverLinkColor, FocusedLinkColor になります。
◆一覧
    表にまとめると以下のようになります。

    FreeShapeButton, FreeShapeForm, FreeShapeLabel, FreeShapePanel
    イメージ フォント 前景色 背景色
    NormalImage Font ForeColor BackColor
    HoverImage HoverFont HoverForeColor HoverBackColor
    ActiveImage ActiveFont ActiveForeColor ActiveBackColor
    DisabledImage DisabledFont    
    FocusedImage FocusedFont FocusedForeColor FocusedBackColor
    DefaultButtonImage DefaultButtonFont DefaultButtonForeColor DefaultButtonBackColor
    ※Focused〜, DefaultButton〜 は FreeShapeButton のみ。

    FreeShapeLinkLabel
    イメージ フォント 前景色 背景色
    NormalImage Font LinkColor BackColor
    HoverImage HoverFont HoverLinkColor HoverBackColor
    ActiveImage ActiveFont ActiveLinkColor ActiveBackColor
    DisabledImage DisabledFont    
    FocusedImage FocusedFont FocusedLinkColor FocusedBackColor

    FreeShapeCheckBox, FreeShapeRadioButton
    イメージ フォント 前景色 背景色
    NormalCheckedImage
    NormalUncheckedImage
    NormalIndeterminateImage
    Font ForeColor BackColor
    HoverCheckedImage
    HoverUncheckedImage
    HoverIndeterminateImage
    HoverFont HoverForeColor HoverBackColor
    ActiveCheckedImage
    ActiveUncheckedImage
    ActiveIndeterminateImage
    ActiveFont ActiveForeColor ActiveBackColor
    DisabledCheckedImage
    DisabledUncheckedImage
    DisabledIndeterminateImage
    DisabledFont    
    FocusedCheckedImage
    FocusedUncheckedImage
    FocusedIndeterminateImage
    FocusedFont FocusedForeColor FocusedBackColor
    ※〜IndeterminateImage は FreeShapeCheckBox のみ。
◆順次適用
    状態対応プロパティはすべての状態を設定する必要はありません。
    Normal 以外は、未設定(既定値)の場合、以下のように順次適用されます。
    状態 適用順
    Hover Hover のみ
    Active Active, Focused, DefaultButton, Hover
    Disabled Disabled のみ
    Focused Focused, DefaultButton
    DefaultButton DefaultButton, Focused

    この適用をしてもなお既定値の場合には、以下のようになります。
    Hover : Image は Normal が適用されます。Image 以外は直前の表示が維持されます。
    Disabled : Font は Normal が適用されます。Image は Normal から自動生成されます。
    Hover, Disabled 以外 : Normal が適用されます。
◆その他
    状態イメージはコントロールの左上から元のサイズで描画されます。
    ただし、FreeShapeCheckBox, FreeShapeRadioButton で AppearaceNormal 時には、
    CheckAlign で指定された位置に描画されます。

    以下のいずれかの場合には、どの状態でも状態イメージは表示されません。
    ・FreeShapeCheckBox, FreeShapeRadioButton 以外で NormalImage が未設定の場合。
    ・FreeShapeCheckBox, FreeShapeRadioButton で
     NormalCheckedImage, NormalUncheckedImage の少なくともいずれか一方が未設定の場合。
    ・FreeShapeCheckBox で ThreeStatetrue で、NormalIndeterminateImage が未設定の場合。

    FreeShapeForm, FreeShapePanel 以外で FlatStyleSystem の場合には、
    FreeShapeButton.NET 独自の表示にはなりません。



FreeShapeButton.NET (C) 2005 COMRADE Corp.