PC Review


Reply
Thread Tools Rate Thread

InputPanel detection

 
 
dgauchet
Guest
Posts: n/a
 
      10th Jun 2005
Hi all,

I would detect if an InputPanel is contained in my form (for adjusting the
ToolBarButton's size).
Is somebody know if it's possible?

In this case, I would evaluate the MainMenu'size (for the same reasons...).

Thanks.


 
Reply With Quote
 
 
 
 
Bruce Hamilton [MSFT]
Guest
Posts: n/a
 
      14th Jun 2005
Hi,

You an enumerate the Controls collection to determine if an InputPanel is
available. But it would be known by whatever its name was:

Dim x As Integer
For x = 0 To Controls.Count - 1
MsgBox(Controls.Item(x).Name)
Next

Note that the native input panel component (software input panel or SIP) is
always available in your application even if you don't add an
Microsoft.WindowsCE.Forms.InputPanel. The user can simply click its icon on
the toolbar. Windows CE does this for you. Adding the InputPanel component
enables the developer to do resizing tasks as you described. Here is an
example of how you can use an event to programmatically actviate the SIP by
using the InputPanel component, and resize other controls on the form.

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 the height of the tab control
' is set to its original height with a variable
(TabOriginalHeight),
' which is determined during initialization of the form.
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
End Sub

Thanks,
Bruce Hamilton
Programmer Writer
..NET Compact Framework
(E-Mail Removed)

This code is provided "AS IS" with no warranties and confers no rights.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inputpanel bug? Mustafa Rabie Microsoft Dot NET Compact Framework 1 28th Oct 2005 02:09 AM
InputPanel Ralf Haenel Microsoft Dot NET Compact Framework 2 18th May 2005 05:59 PM
Re: Inputpanel EMW Microsoft Dot NET Framework Forms 1 1st Dec 2003 06:09 AM
Re: Inputpanel EMW Microsoft Dot NET Framework 1 1st Dec 2003 06:09 AM
InputPanel Lloyd Dupont Microsoft Dot NET Compact Framework 0 26th Aug 2003 05:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:09 AM.