Print Page | Close Window

Ribbon bar button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18745
Printed Date: 24 November 2024 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon bar button
Posted By: VC++PROGRAMMER
Subject: Ribbon bar button
Date Posted: 29 July 2011 at 2:00am
 
In my VC++ application, there is a ribbonbar and  some text inside the button of the ribbon group. The code which i wrote for creating the ribbon group is given below.

  CXTPRibbonGroup*  pGrpOne    = m_pTabHome->AddGroup( _T("Step 1") );
 CXTPControl*  pGrpOneButton  = pGrpOne->Add(xtpControlButton, IDC_GROUP_1);
 pGrpOneButton  ->SetStyle( xtpButtonIconAndCaptionBelow );
 ppGrpOneButton->SetHeight(34);
 pGrpOneButton  ->SetCaption( IDS_CAPTION_1 );
 pGrpOneButton  ->SetWidth(100);

The problem is that if I set the style of the ribbon group button to "xtpButtonIconAndCaptionBelow",  the text is multilined but not placed in the center of the button. Please see the image below.

                                 
 
If I use any other styles like "xtpButtonIconAndCaption" or "xtpButtonAutomatic" or "xtpButtonCaption"  the text is centralized but not multilined.
Can anyone please confirm whether there is any way to obtain both the features i.e. multiline and centralized text?????
 
Thank you.................




Replies:
Posted By: VC++PROGRAMMER
Date Posted: 05 August 2011 at 5:07am
Can anyone please please help me??



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net