2003-12-11 17:03:47: hockkn (Kevin Hock) created the issue
This patch is a descendant of path 827011, which added
event-based processing of tooltips on MSW. Most
importantly, that patch added a new event and new
method to the tree event, and with this framework
already in place, the only change needed is in the
generic tree control itself.
A new event EVT_TREE_ITEM_GETTOOLTIP is thrown when a
tooltip is needed by the tree (thus allowing the
tooltip to change dynamically when the mouse is moved
over different items).
To set the tooltip, use the new SetToolTip method in
wxTreeEvent. Assuming that the event is not vetoed,
the new tooltip will then be set. m_label is used by
SetToolTip to avoid cluttering the wxTreeEvent with new
members.
This patch does NOT fix the fact that tooltips on a
tree always appear just below the bottom of the tree
control, rather than over the active object, but it
seems that that would be a separate, unrelated patch.
There also seems to be an issue of when events are and
are not thrown from the generic tree control, based on
focus, but that too is not the intent of this patch.
Patch is made against HEAD from, admittedly, a few
weeks ago (11-25).
Issue migrated from trac ticket # 6376
component: GUI-generic | priority: normal
2003-12-11 17:03:47: hockkn (Kevin Hock) created the issue
This patch is a descendant of path 827011, which added event-based processing of tooltips on MSW. Most importantly, that patch added a new event and new method to the tree event, and with this framework already in place, the only change needed is in the generic tree control itself.
A new event EVT_TREE_ITEM_GETTOOLTIP is thrown when a tooltip is needed by the tree (thus allowing the tooltip to change dynamically when the mouse is moved over different items).
To set the tooltip, use the new SetToolTip method in wxTreeEvent. Assuming that the event is not vetoed, the new tooltip will then be set. m_label is used by SetToolTip to avoid cluttering the wxTreeEvent with new members.
This patch does NOT fix the fact that tooltips on a tree always appear just below the bottom of the tree control, rather than over the active object, but it seems that that would be a separate, unrelated patch.
There also seems to be an issue of when events are and are not thrown from the generic tree control, based on focus, but that too is not the intent of this patch.
Patch is made against HEAD from, admittedly, a few weeks ago (11-25).