Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon bar button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon bar button

 Post Reply Post Reply
Author
Message
VC++PROGRAMMER View Drop Down
Newbie
Newbie
Avatar

Joined: 29 June 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote VC++PROGRAMMER Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon bar button
    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.................

Back to Top
VC++PROGRAMMER View Drop Down
Newbie
Newbie
Avatar

Joined: 29 June 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote VC++PROGRAMMER Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2011 at 5:07am
Can anyone please please help me??
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.