Solved

Why can't I see my hintwindow?!

Posted on 1997-07-08
3
200 Views
Last Modified: 2010-04-06
I have a form with a button on it. This button's showhint property is set to true and normally the small hintwindow appears beside this button. But when the program processes a

repeat

  ( ... )
  Application.ProcessMessages;

until condition;

loop the hintwindow doesn't seem to appear. Has anyone got a solution for my problem ? I have Delphi 1 under Windows 95.

Any help would be appreciated.

                              Levente
kecsplan@c3.hu
0
Comment
Question by:Levente
3 Comments
 

Accepted Solution

by:
kimfriis earned 80 total points
ID: 1338486
It seems that Windows will not fire the OnHint event when the application is busy doing something else. What you could do was to in the repeat .. until loop, check where your mousepointer are, and if it is within the bounds of the button, show a small hint window. That should not be to difficult. The hintwindow could even be a small bitmap that you kept hiding right under the button, and then set its visible property to true, when you needed to. I know that that would not make the usual delay, but you could simulate that with a timer.
0
 
LVL 1

Expert Comment

by:Gabor
ID: 1338487
Szia Levente!Is it possible that you have disabled the button or the form with the button?Gabor
0
 

Author Comment

by:Levente
ID: 1338488
Thank you for your answer. A solved my problem by making some modification in your help. Now I have a label
hidden on my form and in my button's onMouseMove event
I show this label. When the cursor is not over my button I simply hide the label.

Well, this is not a very nice solution though, but, at least, it works.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to send memory stream from ics Client To ics server ? 11 172
Base1 Encode/Decode 3 85
Breakpoint doesn't stop in my variable 3 36
delphi popmenu non latine charcters 3 30
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…
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…

685 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