PC Review


Reply
Thread Tools Rate Thread

How to determine when InputPanel type changed

 
 
Kris
Guest
Posts: n/a
 
      3rd Oct 2005
Hi, all.

I'm trying to determine when the InputPanel changes type (from Keyboard
to Transcriber for example). Does anyone know how I could do this?

I have a PocketPC application that uses the InputPanel.EnableChanged
event in order to resize the interface to accomodate the InputPanel.
However when the InputPanel changes to a type that is of different size
(the Transcriber uses much less real-estate than the others), the
EnabledChanged event does not fire and thus I don't know to resize the
interface.

Thanks,
Kris
 
Reply With Quote
 
 
 
 
Darren Shaffer
Guest
Posts: n/a
 
      3rd Oct 2005
The EnabledChanged event should still fire even with the transcriber.
Let's say you have a datagrid on your form and need to adjust it's
size based on the SIP:

grid.Height = Math.Min(this.RectangleToClient( sip.VisibleDesktop ).Bottom,
this.Bottom - SystemInformation.MenuHeight) - grid.Top;

you can adapt this example for tabcontrols, panels, and other containers of
controls.
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com


"Kris" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, all.
>
> I'm trying to determine when the InputPanel changes type (from Keyboard
> to Transcriber for example). Does anyone know how I could do this?
>
> I have a PocketPC application that uses the InputPanel.EnableChanged
> event in order to resize the interface to accomodate the InputPanel.
> However when the InputPanel changes to a type that is of different size
> (the Transcriber uses much less real-estate than the others), the
> EnabledChanged event does not fire and thus I don't know to resize the
> interface.
>
> Thanks,
> Kris



 
Reply With Quote
 
Kris
Guest
Posts: n/a
 
      4th Oct 2005
In article <#(E-Mail Removed)>,
(E-Mail Removed) says...

Hi, Darren.

Your right, the EnabledChanged event does still fire when the InputPanel
type is Transcriber. However this event does not fire when the
InputPanel is already displayed (Enabled) and the user changes the type
to something else.

So for example the user has the Keyboard displayed (i.e. Enabled) and
then changes the InputPanel type to Transcriber. Because the InputPanel
was already in the Enabled state the EnabledChanged event does not fire
(at least not in our application). However this of course causes us
problems because the Transcriber type InputPanel uses much less space
than the Keyboard type InputPanel, meaning that my forms and their
controls are not updated to accomodate this change.

What I'm hoping to find is someway to determine when the user changes
the InputPanel type.

Thanks for your response.

Kris

> The EnabledChanged event should still fire even with the transcriber.
> Let's say you have a datagrid on your form and need to adjust it's
> size based on the SIP:
>
> grid.Height = Math.Min(this.RectangleToClient( sip.VisibleDesktop ).Bottom,
> this.Bottom - SystemInformation.MenuHeight) - grid.Top;
>
> you can adapt this example for tabcontrols, panels, and other containers of
> controls.
>

 
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
Determine if dataset has changed Benj Nunez Microsoft C# .NET 2 7th Jan 2008 01:01 PM
Determine if the sheet has been changed Erik Wikström Microsoft Excel Programming 2 12th Dec 2007 04:00 PM
Dynamiclly Determine Type of Parameter and Type Cast it (code insi =?Utf-8?B?TGVubg==?= Microsoft C# .NET 1 14th Dec 2005 10:24 PM
Determine if a TextField has changed...? =?Utf-8?B?RGVuaXNl?= Microsoft VB .NET 3 25th Apr 2004 09:04 AM
could not find type InputPanel rocio Microsoft Dot NET Compact Framework 1 12th Feb 2004 12:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.