Solved

speeding up the hint display

Posted on 2000-04-19
2
239 Views
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);
var
  p : TPoint;
  itemnum : integer;
begin
  p.x := x;
  p.y := y;
  itemnum := listbox2.Itematpos(p, true);
  if itemnum > -1 then
  begin
      ListBox2.showhint := false;
      listbox2oldpos := itemnum;
      ListBox2.hint := ListBox2.Items[ItemNum];
      ListBox2.showhint := true;
  end;
end;
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

0
Comment
Question by:mhervais
[X]
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
2 Comments
 
LVL 1

Accepted Solution

by:
msedi earned 50 total points
ID: 2730146
Hello,

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,
Martin
0
 
LVL 4

Author Comment

by:mhervais
ID: 2730253
Great answer Thank you very much
0

Featured Post

Independent Software Vendors: 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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

737 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