| View previous topic :: View next topic |
| Author |
Message |
Jerry Hayes Guest
|
Posted: Thu May 18, 2006 11:14 pm Post subject: Want a small floating tip during editing |
|
|
I want to generate a floating tip, just like you'd see on a mouse-over tip,
during the editing of my RTF.
Tip will be generated based on the current word, while keyboarding. (Look up
current word, see if there's a tip, show it).
Best way to handle this?
Thanks all. |
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Thu May 18, 2006 11:14 pm Post subject: Re: Want a small floating tip during editing |
|
|
Jerry Hayes wrote:
| Quote: | I want to generate a floating tip, just like you'd see on a
mouse-over tip, during the editing of my RTF.
Tip will be generated based on the current word, while keyboarding.
(Look up current word, see if there's a tip, show it).
Best way to handle this?
|
Are you looking for a thirdparty tool (since you posted it here) or
just want to know how to do this yourself in code?
--
-Mike (TeamB) |
|
| Back to top |
|
 |
Jerry Hayes Guest
|
Posted: Fri May 19, 2006 2:15 pm Post subject: Re: Want a small floating tip during editing |
|
|
Code is fine; just thought there might've been a control that might be
"value added".
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message
news:446cfa0a$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Are you looking for a thirdparty tool (since you posted it here) or
just want to know how to do this yourself in code? |
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Fri May 19, 2006 3:15 pm Post subject: Re: Want a small floating tip during editing |
|
|
Jerry Hayes wrote:
| Quote: | Code is fine; just thought there might've been a control that might
be "value added".
|
I'm not aware of any existing control that does this. Perhaps someone
else knows of one and can answer that.
One idea for coding it yourself would be to have an OnChange handler
for the RichEdit that looks at the SetStart value and extracts the word
to the left. It could then look up that word in a list and if found
display the hint. The hint window could be your own small stay-on-top
window that you simply show and hide as needed. I tried to put
together a small example but got stuck trying to figure out the actual
x and y coordinates of the text cursor in the RichEdit. It's more
common to want to find the row and column of the cursor. I assume that
you would want the hint slightly below of that point.
--
-Mike (TeamB) |
|
| Back to top |
|
 |
|