Hi all. About RichTextCtrl i 'd put tooltip when mouse over url text.
I thought there was a SetToolTipString method in wx.richtext but there
isn't.
I googled but i do not found anything. Is it possible?
Then I guess you will have to roll out your own approach, maybe using
the RichTextCtrl HitTest method inside a wx.EVT_MOTION event handler
to see where the mouse is and placing the appropriate tooltip.
But I want to associate the tooltip a particular text
of the window rather than the whole window:
self\.rtc\.BeginStyle\(urlStyle\)
self\.rtc\.BeginURL\("http://wxPython.org/"\)
self\.rtc\.WriteText\("The wxPython Web Site"\)
\#i 'd put tooltip when mouse over "The wxPython Web Site" text
above
self.rtc.SetToolTipString('Hello') #??? it is associated at window
self.rtc.EndURL();
self.rtc.EndStyle();
But I want to associate the tooltip a particular text
of the window rather than the whole window:
self.rtc.BeginStyle(urlStyle)
self.rtc.BeginURL("http://wxPython.org/"\)
self.rtc.WriteText("The wxPython Web Site") #i 'd put tooltip when mouse over "The wxPython Web Site" text
above
self.rtc.SetToolTipString('Hello') #??? it is associated at window
self.rtc.EndURL();
self.rtc.EndStyle();
Then I guess you will have to roll out your own approach, maybe using
the RichTextCtrl HitTest method inside a wx.EVT_MOTION event handler
to see where the mouse is and placing the appropriate tooltip.