| View previous topic :: View next topic |
| Author |
Message |
Ian Hinson Member

Joined: 20 Jun 2004 Posts: 3 Location: Melbourne, Australia
|
Posted: 04/06/07 11:57 Post subject: Suggestion for TToolTip component |
|
I've seen code examples on the web about how to use tool tips (balloon tips) in Delphi applications.
Although they were easy to use, they lacked the flexibility to easily set a range of options that tool tips can provide eg. choice of delay time, background colour, icon etc.
One example (first link below), although having better code, even uses global variables which would make it difficult to use that code for more than one tool tip, ie. different tips for different controls.
The example code I'm referring to is here:
http://www.delphipages.com/news/detaildocs.cfm?ID=90
http://www.swissdelphicenter.ch/en/showcode.php?id=1587
The ideal solution would be a "TToolTip" component that enables the programmer to select which TWinControl descendant on the form the tool tip is for, and provides easy selection of the possible options, and entry of its title & text etc.
I'm sure I'm not alone in feeling the Delphi's Hint property fails to "cut it" in modern applications, and does not provide programmers with enough control over the operation of or the appearance of the hint. Tool tips could overcome this.
Hopefully, Kambiz, this is something that you might consider having a look at for future development (someday?). |
|
|
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1429 Location: Tehran, Iran
|
Posted: 04/06/07 16:36 Post subject: |
|
It's a good idea, thanks.
I'm busy now with some projects. But as soon as I get rid of them, I'll prepare a component for this purpose. |
_________________ Kambiz
 |
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1429 Location: Tehran, Iran
|
Posted: 3 Days ago Post subject: |
|
As promised, I developed the tooltip component.
http://delphiarea.com/products/tooltips/
Sorry for being so late. |
_________________ Kambiz
 |
|
|
|
 |
HPW Moderator

Joined: 25 Feb 2006 Posts: 187 Location: Germany
|
Posted: 3 Days ago Post subject: |
|
The page does not display. Page not found.
The download seems to be:
http://delphiarea.com/products/tooltips/ttm.zip |
_________________ Hans-Peter |
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1429 Location: Tehran, Iran
|
Posted: 3 Days ago Post subject: |
|
I think it is like the last time. The page will appear in few hours. |
_________________ Kambiz
 |
|
|
|
 |
HPW Moderator

Joined: 25 Feb 2006 Posts: 187 Location: Germany
|
Posted: 3 Days ago Post subject: |
|
Now it shows up correctly. |
_________________ Hans-Peter |
|
|
|
 |
w2m Junior Member

Joined: 08 Mar 2003 Posts: 37 Location: New York, USA
|
Posted: Yesterday Post subject: New Tooltip Component Causes AV |
|
I tried out the new Tooltip component ion Delphi 2007 Update 3, on Vista and it causes an A when you try to delete the component from a form. I had to restart Delphi and manually edit the dfm file to remove it. |
_________________ w2m |
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1429 Location: Tehran, Iran
|
Posted: Yesterday Post subject: |
|
Thanks Bill.
I fixed the bug. In addition, added a new event and a read-only property. |
_________________ Kambiz
 |
|
|
|
 |
|