Posted 18 years ago
by karl
-
Senior Software Architect,
Shelltools, LLC
Version: 3.1.0216
Platform: .NET 2.0
Environment: Windows XP (32-bit)
I have a project.. when i create syntax editors (v3.1 - 216) dynamically and hook up the TokenMouseHover event manually.. on XP , 95% of the time the mousehover on the token works fine, and i get my nice tooltip sort of things i use. however over the last 6 months when using my app, i've noticed that sometimes it doesn't work.. i thought maybe something to do with a bad system, windows resource usage.. and rebooting the machine would ussually fix it, however other tooltip stuff worked at the same time.. anyhow it worked most the time so i ignored it.. but i did notice that it was actually over a number of machines that it would sometimes not work..
but today, i've been working on making sure all is well with the app on vista, and it NEVER works on vista.. so i poked deeper.. and the actual MouseTokenEvent Doesn't even fire, at all in this case (however in a simple test app i created with one static syntaxeditor control, it fird fine on vista), but not in my app..
i added a menuitem, to add the event again and again and it just won't fire, under any circumstance...
an interesting note, just now on my XP box its misbehaving as well, but it seems to be firing maybe one out of 50 times i hover over a token.
one thing about my app, is that i have 2 different and distinct syntax editor controls on the form at the same time, maybe that is a factor.
this here is a key aspect in my application.. my next steps in trying to isolate it, is to look at tokenmouseenter and tokenmouseleave and see if they are firing as well.. and to make a simple example, that has 2 syntax editors on the form (and see if i can reproduce the error simply on vista)..
another thing to note is the syntax editor is not "directly" on the form.. but inside a winforms usercontrol.
-Karl
but today, i've been working on making sure all is well with the app on vista, and it NEVER works on vista.. so i poked deeper.. and the actual MouseTokenEvent Doesn't even fire, at all in this case (however in a simple test app i created with one static syntaxeditor control, it fird fine on vista), but not in my app..
i added a menuitem, to add the event again and again and it just won't fire, under any circumstance...
an interesting note, just now on my XP box its misbehaving as well, but it seems to be firing maybe one out of 50 times i hover over a token.
one thing about my app, is that i have 2 different and distinct syntax editor controls on the form at the same time, maybe that is a factor.
this here is a key aspect in my application.. my next steps in trying to isolate it, is to look at tokenmouseenter and tokenmouseleave and see if they are firing as well.. and to make a simple example, that has 2 syntax editors on the form (and see if i can reproduce the error simply on vista)..
another thing to note is the syntax editor is not "directly" on the form.. but inside a winforms usercontrol.
-Karl