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 » RibbonBar: increase height Collapse All
Subject Author Date
Martin Baumgaertner Jul 2, 2007 - 11:43 AM

Hi,

how can I increase the height of a ribbon bar?

By the way, a very nice feature would be a kind of "floating option", i.e placing the ribbon bar at the right window border with a vertical layout.

Martin

Martin Baumgaertner Jul 9, 2007 - 1:38 AM

Thank you! That’s very easy, indeed.

Martin

Martin Baumgaertner Jul 5, 2007 - 9:14 AM

Thank you for your reply.

One more question:
I have added some comboboxes, radiobuttons and checkboxes to my ribbon bar, e.g.:

CExtRibbonNode * pNode =
		new CExtRibbonNode( ID_NODE, 0, NULL, 0, _T("My Node") );
	pNode->CmdKeyTipSet( new CExtCustomizeCmdKeyTip( _T(’N’) ), false );
	pNode->RibbonILE_RuleRemoveSmallILV();
	pNode->RibbonILE_RuleRemoveLargeILV();
	pNode->ModifyFlags( __ECTN_TBB_RADIO_BOX );
	pRibbonGroup->InsertNode(
		NULL,
		pNode
		);

1. How can I set up the visual checking of the boxes correctly according to user actions?
2. How can I retrieve a recently changed state of these controls and send it to the parent frame [ class CMainFrame : public CExtNCW < CMDIFrameWnd > ]?

The idea is to change the content of the ribbon bar interactively depending on several predefined user roles that are to be displayed for selection somewhere in the ribbon bar as single radio buttons or (better) listed in a combobox. I’m using your "DynamicRibbonPageInserting" demo as a starting point - it works pretty good when using a normal CExtRibbonNode with ON_COMMAND. But not together with the pNode->ModifyFlags(...) variants. Any hint? Or is there an appropriate overridable to handle this?

Martin

Technical Support Jul 5, 2007 - 12:27 PM

Actually the ribbon bar is an extended version of the toolbar. So radio buttons work exactly like toolbar buttons. You should use MFC’s command updating mechanism for controlling the checked state of radio buttons.

Technical Support Jul 3, 2007 - 10:19 AM

The ribbon’s standard height is determined by the height of 3 small buttons stacked vertically. This height is scaled according to the desktop DPI setting. The following virtual method returns the height of a ribbon group:

      virtual INT RibbonLayout_GetGroupHeight(
            CExtRibbonButtonGroup * pGroupTBB
            ) const;
All the buttons inside the ribbon group are organized into the layout which fits the available space.

As for your suggestion, we would have to think through all the details and such a ribbon in any case would not be considered as the standard ribbon but rather as one that violates the Microsoft specification for the ribbon .