Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CreateColorsGallery - CheckedItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CreateColorsGallery - CheckedItem

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


Joined: 21 September 2007
Location: India
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote indices Quote  Post ReplyReply Direct Link To This Post Topic: CreateColorsGallery - CheckedItem
    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?
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: 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
Back to Top
indices View Drop Down
Groupie
Groupie


Joined: 21 September 2007
Location: India
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote indices Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
indices View Drop Down
Groupie
Groupie


Joined: 21 September 2007
Location: India
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote indices Quote  Post ReplyReply Direct Link To This Post Posted: 27 September 2007 at 9:24am
I figured it out. Thanks.
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.