This is a migrated thread and some comments may be shown as answers.

RadToggleButton and RadTrackBar ToolTipText

2 Answers 193 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
susan
Top achievements
Rank 1
susan asked on 10 Aug 2007, 07:28 PM

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 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 14 Aug 2007, 04:50 PM
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
0
susan
Top achievements
Rank 1
answered on 22 Aug 2007, 06:55 PM
It works! Thanks!
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
susan
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
susan
Top achievements
Rank 1
Share this question
or