Print Page | Close Window

Howto set tooltip text of CXTPControlComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5735
Printed Date: 04 October 2024 at 7:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Howto set tooltip text of CXTPControlComboBox
Posted By: mgampi
Subject: Howto set tooltip text of CXTPControlComboBox
Date Posted: 09 December 2006 at 11:19am
Hi;
 
Using toolkit v 10.3.1 I created a CXTPControlComboBox control as found in the samples section of the toolkit, but I'm unable to set the tooltip text to something different than the caption/label of the control. The code in OnCreateControl() function looks like:
 
CXTPControlComboBox* pComboFind = (CXTPControlComboBox*)CXTPControlComboBox::CreateObject();
pComboFind->SetDropDownListStyle();
pComboFind->SetWidth(180);
CString strPrompt;
VERIFY(strPrompt.LoadString(ID_PROCESSEXPLORER_SEARCH));
pComboFind->SetStyle(xtpComboLabel);
pComboFind->SetCaption(strPrompt);
VERIFY(strPrompt.LoadString(ID_PROCESSEXPLORER_SEARCHTIP));
pComboFind->SetTooltip(strPrompt);
pComboFind->SetFlags(xtpFlagManualUpdate);
pComboFind->SetEnabled(TRUE);
 
The tip is always the same as specified in the call to SetCaption().
 
What am I doing wrong?
 
Martin
 



Replies:
Posted By: Oleg
Date Posted: 10 December 2006 at 4:35am
Hi, you all do right.
Problem that later pComboFind->SetID([Id]) will be called and Tooltip text will be replaced from string table. As workaround call
 
pComboFind->SetID([Id]) before pComboFind->SetTooltip.
 


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


Posted By: mgampi
Date Posted: 10 December 2006 at 1:39pm

Thats it!

Many thanks Oleg




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