Solved

Why can't I see my hintwindow?!

Posted on 1997-07-08
3
184 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now