Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-01-2007, 07:00 AM
Claus Henning
Newsgroup Contributor
 
Posts: n/a
open soft keyboard automatically

Hi,

I developped an application (MFC) for an XP Tablet PC (Edition 2005,
Version 2002, SP2). In this application I want to open the soft keyboard
automatically when certain edit controls have the input focus.

On Pocket PCs this was very easy. There you can add a certain element to
a dialog (WC_SIPPREF) to get this behaviour. Keyboard (SIP) will open
automatically if a control that expects keyboard input will get the
focus and the keyboard disappears if a control that does not expect
keyboard input will get the focus. This might be the best solution to my
problem. But I will be happy if I only know how to open and close the
keyboard by code in my application.

Claus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-01-2007, 07:00 AM
  #2 (permalink)  
Old 11-01-2007, 08:00 AM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

I dont believe there are any documented API's to do this. It might be
possible to locate the floating icon and post a click message to it but this
would be flaky at best because of the timing issues. Prior to SP2, Windows
had a "PenInputPanel" component that was separate from the system's input
panel that provided a similar UI. But this was dropped in SP2 and no longer
works.

I think Infragistics has a control that does that though.

http://www.infragistics.com/dotnet/n...kprovider.aspx

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Claus Henning" <claus#minus#guntram#dot#henning#at#ortim#dot#de > wrote in
message news:%23MfOhYJHIHA.1212@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I developped an application (MFC) for an XP Tablet PC (Edition 2005,
> Version 2002, SP2). In this application I want to open the soft keyboard
> automatically when certain edit controls have the input focus.
>
> On Pocket PCs this was very easy. There you can add a certain element to a
> dialog (WC_SIPPREF) to get this behaviour. Keyboard (SIP) will open
> automatically if a control that expects keyboard input will get the focus
> and the keyboard disappears if a control that does not expect keyboard
> input will get the focus. This might be the best solution to my problem.
> But I will be happy if I only know how to open and close the keyboard by
> code in my application.
>
> Claus


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 11-04-2007, 06:50 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

On Windows XP Tablet PC Edition 2005 there is not a good way to do this.

With Windows Vista, we have introduced the new TextInputPanel API [1], that
allows you to do this easily like this:

TextInputPanel tip = new TextInputPanel(textBox1);
tip.DefaultInputArea = PanelInputArea.Keyboard;
tip.DefaultInPlaceState = InPlaceState.Expanded;

Now, whenever 'textBox1' gets focus, the soft keyboard pops up for the user.

Thanks,
Stefan Wick - http://blogs.msdn.com/swick

[1] http://msdn2.microsoft.com/en-us/library/ms698524.aspx


"Josh Einstein" wrote:

> I dont believe there are any documented API's to do this. It might be
> possible to locate the floating icon and post a click message to it but this
> would be flaky at best because of the timing issues. Prior to SP2, Windows
> had a "PenInputPanel" component that was separate from the system's input
> panel that provided a similar UI. But this was dropped in SP2 and no longer
> works.
>
> I think Infragistics has a control that does that though.
>
> http://www.infragistics.com/dotnet/n...kprovider.aspx
>
> --
> Josh Einstein (Tablet PC MVP)
> Einstein Technologies
> Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 11-06-2007, 04:20 PM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

Very useful to know. Is there any "what's new for Tablet PC in Vista" in
MSDN?

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com

"Stefan Wick[MS]" <StefanWickMS@discussions.microsoft.com> wrote in message
news:EB1EEDAF-4762-453A-BA02-299BE835D51F@microsoft.com...
> On Windows XP Tablet PC Edition 2005 there is not a good way to do this.
>
> With Windows Vista, we have introduced the new TextInputPanel API [1],
> that
> allows you to do this easily like this:
>
> TextInputPanel tip = new TextInputPanel(textBox1);
> tip.DefaultInputArea = PanelInputArea.Keyboard;
> tip.DefaultInPlaceState = InPlaceState.Expanded;
>
> Now, whenever 'textBox1' gets focus, the soft keyboard pops up for the
> user.
>
> Thanks,
> Stefan Wick - http://blogs.msdn.com/swick
>
> [1] http://msdn2.microsoft.com/en-us/library/ms698524.aspx
>
>
> "Josh Einstein" wrote:
>
>> I dont believe there are any documented API's to do this. It might be
>> possible to locate the floating icon and post a click message to it but
>> this
>> would be flaky at best because of the timing issues. Prior to SP2,
>> Windows
>> had a "PenInputPanel" component that was separate from the system's input
>> panel that provided a similar UI. But this was dropped in SP2 and no
>> longer
>> works.
>>
>> I think Infragistics has a control that does that though.
>>
>> http://www.infragistics.com/dotnet/n...kprovider.aspx
>>
>> --
>> Josh Einstein (Tablet PC MVP)
>> Einstein Technologies
>> Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 11-06-2007, 05:40 PM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

MSDN has this one:
http://msdn2.microsoft.com/en-us/library/ms704356.aspx

Unfortunately, it doesn't mention the new TextInputPanel API in that
overview. I'll make sure we add that.

Thanks,
Stefan Wick - http://blogs.msdn.com/swick

"Josh Einstein" <josh@einsteintech.net> wrote in message
news:5562FB03-9B61-4B6F-A0BF-8815A52D8B7C@microsoft.com...
> Very useful to know. Is there any "what's new for Tablet PC in Vista" in
> MSDN?
>
> --
> Josh Einstein (Tablet PC MVP)
> Einstein Technologies
> Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 11-13-2007, 10:20 PM
Claus Henning
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

Stefan Wick[MS] schrieb/wrote:
> On Windows XP Tablet PC Edition 2005 there is not a good way to do this.


And what is a not-good way to do this?

Claus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 11-15-2007, 07:00 PM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

It doesn't work well if I remember, but I experimented with posting messages
to the invisible hwnd before. But it won't be suitable for users.

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Claus Henning" <claus#minus#guntram#dot#henning#at#ortim#dot#de > wrote in
message news:Oi0XIUoJIHA.4712@TK2MSFTNGP04.phx.gbl...
> Stefan Wick[MS] schrieb/wrote:
>> On Windows XP Tablet PC Edition 2005 there is not a good way to do this.

>
> And what is a not-good way to do this?
>
> Claus


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 11-15-2007, 09:50 PM
Claus Henning
Newsgroup Contributor
 
Posts: n/a
Re: open soft keyboard automatically

Josh Einstein schrieb/wrote:
> It doesn't work well if I remember, but I experimented with posting
> messages to the invisible hwnd before. But it won't be suitable for users.
>


Maybe, I'll give it a try.

Thanks
Claus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automatically open new tab with new process? CRTVeous Internet Explorer 3 10-16-2007 08:30 AM
MOV files won't open automatically Terry Pinnell Windows XP 11 08-21-2007 11:10 PM
Just how many open bugs / issues does Microsoft have with its soft DooWopDJ Windows Vista 10 05-19-2007 03:30 PM
Pen not working nor soft keyboard Dave Windows XP Tablet PC Newsgroup 1 08-16-2005 08:24 AM
XPSP2 Build 2082 killed my soft keyboard! richard Windows XP Tablet PC Newsgroup 2 05-26-2004 10:10 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 11:49 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0