On 12/16/09 12:09 PM, Mears wrote:
> I noticed what appears to be an issue with the placement of ToolTips
> when using CustomTreeCtrl. If you run the demo and select the
> "EVT_TREE_ITEM_GETTOOLTIP" checkbox and hover over an item in the
> CustomTreeCtrl, you may notice that the tool tip doesn't pop up where
> you'd expect it. I would expect the tip of the cursor to be in the
> upper left hand corner of the tool tip. Under windows, the tool tip
> comes up just below the mouse cursor. Running under Linux, it pops up
> down around the "Demo Log Messages" caption.
Unfortunately that is the default behavior in GTK for the built-in
tooltip for widgets. They always show up near the bottom edge of the
widget. For larger widgets where you actually want a tip for an item
within the widget rather than the widget as a whole it doesn't work so
well. I guess that the larger native GTK widgets do something different
than use the built-in tooltip behavior. For generic wx widgets we could
use wx.TipWindow instead.
--
Robin Dunn
Software Craftsman
http://wxPython.org