tooltip

3 posts, 0 answers
  1. deng bruce
    deng bruce avatar
    5 posts
    Member since:
    Mar 2010

    Posted 09 Aug 2012 Link to this post

    Hi
        Can i set the width of tooltip show?  if can, how do?    if the tooltip text is too long, the tooltip showed over the width of screen now. thanks very much!
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 14 Aug 2012 Link to this post

    Hi Deng,

    Thank you for writing.

    The default ToolTips used are the standard ToolTIps. Those do not allow altering their size. As an alternatively, I can offer using RadOffice2007ScreenTipElement here is an example:
    public partial class Form1 : Form
       {
           RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement();
     
           public Form1()
           {
               InitializeComponent();
     
               radButton1.ScreenTipNeeded += new ScreenTipNeededEventHandler(radButton1_ScreenTipNeeded);
           }
     
           void radButton1_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
           {
               RadButtonElement btn = e.Item as RadButtonElement;
               if (btn != null)
               {
                   screenTip.CaptionLabel.Text = "Very very long text ";
                   screenTip.MainTextLabel.Text = "Main text";
                   screenTip.AutoSize = false;
                   screenTip.EnableCustomSize = true;
                   screenTip.Size = new System.Drawing.Size(500, 500);
                   btn.ScreenTip = screenTip;
               }
           }
       }

    I hope that you find this information useful.

    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 14 Aug 2012 Link to this post

    A quick follow up. Here is also a link to our documentation where you can find information regarding the screen tips: http://www.telerik.com/help/winforms/ribbonbar-adding-screen-tips.html 
     
    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top