Showing tooltips in ownerdraw listbox

  • Thread starter Thread starter Marcelo
  • Start date Start date
M

Marcelo

Hi,

I have a fixed width ownerdraw listbox, in which some of the items get
truncated.
What I'd like to know is if anyone has any tip and/or tutorial on how to
implement something like a tooltip for the items that get truncated, so in
it I can show the full text.

thanks in advance
 
The problem here is that SetToolTip expects a control as parameter... Can I
pass an item of the listbox as a control?

About removing or reorder items, this will never happen... it is somewhat a
log for a long process... just grows...
 
Didn't look and didn't realize that it expected a control. Only other
thought I had short of creating your own tool tip system would be to use the
ListBox itself as the source control and then in it's mouse move event
change the tool tip text based on which item its over at the time. No idea
on how the ToolTip class will behave with the text being changed, might end
up having to force it to reshow when it moves over a new item and after
you've changed the text.
 
-----Original Message-----
Hi,

I have a fixed width ownerdraw listbox, in which some of the items get
truncated.
What I'd like to know is if anyone has any tip and/or tutorial on how to
implement something like a tooltip for the items that get truncated, so in
it I can show the full text.

thanks in advance


.
 
Back
Top