![]() |
How to do a color pick combobox on Toolbar |
Post Reply ![]() |
Author | |
yanlv ![]() Groupie ![]() Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 23 June 2008 at 5:20am |
I want to build a color pick combobox on Toolbar, which looks like:
http://www.codeproject.com/KB/combobox/colourpickercb.aspx I applied Xtreme Toolkit Pro for toolbar and used the class CXTPControlComboBox. It's not inherit from the class Combo, so I couldn't apply the class of the codeproject. But I don't know how to do the same thing in Xtreme Toolkit Pro. Any suggestion? Thanks a lot. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
yanlv ![]() Groupie ![]() Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
It works, thanks a lot.
|
|
![]() |
|
yanlv ![]() Groupie ![]() Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
sorry, I made a mistake.
Something is wrong. When I compile in VC6.0: Compiling... ColorComboBox.cpp E:\yanwei\knowledge\C++\colorcombox\ColorCombo_From_CodeJock\ColorComboBox.cpp(30) : error C2660: 'CXTPControlComboBox::CXTPControlComboBox' : function does not take 1 parameters Error executing cl.exe. Then I change CColorComboBox::CColorComboBox(CXTPCommandBars* pCommandBars) : CXTPControlComboBox(pCommandBars) To CColorComboBox::CColorComboBox(CXTPCommandBars* pCommandBars) : CXTPControlComboBox() Compile is successful. It turns out The Edit box of Combobox is right, but the Dropdownlist of Combobox is empty(i.e., no color rectangle or text.) Please see the picture using PrintScreen: http://pddl02.mofile.com/p/1/free/2008/6/24/6/602D3VWTQ7_202_500_320.jpg I think drawitem() function draw the dropdownlist, but after debugging, I found it never went into drawitem(). I check the sample of Xtreme Toolkit Pro, and found that drawitem() is also useless in the Xtreme ToolkitPro v11.1.0\Samples\CommandBars\CustomThemes. By the way, I used Xtreme ToolkitPro v11.1.0. Any Suggestion? Thanks a lot. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Custom Draw added in 11.2 :-( Download last version.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |