Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
ToolTip Custom Image
posted

How do you actually set the image from say a Resource image in to the tooltip object? 

 
Dim myToolTipInfo As New Infragistics.Win.UltraWinToolTip.UltraToolTipInfo

myToolTipInfo.ToolTipImage = ToolTipImage.Custom

myToolTipInfo.ToolTipText = "Some Text"

myToolTipInfo.ToolTipTitle = "A Title"

Me.uToolTipManager.SetUltraToolTip(Me.MyObject, myToolTipInfo)

Looks like you are using "Me.uToolTipManager.Appearance.Image = myImage"  in one of the samples, but I cant get that to work. Also tried to use ToolTipInfo.Appearance. It seems you need to use "CustomToolTipImage" on the "Infragistics.Win.ToolTip", but how to incorporate to the "ToolTipManager" and the "UltraWinToolTip.UltraToolTipInfo" objects?

Thanks

Parents
  • 560
    posted

    Apparantly I need to change the tooltip image on a hover event, cant set all images in an initialize event.

     Me.uToolTipManager.ToolTipTitleAppearance.Image = myResource

    This seems to work now when I find the control we are hovering over I can change the tooltip image to my particular resource image I want. This works, but if can do it from one event - initializing I would like that better, so please post a reply if this is the only way to set the image or not.

     Thanks

Reply Children