Print Page | Close Window

Captions missing from CXTPControlComboBox in 10.20

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=4587
Printed Date: 10 November 2025 at 8:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Captions missing from CXTPControlComboBox in 10.20
Posted By: spiderM9
Subject: Captions missing from CXTPControlComboBox in 10.20
Date Posted: 12 July 2006 at 6:26pm
Just upgraded from 9.80 to 10.20.
 
I have several dynamically created CXTPControlComboBox added to several command bars.  I'm calling SetCaption to set the text that should appear to the left of the toolbar.  Used to work in 9.80, stopped working with the upgrade.
 
Deleted all the cached toolbar state in the registry.
Was calling pNewCombo->SetStyle(xtpComboLabel);
Tried xtpButtonIconAndCaption, xtpButtonCaption, and not calling it at all, just leaving the default.  The combo appears and works normally, but there is never a caption beside it.
 
I'm also calling SetTooltip and that works.
 
Is there something else I need to do in 10.20 to get this back the way it was?
 
 



Replies:
Posted By: Barto
Date Posted: 13 July 2006 at 4:09am
hmm...
 if(lpCreateControl->nID == ID_CEDCURVEVIEW_CLIP) {
  CXTPControlComboBox* pCombo = (CXTPControlComboBox*)CXTPControlComboBox::CreateObject();
  pCombo->SetWidth(150);
  pCombo->SetFlags(xtpFlagManualUpdate);
  pCombo->SetDropDownItemCount(20);
  pCombo->SetStyle(xtpComboLabel);
  lpCreateControl->pControl = pCombo;
  return TRUE;
 }
works fine in v10.20 for me.. ofcourse the actual label text comes from the toolbar resource....


Posted By: Oleg
Date Posted: 13 July 2006 at 4:43pm
Hi,
I also can't reproduce it. Check our samples.... Show code you have.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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