image tooltip?

2 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 13 Dec 2008 Link to this post

    Is there any way to use an image - picturebox as a tool tip?
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 16 Dec 2008 Link to this post

    Hello Jon The Nerd,

    Thank you for the question.

    Our RadOffice2007ScreenTip supports displaying text and images and you can use it for the nodes of a RadTreeView. To do so, first subscribe to the ScreenTipNeeded event of the RadTreeView. Then, in the event handler set properties of the RadOffice2007ScreenTip:
    RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement();  
    Size size = new Size(120, 50);  
    Padding pad = new Padding(2);  
    void radTreeView1_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)  
        TreeNodeUI node = e.Item as TreeNodeUI;  
        if (node != null)  
            screenTip.MainImage.Image = WindowsApplication6.Properties.Resources.gear;  
            screenTip.MainImage.Padding = pad;  
            screenTip.CaptionLabel.Padding = pad;  
            screenTip.CaptionLabel.Text = "Customers View";  
            screenTip.MainTextLabel.Text = node.Text;  
            screenTip.EnableCustomSize = true;  
            screenTip.AutoSize = false;  
            screenTip.Size = size;  
            node.ScreenTip = this.screenTip;  

    I hope this helps. If you have additional questions, feel free to contact me.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top