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

How to disable tool tips on RadItems when the RadItem Text is visible

1 Answer 74 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 05 Aug 2016, 08:22 PM

Although I want to have tool tips available when the text of the buttons (RadItems) on my ribbon bar (RadRibbonBarGroup) are not visible because the ribbon bar has been resized down to a point where the text is hidden, I do not want these tool tips to be available when the text is visible as they are then redundant and somewhat annoying to the users.

Is there an event triggered when the button determines to hide/show the text while resizing?

Is there a property I can use to determine whether the button text is visible?

Is there already logic built into the button to tie this text-visible to the availability of the tool tip>?

Would it be possible for me to inherit from the RadItem control and override the tooltip property or would that be pointless because the code to display the tooltip uses the internal variable and not the property getter to retrieve the tooltip text to display.

Thank you in advance for any help you can offer.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 08 Aug 2016, 03:51 PM
Hi Tom,

Thank you for writing.

You can subscribe the ribbon bar control to the ToolTipTextNeeded event and in the handler depending on the sender set the ToolTipText to an empty string. I am not exactly sure in what circumstances the text is not visible and how you are resizing the ribbon. If possible please send me a sample demonstrating the behavior on your end.

As to your other question, creating the custom RadButtonElements and overriding their ToolTipText is possible. Please note, however, that if you add them in the designer they will have their default type.

Looking forward to hearing from you.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Tags
RibbonBar
Asked by
Tom
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or