AW: [wxPython] wxToolTip on wxGrid

thanks - But it works only partly;
On Win platform i have the following problem:
if the first tooltip is shown i have to "touch the visible Tooltip" with the mouve till
the new ToolTip String for another Position got displayed.

Maybe i have to do something with ON_IDLE - but i dont know how and what

any ideas ?

-----Ursprungliche Nachricht-----

···

Von: Robin Dunn [SMTP:robin@alldunn.com]
Gesendet am: Donnerstag, 28. Juni 2001 01:49
An: wxpython-users@lists.wxwindows.org
Betreff: Re: [wxPython] wxToolTip on wxGrid

I want to show a
  ToolTip on a wxGrid Window. (plattform Windows an Linux )

Depending on the Row where the mouse is, i want to show
different ToolTip Strings (multiple lines) .

which Events do i have to implement ?

Something like this maybe, (where self is a grid):

        EVT_MOTION(self.GetGridWindow(), self.OnMouseMotion)

    def OnMouseMotion(self, evt):
        x, y = evt.GetPosition()
        row = self.YToRow(y)
        col = self.XToCol(x)
        self.GetGridWindow().SetToolTipString(
            "Here is the ToolTip for (%d, %d)" % (row, col))
        evt.Skip()

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

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users