[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Revision graph log message tooltip blinking

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-12-25 13:16:25 CET

Alexander Klenin wrote:
> On 12/23/06, Stefan Küng <tortoisesvn@gmail.com> wrote:
>> Simon Large wrote:
>>
>> If someone can ever find out why out tooltips sometimes start to flash,
>> please tell me (or better: tell me how to fix it).
>>
>> It's not just the tooltips on the revision graph: the ones in the
>> repository browser do that too :(
> Does the "flashing" tooltip appear directly under the mouse cursor?
> I am not sure if this is the same problem, but I have met with the
> following behavior:
> 1) tooltip appears, windows tries to position it at a distance from
> mouse cursor, but fails for some reason (e.g. tooltip is too large)
> 2) tooltip is displayed, windows detects that the mouse is over the
> tooltip and hides the tooltip.
> 3) go to 1.

Not quite:
we already have tooltips on the toolbar. And for some reason, windows
only creates one tooltip control per thread. Since both the view and the
toolbar are in the same (UI) thread, they share the same tooltip control.
It flashes because:
1) tooltip gets shown for the view (e.g. revision node)
2) tooltip is shown big enough to cover the toolbar
3) tooltip control asks the toolbar whether to show a tooltip
4) toolbar says no - the cursor isn't over the toolbar
5) tooltip control destroys the tooltip which is already shown
6) start at 1)

The only way to overcome this problem is to write our own tooltip
control. If you know of another way, please let me know.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Dec 25 13:16:44 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.