PowerTools InputMan for Windows Forms 8.0J
StatusBar プロパティ (GcMaskedComboBox)
使用例 

ステータスバー情報を示すStatusBarオブジェクトを取得します。
構文
Public ReadOnly Property StatusBar As StatusBar
public StatusBar StatusBar {get;}

プロパティ値

StatusBarオブジェクト。
解説
このプロパティは、StatusBar.TextプロパティとStatusBar.Visibleプロパティを決定します。
使用例
ステータスバー、オーバーフローチップ、そしてツールチップを設定したGcMaskedComboBoxコントロールのドロップダウンリストを作成するコード例を次に示します。この例では他にListDescriptionFormatListDescriptionSubItemIndexStatusBarShowOverflowTipShowItemTipプロパティを使用しています。
'  Please use the following namespace
'  Imports System.Windows.Forms;
'  Imports GrapeCity.Win.Editors;

Public Sub SetStatusBarAndTipSettings()
    ' Creates the GcMaskedComboBox control.
    Dim gcMaskedComboBox1 As New GcMaskedComboBox()

    ' Sets the string format to "Column0:Column1" of the StatusBar.Text as well as the ToolTip text of each list item.
    gcMaskedComboBox1.ListDescriptionFormat = "[0] : [1]"

    ' Specifies the Column1 as the content for displaying the value of the subitem as statusbar's text as well as the ToolTip text of each list item.
    ' But the property will take effect only when the ListDescriptionFormat is not set.
    gcMaskedComboBox1.ListDescriptionSubItemIndex = 1

    ' Shows the statusbar.
    gcMaskedComboBox1.StatusBar.Visible = True
    ' Shows tool tip for each list item when mouse move to it.
    gcMaskedComboBox1.ShowItemTip = True
    ' Shows overflow tip both on the edit box and each sub item.
    gcMaskedComboBox1.ShowOverflowTip = True
End Sub
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void SetStatusBarAndTipSettings()
{
    // Creates the GcMaskedComboBox control.
    GcMaskedComboBox gcMaskedComboBox1 = new GcMaskedComboBox();

    // Sets the string format to "Column0:Column1" of the StatusBar.Text as well as the ToolTip text of each list item.
    gcMaskedComboBox1.ListDescriptionFormat = "[0] : [1]";

    // Specifies the Column1 as the content for displaying the value of the subitem as statusbar's text as well as the ToolTip text of each list item.
    // But the property will take effect only when the ListDescriptionFormat is not set.
    gcMaskedComboBox1.ListDescriptionSubItemIndex = 1;

    // Shows the statusbar.
    gcMaskedComboBox1.StatusBar.Visible = true;
    // Shows tool tip for each list item when mouse move to it.
    gcMaskedComboBox1.ShowItemTip = true;
    // Shows overflow tip both on the edit box and each sub item.
    gcMaskedComboBox1.ShowOverflowTip = true;
}
参照

GcMaskedComboBox クラス
GcMaskedComboBox メンバ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.