InputPanel.EnabledChanged イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > InputPanel.EnabledChanged イベントの意味・解説 

InputPanel.EnabledChanged イベント

ソフト入力パネル (SIP) が有効または無効になる発生します

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文構文

Dim instance As InputPanel
Dim handler As EventHandler

AddHandler instance.EnabledChanged, handler
public event EventHandler EnabledChanged
/** @event */
public void add_EnabledChanged (EventHandler
 value)

/** @event */
public void remove_EnabledChanged (EventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例

EnabledChanged イベント使用してSIP有効になるタブ コントロールの高さを低くし、SIP無効になるタブ コントロールを元の高さに戻すコード例次に示します。このコード例は InputPanel コンポーネントトピック取り上げているコード例一部分です。

Private Sub InputPanel1_EnabledChanged(ByVal
 sender As Object, _
    ByVal e As System.EventArgs) Handles
 InputPanel1.EnabledChanged
 If InputPanel1.Enabled = False Then

  ' The SIP is disabled, so set the height of the tab control
  ' to its original height with a variable (TabOriginalHeight),
  ' which is determined during initialization of the form.
  VisibleRect = InputPanel1.VisibleDesktop
  TabControl1.Height = TabOriginalHeight
 Else
  ' The SIP is enabled, so the height of the tab control
  ' is set to the height of the visible desktop area.
  VisibleRect = InputPanel1.VisibleDesktop
  TabControl1.Height = VisibleRect.Height
 End If

 ' The Bounds property always returns a width of 240 and a height of
 80
 ' pixels for Pocket PCs, regardless of whether or not the SIP is enabled.
 BoundsRect = InputPanel1.Bounds

 ' Show the VisibleDesktop and Bounds values
 ' on the second tab for demonstration purposes.
       VisibleInfo.Text = String.Format("VisibleDesktop:
 X = {0}, " _
       & "Y = {1}, Width = {2}, Height = {3}",
 _
       VisibleRect.X, VisibleRect.Y, _
       VisibleRect.Width, VisibleRect.Height)
       BoundsInfo.Text = String.Format("Bounds:
 X = {0}, Y = {1}," _
          & "Width = {2}, Height = {3}", BoundsRect.X,
 BoundsRect.Y, _
          BoundsRect.Width, BoundsRect.Height)
End Sub
private void inputPanel1_EnabledChanged(object
 sender, EventArgs e)
{
    if (inputPanel1.Enabled == false)
    {
        // The SIP is disabled, so set the height of the tab control
        // to its original height with a variable (TabOriginalHeight)
,
        // which is determined during initialization of the form.
        VisibleRect = inputPanel1.VisibleDesktop;
        tabControl1.Height = TabOriginalHeight;
    }
    else
    {
        // The SIP is enabled, so the height of the tab control
        // is set to the height of the visible desktop area.
        VisibleRect = inputPanel1.VisibleDesktop;
        tabControl1.Height = VisibleRect.Height;
    }

    // The Bounds property always returns a width of 240 and a height
 of 80
    // pixels for Pocket PCs, regardless of whether or not the SIP is
 enabled.
    BoundsRect = inputPanel1.Bounds;

    // Show the VisibleDestkop and Bounds values
    // on the second tab for demonstration purposes.
    VisibleInfo.Text = String.Format("VisibleDesktop: X = {0}, " +
        "Y = {1}, Width = {2}, Height = {3}", VisibleRect.X,
        VisibleRect.Y, VisibleRect.Width, VisibleRect.Height);
    BoundsInfo.Text = String.Format("Bounds: X = {0}, Y = {1}, " +
        "Width = {2}, Height = {3}", BoundsRect.X, BoundsRect.Y,
        BoundsRect.Width, BoundsRect.Height);
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InputPanel クラス
InputPanel メンバ
Microsoft.WindowsCE.Forms 名前空間
Enabled



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

InputPanel.EnabledChanged イベントのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



InputPanel.EnabledChanged イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS