Solved

hints for disabled components

Posted on 1998-03-05
7
493 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

810 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