Print Page | Close Window

[SOLVED] BUG in commandbars combobox.

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=15935
Printed Date: 16 May 2024 at 4:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] BUG in commandbars combobox.
Posted By: shipwreck
Subject: [SOLVED] BUG in commandbars combobox.
Date Posted: 29 December 2009 at 8:24am
Whenever I try to create a commandbars combo box, using the same method in most of the samples but I'm adding it to the quick access bar rather than a normal toolbar.
 

It displays the control correctly even with the animation but it seems to be locked permanently. You cannot type into it at all.

Is this a simple bug or something I haven't done exactly right?

I can use the same method and just select the xtpControlEdit (Textbox) and it works fine.


-------------
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6



Replies:
Posted By: SuperMario
Date Posted: 04 January 2010 at 1:48pm
First be sure to comment any load\save commandbars calls.

I added this code to the end of the ribbon sample (CreateRibbonBar Sub) and it works fine.

    Set Combo = RibbonBar.QuickAccessControls.Add(xtpControlComboBox, 5645, "&Combo")
    Combo.DropDownListStyle = True
    Combo.AddItem "test 1"
    Combo.AddItem "test 2"
    Combo.AddItem "test 3"


Posted By: shipwreck
Date Posted: 06 January 2010 at 11:15am
So basically we must add an item to the combobox before it will function correctly?


Posted By: SuperMario
Date Posted: 06 January 2010 at 1:18pm
no, it still works without adding items.  


Posted By: shipwreck
Date Posted: 06 January 2010 at 2:49pm
Okay. Well, I'll try that method and let you know if it works for me. Thanks in advance friend.


Posted By: shipwreck
Date Posted: 06 January 2010 at 7:43pm
Hmm.. Well, I just tried it and I was able to use it successfully. I think the thing was that I wasn't setting it Combo.DropDownListStyle = True
Thanks SuperMario, I really appreciate that.

-------------
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6



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