Completed
Last Updated: 20 May 2014 13:24 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 06 Nov 2013 07:37
Category: RibbonBar
Type: Bug Report
0
FIX. RadRibbonBar - ScreenTip does not close when the ribbon bar is collapsed
To reproduce: - add RadRibbonForm; - add one tab with RadToggleButtonElement; - subscribe to toggle button click event and use the following code: public Form1() { InitializeComponent(); RadOffice2007ScreenTipElement tip1 = new RadOffice2007ScreenTipElement(); tip1.CaptionLabel.Text = "Button1"; tip1.MainTextLabel.Text = "My Text"; RadOffice2007ScreenTipElement tip2 = new RadOffice2007ScreenTipElement(); tip2.CaptionLabel.Text = "Button2"; tip2.MainTextLabel.Text = "My Text"; radToggleButtonElement1.ScreenTip = tip1; } private void radToggleButtonElement1_Click(object sender, EventArgs e) { radRibbonBar1.Expanded = false; } When the screen is shown (hovering the toggle button), then click the button and the ribbon bar will collapse. As a result the screen tip will not disappear even on mouse move. 

Workaround: private void radToggleButtonElement1_Click(object sender, EventArgs e) { radRibbonBar1.Expanded = false; RadToggleButtonElement btn = sender as RadToggleButtonElement; if (btn != null && btn.ScreenTip != null) { PropertyInfo[] pinfos = ((ComponentBehavior)radRibbonBar1.Behavior).GetType().GetProperties(BindingFlags.NonPublic | BindingFlags.Instance); PropertyInfo barProperty = ((ComponentBehavior)radRibbonBar1.Behavior).GetType().GetProperty("ScreenPresenter", BindingFlags.NonPublic | BindingFlags.Instance); Form screenTip = barProperty.GetValue(((ComponentBehavior)radRibbonBar1.Behavior), null) as Form; screenTip.Hide(); } } 
1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 07 May 2014 12:56
The issue can be reproduced with the latest version following the steps:
1.Add a RadButtonElement to the RibbonTab.
2.Set the RadButtonElement.Enabled property to false.
3.Set a screentip to the RadButtonElement.
4.Run the project and collapse the RadRibbonRar.
5.Click over the RibbonTab and hover the disabled RadButtonElement. As a result the screentip should appear.
6.Move the cursor precisely from the RadButtonElement to its screentip and then outside the form's bounds. As a result the screentip does not disappear.