RadToggleButton and RadTrackBar ToolTipText

3 posts, 0 answers
  1. susan
    susan avatar
    2 posts
    Member since:
    May 2007

    Posted 10 Aug 2007 Link to this post

    I tried to add a tooltiptext to RadToggleButton and RadTrackBar.
    The code is below:

    toggleButtonMagnifier.RootElement.ToolTipText = "Magnification Toggle";
    toggleButtonMagnifier.ShowItemToolTips = true;

    Also tried the other way:
    ((RadMenu)AttachmentView.Controls[1]).MenuElement.Items[0].ToolTipText = "Magnification Toggle";

    but tooltiptext did not pup up.

    Any suggestion?

    Thanks,

    Susan

  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 14 Aug 2007 Link to this post

    Sorry for the late reply, susan. You can use the following workaround. Basically, you can use the ToolTipTextNeeded event of RadControl to set the appropriate text for the tooltip.

            private void Form_Load(object sender, EventArgs e)  
            {  
                this.radToggleButton1.ToolTipTextNeeded += new Telerik.WinControls.ToolTipTextNeededEventHandler(radToggleButton1_ToolTipTextNeeded);  
            }  
     
            void radToggleButton1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)  
            {  
                e.ToolTipText = "Magnification Toggle";  
            }  
     
     



    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. susan
    susan avatar
    2 posts
    Member since:
    May 2007

    Posted 22 Aug 2007 Link to this post

    It works! Thanks!
Back to Top