public void GetGroupKeyTips(KeyTipInfoList keyTipList)
{
if (_ribbonGallery.Visible)
{
if (_viewLarge.Visible)
{
// Get the screen location of the button
Rectangle viewRect = _ribbon.KeyTipToScreen(_viewLarge);
keyTipList.Add(new KeyTipInfo(_ribbonGallery.Enabled,
_ribbonGallery.KeyTip,
new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom),
ClientRectangle,
_viewLarge.Controller));
}
else if (LastGallery.CanFocus)
{
// Get the screen location of the button
Rectangle viewRect = _ribbon.KeyTipToScreen(this);
keyTipList.Add(new KeyTipInfo(_ribbonGallery.Enabled,
_ribbonGallery.KeyTip,
new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom),
ClientRectangle,
_controller));
}
}
}