#9502: Utilize the SetToolTip(const char*) version ---------------------------------------+---------------------------- Reporter: mmadia | Owner: axeld Type: enhancement | Status: closed Priority: normal | Milestone: R1 Component: Preferences/Time & Date | Version: R1/Development Resolution: fixed | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Changes (by leavengood): * status: new => closed * resolution: => fixed Comment: Actually from what I can tell the way this is done is pretty smart, because GetToolTipAt is only called when the mouse is idle. To use the SetToolTip(const char*) version would require constantly setting the tool tip when the mouse is moving, which is much less efficient. What I decided to do instead is make use of the BTextToolTip's SetText method to just update the text of the existing tool tip if it already exists, and creating it otherwise. That doesn't change the above code much, but it saves constantly recreating the tool tip for no reason. Fixed in hrev45347. -- Ticket URL: <http://dev.haiku-os.org/ticket/9502#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.