![]() |
Combo/Gallery assign initial value |
Post Reply ![]() |
Author | |
indices ![]() Groupie ![]() Joined: 21 September 2007 Location: India Status: Offline Points: 44 |
![]() ![]() ![]() ![]() ![]() Posted: 01 November 2007 at 10:32pm |
I am trying to create a combo box which popups up a gallery instead of the dropdown. How can I assign initial combo box text or listindex value. I don't want to enable DropDownListStyle=True since the user has to choice one of the choices from the gallery rather than type in some value. Dim oCmbAnnotationPopup As XtremeCommandBars.CommandBar
Dim GalleryMode As XtremeCommandBars.CommandBarGallery Dim ItemsMode As XtremeCommandBars.CommandBarGalleryItems Dim oCmbMode As XtremeCommandBars.CommandBarComboBox Set ItemsMode = CommandBars.CreateGalleryItems(ID_AUTO_MODE) ItemsMode.AddItem 7000, "First" Set GalleryMode = oCmbAnnotationPopup.Controls.Add(xtpControlGallery, ID_AUTO_MODE, "") Set oCmbMode.CommandBar = oCmbAnnotationPopup |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You have add update handler for ID_AUTO_MODE combo and CurrentComboIndex variable.
Case ID_AUTO_MODE:
If (Control.Type = xtpControlComboBox) Then Control.ListIndex = CurrentComboIndex End If |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
indices ![]() Groupie ![]() Joined: 21 September 2007 Location: India Status: Offline Points: 44 |
![]() ![]() ![]() ![]() ![]() |
Wonderful. That works!
Thanks.
|
|
![]() |
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 |