Print Page | Close Window

CreateColorsGallery - CheckedItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8181
Printed Date: 18 June 2025 at 1:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CreateColorsGallery - CheckedItem
Posted By: indices
Subject: CreateColorsGallery - CheckedItem
Date Posted: 26 September 2007 at 8:24pm
In the VB6 RibbonSample project. There is a routine which uses CreateColorsGallery sub to create a custom color picker. Items in this gallery do not display a checked state.
 
Set Gallery = Control
SelectedStyle = Gallery.SelectedItem.Id
Set Gallery.CheckedItem = Gallery.SelectedItem
 
This does not work since the next time the color picker drops down the item does not appear depressed. Is this a known issue using a gallery?
 
How can I workaround this?



Replies:
Posted By: Oleg
Date Posted: 27 September 2007 at 1:27am
Hi,
 
CheckedItem is ID of item to check.
SelectedItem returns index of item.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: indices
Date Posted: 27 September 2007 at 8:35am
Hi Oleg,
Thank you for responding.
 
Even if I assign the ID to the CheckedItem it does not work for this example.
 
Any other ideas?
 


Posted By: indices
Date Posted: 27 September 2007 at 9:24am
I figured it out. Thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net