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 02-21-2008, 11:20 AM
Marc Lamontange
Newsgroup Contributor
 
Posts: n/a
How to get window location of Text Input Panel?

I'm developing in C# and I'm using TextInputPanel object but it seems there
is no method to get window location of Text Input Panel.
SetInPlacePosition() exist but not GetInPlacePosition().

I have tried to enumerate windows in Win32 API but I haven't found the Text
Input Panel window (in float mode).

Is there a way to get window location of Text Input Panel?

Thanks,

Marc


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

 
Old 02-21-2008, 11:20 AM
  #2 (permalink)  
Old 02-26-2008, 04:01 PM
G. Ramachandran.
Newsgroup Contributor
 
Posts: n/a
RE: How to get window location of Text Input Panel?

Hello Marc,

Are you trying to get the co-ordinates of the Text Input Panel? If so, you
can do so by calling the InPlaceBoundingRectangle property of the
TextInputPanel object:

Reference and sample code is at:
http://msdn2.microsoft.com/en-us/lib...05(VS.85).aspx


If you are using the PenInputPanel object, you can use these properties of
the PenInputPanel object to determine the window position:

Left - Gets the horizontal, or x-axis, location of the left edge of the
PenInputPanel object, in screen coordinates.
Top - Gets the vertical, or y-axis, location of the top edge of the
PenInputPanel object, in screen coordinates.

Reference:
http://msdn.microsoft.com/library/de...bjpeninput.asp

Hope this helps.

ramaguru.


"Marc Lamontange" wrote:

> I'm developing in C# and I'm using TextInputPanel object but it seems there
> is no method to get window location of Text Input Panel.
> SetInPlacePosition() exist but not GetInPlacePosition().
>
> I have tried to enumerate windows in Win32 API but I haven't found the Text
> Input Panel window (in float mode).
>
> Is there a way to get window location of Text Input Panel?
>
> Thanks,
>
> Marc
>
>

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

  #3 (permalink)  
Old 02-27-2008, 05:50 AM
Marc Lamontange
Newsgroup Contributor
 
Posts: n/a
RE: How to get window location of Text Input Panel?

Hi, G. Ramachandran,

Thanks for your answer. I have tried to call InPlaceBoundingRectangle() but
Left and Top propertiies always return value 0. Bottom (=255) and Right
(=691) give the height and the width of the Text Input Panel.

I'm using a Samsung Q1 Ultra with Window Vista OS.

