fixed ribbon cut off problem

This commit is contained in:
John Jenko 2009-11-25 17:10:37 +00:00
parent c4457c0397
commit 1fea9d4ef9

View File

@ -514,6 +514,15 @@ namespace Volian.Controls.Library
pg.Selected = true;
SelectedDisplayTabItem = pg;
pg.MyStepTabPanel.MyProcedureItemInfo = proc;
// When more than one procedure is openned, the ribbon control cuts off the bottom of the buttons.
// This happened to all the procedure tabs after the first one.
// This is to kludge the logic into sizing the ribbon control properly.
// This is done by toggling "pg.MyStepTabPanel.MyStepTabRibbon.Expanded"
// Note that we are doing the NOT of its current setting. This takes care of when the
// ribbon bar is minimized and a new procedure tab is created
pg.MyStepTabPanel.MyStepTabRibbon.Expanded = !pg.MyStepTabPanel.MyStepTabRibbon.Expanded;
pg.MyStepTabPanel.MyStepTabRibbon.Expanded = !pg.MyStepTabPanel.MyStepTabRibbon.Expanded;
}
Application.DoEvents();
pg.SelectedItemInfo = myItemInfo; // Select the item