BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Want a small floating tip during editing

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Jerry Hayes
Guest





PostPosted: Thu May 18, 2006 11:14 pm    Post subject: Want a small floating tip during editing Reply with 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?

Thanks all.
Back to top
Mike Williams (TeamB)
Guest





PostPosted: Thu May 18, 2006 11:14 pm    Post subject: Re: Want a small floating tip during editing Reply with quote



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





PostPosted: Fri May 19, 2006 2:15 pm    Post subject: Re: Want a small floating tip during editing Reply with quote



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





PostPosted: Fri May 19, 2006 3:15 pm    Post subject: Re: Want a small floating tip during editing Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.