Solved

hints for disabled components

Posted on 1998-03-05
7
485 Views
Last Modified: 2010-04-06
I have a control that can be disabled. For instance, let it be a button that says "install blah". Now, if a user already has "blah" installed, then this button would be disabled. So far, so good. Now I want the hint for that button to show a text explaining why the button is disabled.

How is this done?
0
Comment
Question by:lowlevel
  • 4
  • 2
7 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360088
Euhm. Proposal, I know a way to force to display the hint, but then you still make a way to check if the cursor is above the button. Do you want a new button, which can display two hints?
0
 
LVL 1

Author Comment

by:lowlevel
ID: 1360089
yups :)
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360090
Yo,

I was writing a new component, but then I was realizing that it wasn't such a good idea. What if soembody wanted this also with a TEdit, etc... Than you can start writing a whole bunch of new components.

So I went searching on some tips and what did I found? A component which already does all this and it's freeware....

You can assign the components to the component which have to display a hint when the cursor is over them. Then you can see if the component is disabled, if it is then you just display the hint by this new component.

This is in my opinion the best solution, because I wanted to write such a component too, instead of writing a button with two hints.

You can find the component at :

http://delphiexchange.com/pub/free/mousehin.zip.

It's freeware and you can get the source if you mail to the author.

Regards, Zif.

Good luck, and if you need help, just ask!


0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 8

Expert Comment

by:ZifNab
ID: 1360091
And LowLevel is it working?
0
 
LVL 1

Author Comment

by:lowlevel
ID: 1360092
this works for delphi 1, but I don't think it works for delphi 3. The reason this took so long is that I contacted the author for the source to modify it to delphi 3. But he never replied :(
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360093
Hi lowlevel, I understand he didn't replied to me either. I hoped you had better look while I was waiting. I try to find another solution.
0
 
LVL 2

Accepted Solution

by:
Hagen040798 earned 200 total points
ID: 1360094
Hi lowlevel !

One easy way for one Button is you drop a TBevel or TShape on the same position and size back the Button and set the Hint property. When the Button is disabled the Hint from the Bevel is displayed. (Sorry for my english)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 89
Create Database on Android via Delphi dbExpress 3 66
Working with hours 3 31
How to debug For loops? 3 34
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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