wxToolTip in wxListCtrl

hi,

i am having a list ctrl into which values(list items) are populated dynamically at random intervals

i want the tool tip to be displayed for each list item since each item has different descriptions.

So what i want is when the user points his mouse over each list items, it should display the desciptions.

i am able to put a ToolTip for the listCtrl but not for the items in the ListCtrl.

Is it possible to put wxToolTip for a ListCtrl item???

···


Regards,

Shine Anne

Shine Anne wrote:

hi,
i am having a list ctrl into which values(list items) are populated dynamically at random intervals
i want the tool tip to be displayed for each list item since each item has different descriptions.
So what i want is when the user points his mouse over each list items, it should display the desciptions.
i am able to put a ToolTip for the listCtrl but not for the items in the ListCtrl.
Is it possible to put wxToolTip for a ListCtrl item???

Yes, but you'll need to do a little work. You'll need to catch mouse events for the the listctrl and detect detect when the mouse is hovering. Then you can use a wx.TipWindow do display your own tip text for that item.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!