This is probably possible but will be difficult. There are a number of form entities for which this will be relatively easy, you get the pen position, find out what object is there and then find out what word in that object is being displayed (though this will take some work to find out that the word at x,y on the label is "the" or "name" or whatever because you'll have to use font metrics and such to get the word at that coordinate). However, for things that are put on the screen using WinDrawChars and that ilk, you won't have a way to get the text at that coordinate. One could imaging grabbing the pixels around that coordinate and using some character recognition to find out what they are, but I think you'll agree that is not likely on a Palm OS device....
Another difficulty you will have is that you can't hover on Palm OS and you'll have difficulty determining whether a user meant to select the control normally or if they meant to invoke your dictionary function. K -----Original Message----- From: Xue Qu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 8:00 AM To: Palm Developer Forum Subject: A question on PalmOS Hi all, I m recently doing with a dictionary-like software that can translate English into Chinese or Japanese, i once made such kind of software on PC(win2000), and through HOOK, i can realize a great feature that when i suspend my mouse pointer upon an english word for a while, no matter where the word is(any word on the screen), one form will pop up to explain the meaning of the word in Chinese or Japanese, that's very convenient to those who don't know much about english and want to use english softwares or view english websites. but i knew it that the palmos did not support things like HOOK, how can i realize such function? i mean when my pen pressed an english word (any word on the screen) for some time, a form will popup to say its meaning.i want to know IS THAT POSSIBLE? Thank you in advance. Xue Qu Kingsoft Co.,Ltd. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify Invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
