Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding 'modified' tooltip
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01051669
Message ID:
01051726
Views:
7
Viv,
Thanks for the reply. I got this one working already. I used the OnMouseMove event handler (override) of the control and depending on the X,Y coordinates I can determine the temperature and display it for the user. If the X,Y coordinates are outside of the boundaries (i.e. ouside the cylinder) I set the tooltip text to blank and it disapears. It works pretty slick if I may say so myself.

Einar
>Hi,
>
>Seems to me this should be controlled by the MouseMove event of the thermometer itself. I'd add a custom child control to the thermometer and set its position and content in the thermometer controls .MouseMove (and its visibility in MouseEnter, MouseLeave)
>
>Regards,
>Viv
>
>>I woke up this morning and had a kinda cool feature in my head, but I am having some problems implementing it.
>>Some background information. I am designing a graphical custom thermometer control (a cylinder and bubble with a colored liquid inside it). I started this as an excersise to learn more about GDI+, but I also think I need it for a project <s>. Anywho, I added code so that I can click within the cylinder and the liquid level moves to the point I clicked.
>>Now to the feature. What if I could display a tooltip while hovering over the thermometer cylinder, the tooltip would change as I moved up and down and display the temperature for that particular point.
>>
>>Currently I just set the tooltip up in the constructor something like this:
>>
>>myToolTip = new ToolTip();
>>myToolTip.AutoPopDelay = 5000;
>>myToolTip.InitialDelay = 1000;
>>myToolTip.ReshowDelay = 500;
>>myToolTip.ShowAlways = true;
>>myToolTip.SetToolTip(this, "Temperature: ???°F");
>>
>>
>>Am I even on the right track? Can I change the tooltip text the way I am sugesting? Am I better off creating my own'form' that moves with the mouse cursor?
>>
>>Any thoughts on the subject are appreciated.
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform