I have ToolTips turned on to display when a user hovers over a text box. Currently the tooltip's display position seems to be based on where my mouse pointer is on the text box.
Is there a way to always set the tooltip position to a specified point regardless of the mouse pointer's position when hovering over the text box? For example, I always want the tooltip position to be in the upper left corner of the text box regardless of where the mouse pointer is hovering on the text box.
Thanks
Bill
Hi Bill,
What tooltip are you using? The Inbox ToolTip or UltraToolTipManager?
UltraToolTipManager allows you to specify exclusion areas and the exact point you want. There's a sample that does exactly what you describe, pointing a balloon tip at the corner of a control.
Thanks Mike.
Yes, I am using the UltraToolTipManager but I can't seem to find where I can set those properties. Can you help me out a little further?
Oh, I don't think you can do it via a property setting. You have to use the ShowToolTip method and pass in the values. Check out the ShowToolTip Method sample.
If your tooltips are extending off the screen, then something is wrong. That hould never happen. Do you have the latest Hot Fix? If you do and that is still happening, then you should Submit an incident to Infragistics Developer Support.
A balloon tip is more like a speech balloon in a cartoon, where there's a callout (an arrow) pointing to something.
The problem with this is:...
I am trying to display information that is in a textbox, but the textbox is too small to display ALL the info. Since I dont' want to have a huge textbox on my form, I wish to solve this problem by using the tooltip to display the textbox info when hovering over it. Since there IS alot of text in the box, this generates a tooltip that is wider than the screen (ie. one line of text). The text in the tooltip WILL wrap, if the size of the tooltip is defined to be taller and not so wide. As a solution, I have parsed out the text information and included carriage-return/line feeds between lines of text. This changes the dimensions of the tooltip balloon. What's the difference between defining a standard tooltip or a Balloon Tooltip anyway??
I don't think it's possible to specific the size when using a BalloonTip. You wouldn't want to, anyway. Determining the size including the callout would be practically impossible. You can only specify the point that the balloon's callout points to.
I guess a method could be exposed where you specify the size of the balloon not including the callout. You should Submit a feature request to Infragistics
Now if I use the DisplayStyle statement with the simple tt.Show() statement, everything works fine, but I want to be able to adjust the tt size
So it looks like the combination of using the DisplayStyle statement with the more complex tt.Show(x,x,x,x,x)-type statement is when this quirk takes place.
Your code was working until I inserted this line below
tt.DisplayStyle = ToolTipDisplayStyle.BalloonTip;
For some reason, setting the DisplayStyle to BalloonTip forces the tooltip to hug the left edge of the form.