Ribbon bar button |
Post Reply |
Author | |
VC++PROGRAMMER
Newbie Joined: 29 June 2011 Status: Offline Points: 7 |
Post Options
Thanks(0)
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. |
|
VC++PROGRAMMER
Newbie Joined: 29 June 2011 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Can anyone please please help me??
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |