CXTPControlPopupColor question |
Post Reply |
Author | ||
yoavo
Senior Member Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 24 May 2004 at 6:07am |
|
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
Only one suggestion - copy code from CXTPControlColorSelector to you r project and make changes in extendedColors array.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
Maybe here 12 years after the request you could make a method for replacing the color array for the CXTPControlColorSelector control.
-cpede
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
OK, to be fair. It is possible to use CXTPControlGallery in popup menus, and thereby the CXTPControlColorSelector. This is a more flexible control, with methods to specify the colors.
However I have one problem. How to set the selected color on start popup of the control. Calling SetSelectedItem on the CXTPControlGallery seems not to work if the popup is not already opened? -cpede
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
I can see the reason is this code:
Why is the selection reset when parent is not CXTPControlComboBoxGalleryPopupBar? -cpede
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
I commented this out in the check in the CXTPControlGallery source code and now my code works perfectly.
I can now use a "Ribbon" gallery component in a popup context menu. I'm using this CXTPPopupBar:
instead of the
So why this check in CXTPControlGallery ? -cpede |
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
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 |