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

ScreenTip for StartButton

3 Answers 153 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
dennis_dieckmann
Top achievements
Rank 1
dennis_dieckmann asked on 21 Apr 2007, 12:53 PM
Hello,

I'm wondering if it isn't possible to add a ScreenTip to the StartButton like in Office 2007.

Please tell me how I can create a ScreenTip there, if it's possible.
(VB please)

Thank you so far

Dennis Dieckmann

3 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 24 Apr 2007, 03:36 PM
Hi Dennis Dieckmann,

Unfortunately the application level button in the Ribbon UI is not directly accessible at present. We will address this issue in the upcoming SP1 release. Sorry for the inconvenience.


Regards,
Dimitar Kapitanov
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anna P
Top achievements
Rank 1
answered on 09 May 2010, 08:55 PM
Hello,
Could You tell me if it's possible to add a ScreenTip to the StartButton in Q1/2010?
Could You please also tell me how I can create a screenTip for the button on QuickAccessToolBar that appear like the ones in Office 2007 (e.g. right below the button they are linked to). At this moment screenTip for the button on QuickAccessToolBar appears below ribbon (standard tooltip appears on right position - below the button).

Thanks in advance
Anna
0
Nikolay
Telerik team
answered on 17 May 2010, 08:13 PM
Hi Anna P,

Thank you for the question.

Please refer to the following code snippet which demonstrates how you can assign a ScreenTip to the start button and how to show a ScreenTip below the buttons of the RadQuickAccessToolbar:
void radRibbonBar1_ScreenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
{
    RadOffice2007ScreenTipElement screenTip = e.Item.ScreenTip as RadOffice2007ScreenTipElement;
  
    if (e.Item is ActionButtonElement)
    {
        if (screenTip == null)
        {
            screenTip = new RadOffice2007ScreenTipElement();
        }
  
        this.radRibbonBar1.Behavior.ShowScreenTipsBellowControl = true;
        screenTip.MainTextLabel.Text = "Sample Text";
        e.Item.ScreenTip = screenTip;
  
        return;
    }
  
    if (e.Item.Parent != null && e.Item.Parent.Parent.Parent != null
        && e.Item.Parent.Parent.Parent.Parent != null && e.Item.Parent.Parent.Parent.Parent.Parent != null)
    {
        if (e.Item.Parent.Parent.Parent.Parent is RadQuickAccessToolBar)
        {
            if (screenTip == null)
            {
                screenTip = new RadOffice2007ScreenTipElement();
            }
  
            this.radRibbonBar1.Behavior.ShowScreenTipsBellowControl = false;
            screenTip.MainTextLabel.Text = "QuickAccessButton";
            e.Item.ScreenTip = screenTip;
        }
    }
}

As you can notice, you need to set the ShowScreenTipsBellowControl property to false, when the screentip invoker is a button of RadQuickAccessToolbar.

I hope that this information is helpful.

Sincerely yours,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
RibbonBar
Asked by
dennis_dieckmann
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Anna P
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or