|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| 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 |
| |||
| 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 > > |
| |||
| 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 > > > > |
| |||
| 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 > > > > > > |
| |||
| 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 > > > > > > > > |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |