Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPControlColorSelector - no custom colors?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlColorSelector - no custom colors?

 Post Reply Post Reply
Author
Message
Tomasz View Drop Down
Senior Member
Senior Member


Joined: 05 August 2006
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomasz Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlColorSelector - no custom colors?
    Posted: 17 September 2007 at 6:32am
Hello,
 
My apps use custom colors and different palettes than one used by Codejock and in the past I was forced to modify the library itself to achieve color picker customization. And I provided Codejock with my modification of libraries so they can add this functionality easy.
I was happy when I read that Codejock added SetColors() method to specify own color names and RGB values in CXTColorPicker and CXTColorSelectorCtrl.
Unfortunatelly I found out that current implementation is severely lacking:
a) custom colors are NOT available for CXTPControlColorSelector class - meaning that you can not have custom color pickers in command bars
b) the implementation of CXTPControlColorSelector does not use CXTColorSelectorCtrl, instead it contains code repetitions.
 
Why repeat the same code in several places?
 
Regards,
Tomasz
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 18 September 2007 at 1:47am
Hi,
 
I think you can try Gallery control instead. Please, check \Samples\CommandBars\GallerySample  sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2007 at 3:05pm

I have exactly the same problem as Tomasz.  I use CXTPControlColorSelector to implement a color selector in a command bar that can be “torn off”.  I don't see a way to use CXTControlColorSelector or CXTColorSelectorCtrl in this manner.

I have been working under the assumption that the “CXTP” classes are newer and that “CXT” classes are legacy.  Therefore, I would have assumed that CXTPControlColorSelector would be updated with new functionality more often than CXTControlColorSelector.  Is that a false assumption?

-Erik
Back to Top
Tomasz View Drop Down
Senior Member
Senior Member


Joined: 05 August 2006
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2007 at 5:43pm
> I think you can try Gallery control instead.
 
Is this part of Ribbon UI? If so - no thanks. I don't use bloatware ribbons.
 
FYI: I have fixed CXTPControlColorSelector myself. It was half hour job. Counting on Codejock would take 3 months to implement (see 9 months wait for SyntaxEdit bug fixes that were reported in January and still not fixed till now)
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.059 seconds.