InputPanelとは? わかりやすく解説

InputPanel イベント


InputPanel クラス

Pocket PCその他の Windows CE .NET デバイス上でデータ入力するためのソフト入力パネル (SIP) を制御します

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

Public Class InputPanel
    Inherits Component
public class InputPanel : Component
public class InputPanel extends Component
public class InputPanel extends
 Component
解説解説

.NET Compact Framework には、InputPanel コンポーネント用意されています。これは、Windows CESIP制御するためのマネージ実装提供しますPocket PC プラットフォーム対象とした Windows ベースアプリケーション作成する場合Visual Studio では、MainMenu コンポーネントプロジェクトForm1 ファイル自動的に追加されます。それにより、フォームには SIP アイコンを含む下位メニュー バー配置されます。SIP使用するためにプログラミングは必要ありません。ユーザーアイコンタップして SIP表示と非表示切り替えることができますSIPプログラミングするには、InputPanel コンポーネントToolBox からフォームドラッグます。

プログラミングでは、Enabled プロパティ使用して SIP表示したり、Bounds プロパティ使用して SIPサイズ取得したり、VisibleDesktop プロパティ使用して SIP占有されていないフォーム領域サイズ確認したできますBounds プロパティは、SIP有効になっているかどうかに関係なく、Pocket PC に対しては常に 240 (幅) × 80 (高さ) ピクセル返しますユーザー操作によるかプログラミングによるかを問わずSIP が有効または無効になると EnabledChanged イベント発生しますSIPプログラミング利用する一般的な例として、SIP が有効か無効に応じてフォーム上のコントロール位置サイズ変更できます

使用例使用例

次のコード例には、タブ コントロールページ上にあるテキスト ボックス含まれています。テキスト ボックスフォーカス移動するSIP表示されます。EnabledChanged イベント使用してSIP有効になるタブ コントロールの高さを低くし、SIP無効になると元の高さに戻します

Microsoft.WindowsCE.Forms への参照プロジェクト追加する必要があることに注意してください

Private Sub TextBox1_GotFocus(ByVal
 sender As Object, _
    ByVal e As System.EventArgs) Handles
 TextBox1.GotFocus
 ' Display the SIP.
 ' Note that the EnabledChanged event occurs
 ' whenever the SIP is enabled or disabled.
 InputPanel1.Enabled = True
End Sub
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 textBox1_GotFocus(object sender,
 System.EventArgs e)
{
    // Display the SIP.
    // Note that the EnabledChanged event occurs
    // whenever the SIP is enabled or disabled.
    inputPanel1.Enabled = true;

}
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);
}
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
      Microsoft.WindowsCE.Forms.InputPanel
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InputPanel メンバ
Microsoft.WindowsCE.Forms 名前空間

InputPanel コンストラクタ

ソフト入力パネル (SIP) を有効または無効にするための InputPanel クラス新しインスタンス初期化します。

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

public InputPanel ()
public:
InputPanel ()
public InputPanel ()
解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InputPanel クラス
InputPanel メンバ
Microsoft.WindowsCE.Forms 名前空間

InputPanel プロパティ


InputPanel メソッド


InputPanel メンバ

Pocket PCその他の Windows CE .NET デバイス上でデータ入力するためのソフト入力パネル (SIP) を制御します

InputPanel データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド InputPanel ソフト入力パネル (SIP) を有効または無効にするための InputPanel クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Site  Component の ISite を取得または設定します。(Component から継承されます。)
パブリック プロパティ VisibleDesktop ソフト入力パネル (SIP) で隠れていない領域を表す Rectangle取得します
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
パブリック イベントパブリック イベント
参照参照

関連項目

InputPanel クラス
Microsoft.WindowsCE.Forms 名前空間



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

辞書ショートカット

すべての辞書の索引

「InputPanel」の関連用語

InputPanelのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS