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

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

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert GUI app into console app for Win32 Env 5 109
select query - oracle 16 100
TServerSocket - file via sendbuf or Text via sendtext ? 1 65
update joined tables 2 55
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

791 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