![]() |
Gallery and Checked Item |
Post Reply ![]() |
Author | |
rupert ![]() Newbie ![]() Joined: 28 August 2007 Location: United States Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 28 August 2007 at 7:23pm |
How can I use the CheckedItem property? I have a gallery of icons and I am unable to get it to work. How can I display the 2nd item as checkeditem?
Set GroupStyles = TabWrite.Groups.AddGroup("&Styles", ID_GROUP_STYLES)
Dim GalleryStyles As CommandBarGallery Set ItemsStyles = CommandBars.CreateGalleryItems(ID_GALLERY_STYLES) ItemsStyles.Icons = ImageManagerGalleryStyles.Icons ItemsStyles.ItemWidth = 72 ItemsStyles.ItemHeight = 56 For i = 1 To 16 ItemsStyles.AddItem i, "" Next i Set GalleryStyles = GroupStyles.Add(xtpControlGallery, ID_GALLERY_STYLES, "Styles") GalleryStyles.Width = 235 GalleryStyles.SetItemsMargin 0, 1, 0, 1 GalleryStyles.ShowLabels = False GalleryStyles.ShowBorders = True Set GalleryStyles.Items = ItemsStyles GalleryStyles.CheckedItem = 2 ' this does not work Dim GalleryPopupBar As CommandBar Set GalleryPopupBar = CommandBars.Add("Styles", xtpBarPopup) GalleryStyles.CommandBar = GalleryPopupBar Set GalleryStyles = GalleryPopupBar.Controls.Add(xtpControlGallery, ID_GALLERY_STYLES, "Styles") GalleryStyles.Width = 235 + 72 GalleryStyles.Height = 56 * 3 + 2 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Have to work. Think you modified our sample which is reset CheckedItem in Update handler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |