![]() |
Enhancements to Color Pickers |
Post Reply
|
| Author | |
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Topic: Enhancements to Color PickersPosted: 29 June 2005 at 8:05pm |
|
Hi,
I would like to suggest a few enhancements to the color picker set of controls: CXTPControlPopupColor, CXTPControlColorSelector & CXTPControlButtonColor. 1. Ability to set user-defined colors & tooltips. Currently, the 40 colors & tooltips are hard-coded. void CXTPControlColorSelector :: SetColors (CColorInfoList const & colorInfoList); 2. Ability to change the width / height of the CXTPControlColorSelector in terms of colors. Currently the dimensions are hardcoded to 8 by 5. void CXTPControlColorSelector :: SetColorsSize (CSize colorsSize); 3. Ability to change color of any part of the icon in CXTPControlPopupColor. Currently this is hardcoded to the bottom 1/5th. void CXTPControlPopupColor :: SetColorPositionInIcon (float startX, float startY, float endX, float endY); This would work proportionally, so to specify bottom fifth, would be (0.0, 0.8, 1.0, 1.0), to specify top-right corner would be (0.5, 0.0, 1.0, 0.5) etc. 4. The same ability in CXTColorSelectorCtrl / CXTColorPicker set of controls that can be used on a dialog. These enhancements would allow to do something like this, which is necessary for our project (this is a mock-up): Is there anything like this in the toolkit already? Regards, Dima |
|
![]() |
|
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2005 at 8:03pm |
|
Well, following Oleg's advice in here, i've hacked this up myself. (The first 3 points so far.)
Dmitry |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2006 at 12:16am |
|
Hi, Anyone having similar code changes in CXTPControlColorSelector Can you share it with me if no problem ? thanks in advance |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
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 |