Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to do a color pick combobox on Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to do a color pick combobox on Toolbar

 Post Reply Post Reply
Author
Message
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: How to do a color pick combobox on Toolbar
    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.

 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2008 at 6:15am

Hi,

 
Here small sample:
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2008 at 9:44pm
It works, thanks a lot.
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2008 at 7:24am
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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2008 at 9:26am

Hi,

Custom Draw added in 11.2 :-(  Download last version.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.