Marc :(


"G. Ramachandran." wrote:

> Hello Marc,
>
> Are you trying to get the co-ordinates of the Text Input Panel? If so, you
> can do so by calling the InPlaceBoundingRectangle property of the
> TextInputPanel object:
>
> Reference and sample code is at:
> http://msdn2.microsoft.com/en-us/lib...05(VS.85).aspx
>
>
> If you are using the PenInputPanel object, you can use these properties of
> the PenInputPanel object to determine the window position:
>
> Left - Gets the horizontal, or x-axis, location of the left edge of the
> PenInputPanel object, in screen coordinates.
> Top - Gets the vertical, or y-axis, location of the top edge of the
> PenInputPanel object, in screen coordinates.
>
> Reference:
> http://msdn.microsoft.com/library/de...bjpeninput.asp
>
> Hope this helps.
>
> ramaguru.
>
>
> "Marc Lamontange" wrote:
>
> > I'm developing in C# and I'm using TextInputPanel object but it seems there
> > is no method to get window location of Text Input Panel.
> > SetInPlacePosition() exist but not GetInPlacePosition().
> >
> > I have tried to enumerate windows in Win32 API but I haven't found the Text
> > Input Panel window (in float mode).
> >
> > Is there a way to get window location of Text Input Panel?
> >
> > Thanks,
> >
> > Marc
> >
> >

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

  #4 (permalink)  
Old 02-27-2008, 05:01 PM
G. Ramachandran.
Newsgroup Contributor
 
Posts: n/a
RE: How to get window location of Text Input Panel?

Marc, that is definitely a bug. The point of the property was to be able to
determine Text input panel co-ordinates. You have just exposed a bug. Thank
you !

When you do EnumWindows(), the window class name you want to look for is
"IPTip_Main_Window". Please let me know if this enumeration works.

Thank you,
G. Ramachandran.

"Marc Lamontange" wrote:

> Hi, G. Ramachandran,
>
> Thanks for your answer. I have tried to call InPlaceBoundingRectangle() but
> Left and Top propertiies always return value 0. Bottom (=255) and Right
> (=691) give the height and the width of the Text Input Panel.
>
> I'm using a Samsung Q1 Ultra with Window Vista OS.
>
> Marc :(
>
>
> "G. Ramachandran." wrote:
>
> > Hello Marc,
> >
> > Are you trying to get the co-ordinates of the Text Input Panel? If so, you
> > can do so by calling the InPlaceBoundingRectangle property of the
> > TextInputPanel object:
> >
> > Reference and sample code is at:
> > http://msdn2.microsoft.com/en-us/lib...05(VS.85).aspx
> >
> >
> > If you are using the PenInputPanel object, you can use these properties of
> > the PenInputPanel object to determine the window position:
> >
> > Left - Gets the horizontal, or x-axis, location of the left edge of the
> > PenInputPanel object, in screen coordinates.
> > Top - Gets the vertical, or y-axis, location of the top edge of the
> > PenInputPanel object, in screen coordinates.
> >
> > Reference:
> > http://msdn.microsoft.com/library/de...bjpeninput.asp
> >
> > Hope this helps.
> >
> > ramaguru.
> >
> >
> > "Marc Lamontange" wrote:
> >
> > > I'm developing in C# and I'm using TextInputPanel object but it seems there
> > > is no method to get window location of Text Input Panel.
> > > SetInPlacePosition() exist but not GetInPlacePosition().
> > >
> > > I have tried to enumerate windows in Win32 API but I haven't found the Text
> > > Input Panel window (in float mode).
> > >
> > > Is there a way to get window location of Text Input Panel?
> > >
> > > Thanks,
> > >
> > > Marc
> > >
> > >

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

  #5 (permalink)  
Old 03-10-2008, 06:11 AM
Marc Lamontange
Newsgroup Contributor
 
Posts: n/a
RE: How to get window location of Text Input Panel?

Hi, G. Ramachandran,

That's works fine! I have used FindWindow() and GetWindowRect() functions.

Only one thing to know. You must substract 153 from Top co-ordinates. When
TextInputPanel is at the top left corner of the screen, I get left=0 and
top=-153. Obviously, you must substract also 153 from the height.

Thanks you.




"G. Ramachandran." wrote:

> Marc, that is definitely a bug. The point of the property was to be able to
> determine Text input panel co-ordinates. You have just exposed a bug. Thank
> you !
>
> When you do EnumWindows(), the window class name you want to look for is
> "IPTip_Main_Window". Please let me know if this enumeration works.
>
> Thank you,
> G. Ramachandran.
>
> "Marc Lamontange" wrote:
>
> > Hi, G. Ramachandran,
> >
> > Thanks for your answer. I have tried to call InPlaceBoundingRectangle() but
> > Left and Top propertiies always return value 0. Bottom (=255) and Right
> > (=691) give the height and the width of the Text Input Panel.
> >
> > I'm using a Samsung Q1 Ultra with Window Vista OS.
> >
> > Marc :(
> >
> >
> > "G. Ramachandran." wrote:
> >
> > > Hello Marc,
> > >
> > > Are you trying to get the co-ordinates of the Text Input Panel? If so, you
> > > can do so by calling the InPlaceBoundingRectangle property of the
> > > TextInputPanel object:
> > >
> > > Reference and sample code is at:
> > > http://msdn2.microsoft.com/en-us/lib...05(VS.85).aspx
> > >
> > >
> > > If you are using the PenInputPanel object, you can use these properties of
> > > the PenInputPanel object to determine the window position:
> > >
> > > Left - Gets the horizontal, or x-axis, location of the left edge of the
> > > PenInputPanel object, in screen coordinates.
> > > Top - Gets the vertical, or y-axis, location of the top edge of the
> > > PenInputPanel object, in screen coordinates.
> > >
> > > Reference:
> > > http://msdn.microsoft.com/library/de...bjpeninput.asp
> > >
> > > Hope this helps.
> > >
> > > ramaguru.
> > >
> > >
> > > "Marc Lamontange" wrote:
> > >
> > > > I'm developing in C# and I'm using TextInputPanel object but it seems there
> > > > is no method to get window location of Text Input Panel.
> > > > SetInPlacePosition() exist but not GetInPlacePosition().
> > > >
> > > > I have tried to enumerate windows in Win32 API but I haven't found the Text
> > > > Input Panel window (in float mode).
> > > >
> > > > Is there a way to get window location of Text Input Panel?
> > > >
> > > > Thanks,
> > > >
> > > > Marc
> > > >
> > > >

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
Text Input Panel stops inserting text when [Insert] button is touc Colorado Ray Microsoft OneNote 0 08-29-2007 09:20 AM
Text Input Panel disabled? Alan K. Windows XP Tablet PC Newsgroup 14 08-16-2005 08:29 AM
"Enter, bksp, del ... panel" goes away randomly on the Text Input Panel Pete B. Windows XP Tablet PC Newsgroup 2 08-16-2005 08:28 AM
Input Panel does not insert text Brian Thorpe Windows XP Tablet PC Newsgroup 7 01-24-2005 11:15 PM
Input Panel will not input text =?Utf-8?B?ZzAxMA==?= Windows XP Tablet PC Newsgroup 4 05-26-2004 10:17 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 09:14 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0