Article View: borland.public.cppbuilder.nativeapi
Article #4400Re: Eliminate delay in displaying hint
From: TerryC
Date: Fri, 03 Feb 2006 14:21
Date: Fri, 03 Feb 2006 14:21
23 lines
1842 bytes
1842 bytes
>You may have to use the TApplication::OnShowHint event to force >the hint to reshow by setting the HintInfo.ReshowTimeout member >to a value greater than zero. This was the key. In the control's OnMouseMove event, I changed the value of the Hint property as needed and set the TApplication->HintPause = 0, ->HintHidePause = 10000, and ->HintShortPause = 0. The TApplication->OnShowHint event handler sets HintInfo.ReshowTimeout to 15ms. Presto! If this is zero, it only shows the hint once, but higher values force it to redisplay. I also added a handler for the OnMouseMove event of the control on which the first one lives, to reset the HintPause, etc. values back to defaults and detach the OnShowHint handler so other hints on the form will behave in the normal way. Many thanks for the help! -Terry
Technical Details
Message-ID:
<43e37512$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43e27f33$1@newsgroups.borland.com> <43e284a8$3@newsgroups.borland.com> <43e28b6e$1@newsgroups.borland.com> <43e2cf80$1@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.net> Sender: "TerryC" <user@server.net> Reply-To: "TerryC" <user@server.net> 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> NNTP-Posting-Host: 207.105.83.66 Message-ID: <43e37512$1@newsgroups.borland.com> Date: 3 Feb 2006 07:21:54 -0700 X-Trace: newsgroups.borland.com 1138980114 207.105.83.66 (3 Feb 2006 07:21:54 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail