RecalcLayout Method
Description
Call this method to re-calculate the layout of the Ribbon Bar after making a layout change.
Syntax
Public Sub RecalcLayout()
Remarks
Call the RecalcLayout method to correctly size the Ribbon Bar when the layout has changed. Layout refers to anything that changes the size of the Ribbon Bar. For example, a layout change that requires the RecalcLayout method to be called would be:
- Adding a group (AddGroup Method)
- Adding an item to a group (Add Method)
- Changing the caption of a tab
- Adding/removing tab icons because the new caption could be smaller or wider.
For visible changes to the Ribbon Bar, such as changing the tab color of a visible tab button, the RedrawBar Method is used.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.