public KeyTipInfo[] GetQATKeyTips()
{
KeyTipInfoList keyTipList = new KeyTipInfoList();
// Add all the entries for the contents
keyTipList.AddRange(_borderContents.GetQATKeyTips(OwnerForm));
// If we have the extra button and it is in overflow appearance
if (_extraButton.Overflow)
{
// If integrated into the caption area then get the caption area height
Padding borders = Padding.Empty;
if ((OwnerForm != null) && !OwnerForm.ApplyComposition)
borders = OwnerForm.RealWindowBorders;
// Get the screen location of the extra button
Rectangle viewRect = _borderContents.ParentControl.RectangleToScreen(_extraButton.ClientRectangle);
// The keytip should be centered on the bottom center of the view
Point screenPt = new Point(viewRect.Left + (viewRect.Width / 2) - borders.Left,
viewRect.Bottom - 2 - borders.Top);
// Create fixed key tip of '00' that invokes the extra button contoller
keyTipList.Add(new KeyTipInfo(true, "00", screenPt,
_extraButton.ClientRectangle,
_extraButton.KeyTipTarget));
}
return keyTipList.ToArray();
}