![]() |
Howto set tooltip text of CXTPControlComboBox |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Thats it! Many thanks Oleg |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |