Board index » delphi » Show a HINT window anywhere ?

Show a HINT window anywhere ?

I want to show a HINT window on the screen, when the mouse cursor is
above a big ListBox. And I want to show it just under the mouse
cursor, not at the corner of the TListBox.

How can I do it?

To tell the truth, I want to create a hint system as is in
Delphi4 and Delphi5. When I am moving the mouse cursor
through the source code, it shows the values of the variables
on the top.

Thanks for advance

Aroan

 

Re:Show a HINT window anywhere ?


You can do that, but not easily.
Just catch the OnMouseMove event, and create you own small help window.

Re:Show a HINT window anywhere ?


Amen.  It is definitely not easy to make the standard hint
system behave in any way other than in its current default
behavior.    I found it easier to just put a TStaticText on
my form and programatically decide when, where, and what
to show.

Rob

Quote
Hazielponi wrote:
> You can do that, but not easily.
> Just catch the OnMouseMove event, and create you own small help window.

Re:Show a HINT window anywhere ?


Quote
"Hernyak Zoltan" <ar...@ektf.hu> wrote in message

news:39e19062.3774210@news.iif.hu...

Quote
> I want to show a HINT window on the screen, when the mouse cursor is
> above a big ListBox. And I want to show it just under the mouse
> cursor, not at the corner of the TListBox.

I must not understand your problem. AFAIK if you have hints on the list box
hint string will be displayed just under the mouse cursor whenever the mouse
hovers over the list box.

Re:Show a HINT window anywhere ?


Actually there is a fairly easy way to control what the hints do. Just
write an OnShowHint event handler for the TApplication . If you have
Delphi 5 then this can be done very easily using the TApplicationEvents
component. The OnShowHint takes in some variables that you can change
before the hint is displayed. So you can change its position, size, what
is says, the time it stays up and some more, before the hint is
displayed.

In article <39E890E3.15C3F...@cnnsimail.com>, Rob Stow
<rob.s...@cnnsimail.com> writes

Quote
>Amen.  It is definitely not easy to make the standard hint
>system behave in any way other than in its current default
>behavior.    I found it easier to just put a TStaticText on
>my form and programatically decide when, where, and what
>to show.

>Rob

>Hazielponi wrote:

>> You can do that, but not easily.
>> Just catch the OnMouseMove event, and create you own small help window.

--
Ian Dunn                     I...@polyhedron.com

Polyhedron Software Ltd.        
Programs for Programmers - QA, Compilers, Graphics

************ Visit our Web site on http://www.polyhedron.co.uk/ ************

Other Threads