Is it possible to embed an image in a formatted tooltip? ie. using an img tag or similar construct?
BCCORP said:Since I am looking to set this tooltip programmatically, all I have left to do is to figure out how to encode the image as a string.
There's a method on the FormattedLinkLabel and/or FormattedTextEditor control for this.
this.ultraFormattedTextEditor1.EditInfo.EncodeImage(img);
No problem. Helping you helps me when my turn comes to do the same thing!
Steve,
Ah... so it is possible.... it looks like the resulting text (from the window pictured in your post) is something like this:
<img style="width:##px; height:##px" data="encoded string of the image" />
Since I am looking to set this tooltip programmatically, all I have left to do is to figure out how to encode the image as a string.
Thanks Steve for finding that!
Under the ToolTip section in the properties window there is a ToolTipTextFormatted property. When you click on the button an editor pops up and you can insert an image from a URL or a file.
That seems like a viable solution, although the popup container control, in my experience, seems to have some interesting side effects as it pertains to focus.
I was just hoping for native image support since it seems like the formatted tooltip has many other HTML-like capabilities.