Print Page | Close Window

Need help in positioning a label

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10761
Printed Date: 06 May 2024 at 8:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need help in positioning a label
Posted By: Bala
Subject: Need help in positioning a label
Date 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



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