Board index » delphi » Show Hint when the string is too long to display

Show Hint when the string is too long to display

I want to make a list box for some long strings.
And I noticed that in Delphi or other programs when the program is too long
to display, you can move your mouse cursor to it, and a hint of it's
complete name will be show on it. Would somebody please tell me how to do
it. Thanks a lot.
By the way, who can tell me how to make a program with System tray icon, I
will be very appreciate.
Please email to me hai...@shedi.net.cn thanks again
 

Re:Show Hint when the string is too long to display


Quote
"Huang, Haixu" <hai...@shedi.net.cn> wrote in message

news:8a2do9$t5s$1@info.sta.net.cn...

Quote
> I want to make a list box for some long strings.
> And I noticed that in Delphi or other programs when the program is too
long
> to display, you can move your mouse cursor to it, and a hint of it's
> complete name will be show on it. Would somebody please tell me how to do
> it. Thanks a lot.

I would think that in the listbox's OnMouseMove you could establish the item
that the mouse is over and assign its text to the listbox's Hint property.
Don't forget to set the listbox's ShowHint to true as well.
Quote
> By the way, who can tell me how to make a program with System tray icon, I
> will be very appreciate.
> Please email to me hai...@shedi.net.cn thanks again

Other Threads