Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Why can't I see my hintwindow?!

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
Levente
Asked:
Levente
1 Solution
 
kimfriisCommented:
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
 
GaborCommented:
Szia Levente!Is it possible that you have disabled the button or the form with the button?Gabor
0
 
LeventeAuthor Commented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now