🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4402

Re: Eliminate delay in displaying hint

#4402
From: TerryC
Date: Fri, 03 Feb 2006 18:51
18 lines
2011 bytes
>If you want to effect the hint timeouts for only a specific 
>control, then there is a much more efficient way to do that - 
>subclass the control's WindowProc property so that you can 
>intercept the CM_HINTSHOW message directly.  Then you don't 
>need to use the TApplication::HintHidePause property, the 
>TApplication::OnShowHint event, or the parent control's
>OnMouseMove event at all.

Thanks, Remy, for that excellent advice!  I still use the
OnMouseMove event to change the text of the hint, though I 
probably could do that in the new message handler I suppose, but 
the subclassing approach is clearly much more elegant than what 
I was doing.  I have implemented it in my app.

It works beautifully.  You have been a terrific help, as always.

-Terry
Technical Details
Message-ID: <43e3b458$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.germany.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news-raspail.gip.net!news.gsl.net!gip.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43e27f33$1@newsgroups.borland.com> <43e284a8$3@newsgroups.borland.com> <43e28b6e$1@newsgroups.borland.com> <43e2cf80$1@newsgroups.borland.com> <43e37512$1@newsgroups.borland.com> <43e3a7b6$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d93bae9e3a2fedd4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "TerryC" <user@server.org>
Sender: "TerryC" <user@server.org>
Reply-To: "TerryC" <user@server.org>
Subject: Re: Eliminate delay in displaying hint
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 63.250.179.198     
References: <43e27f33$1@newsgroups.borland.com> <43e284a8$3@newsgroups.borland.com> <43e28b6e$1@newsgroups.borland.com> <43e2cf80$1@newsgroups.borland.com> <43e37512$1@newsgroups.borland.com> <43e3a7b6$3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43e3b458$1@newsgroups.borland.com>
Date: 3 Feb 2006 11:51:52 -0700
X-Trace: newsgroups.borland.com 1138996312 207.105.83.66 (3 Feb 2006 11:51:52 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.germany.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news-raspail.gip.net!news.gsl.net!gip.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail