Solved

hints for disabled components

Posted on 1998-03-05
7
509 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
[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
  • 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
Technology Partners: 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!

 
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

Industry Leaders: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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