Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » File menu gallery control Collapse All
Subject Author Date
Alexander Pavluk May 16, 2007 - 10:26 AM

When I add some more buttons to File menu in the RibbonBar sample, the window where Recent Files list is showing doesn’t fit the size of gallery control window. Also the vertical scroll bar is showing always even if we needn’t in it. How can I to show it only if I really need in it and fix the problem with fitting. Thank you.

Technical Support May 17, 2007 - 12:15 PM

The current implementation of the ribbon file menu does show the vertical scroll bar persistently and fits the size of menu items only. But it is possible to specify a custom size of the gallery popup menu via size of its gallery control. The following member properties of the CExtRibbonNodeGallery class allows you to set the size:

CSize m_sizePopupGalleryControl, m_sizePopupGalleryControlMin, m_sizePopupGalleryControlMax;
The CExtRibbonNodeFile class is derived from CExtRibbonNodeGallery. So you can set the above properties by constructing the ribbon file node for the ribbon bar.