Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Need help in positioning a label
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need help in positioning a label

 Post Reply Post Reply
Author
Message
Bala View Drop Down
Newbie
Newbie


Joined: 31 January 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bala Quote  Post ReplyReply Direct Link To This Post Topic: Need help in positioning a label
    Posted: 23 May 2008 at 2:57pm
Hi,
 
Using the following code

iCXTPRibbonGroup* pGroup = pTab->AddGroup(ID_AA);

pGroup->SetControlsGrouping(TRUE);

CXTPControl* pComboLabel = pGroup->Add(xtpControlLabel, ID_BB);

pComboLabel->SetCaption(csCaption);

//....some code to create and populate combo
 
pGroup->Add(pCombo, nCommandID);
and then

if(pCombo)pCombo->SetBeginGroup(TRUE);

CXTPControl* pSaveConfigControl = pGroup->Add(xtpControlButton, ID_CC);

if(pSaveConfigControl)

{

pSaveConfigControl->SetStyle(xtpButtonIcon);

pSaveConfigControl->SetBeginGroup(TRUE);

}

CXTPControl* pUnloadPartControl = pGroup->Add(xtpControlButton, ID_TOOLS_UNLOAD_PART);

if(pUnloadPartControl) pUnloadPartControl->SetStyle(xtpButtonIcon);

pGroup->ShowOptionButton();

we land up in getting the following display
 
why is the label "Configuration" looking like a button..what am I missing?How can i fix it?
 
Reagrds,
Bala
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.141 seconds.