speeding up the hint display

Posted on 2000-04-19
Last Modified: 2010-04-04
In a listbox, I wanted to code a hint on mousemove.

I coded this :

procedure TFMagicWinner.ListBox2MouseMove(Sender: TObject;
  Shift: TShiftState; X, Y: Integer);
  p : TPoint;
  itemnum : integer;
  p.x := x;
  p.y := y;
  itemnum := listbox2.Itematpos(p, true);
  if itemnum > -1 then
      ListBox2.showhint := false;
      listbox2oldpos := itemnum;
      ListBox2.hint := ListBox2.Items[ItemNum];
      ListBox2.showhint := true;
it works fine when I enter on the control, but when I move the mouse over it, the hint is not redisplayed.
The problem does not come from the mousemove event which is triggered correctly but from the fact that I cannot display the hint when I want.

I am sure somebody has a simple solution for that

Question by:mhervais
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

msedi earned 50 total points
ID: 2730146

maybe you can try Application.CancelHint. That's the one to reset the HintDisplay counter.
For the time to hide and show the hint, try Application.HintHidePause and Application.HintShortPause maybe these two properties are useful for you.

Good luck,

Author Comment

ID: 2730253
Great answer Thank you very much

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question