Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBarComboBox fill items dynamically
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBarComboBox fill items dynamically

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: CommandBarComboBox fill items dynamically
    Posted: 30 May 2008 at 8:33am
Hi,
 
I want to add items to a CommandBarComboBox dynamically and I wonder if it is the right choise, to do it in the  Commandbars_Control_Notify event? The reason I'm asking this because sometimes even the IDE crashes.
There's no documentation about this (see another post http://forum.codejock.com/forum_posts.asp?TID=10436  which didn't get a single reply (again!!)
 
Thanks in advance
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 9:57am
Using the standard Windows API constrols (not COM/VB), you can clear and fill the combo when you receive the CBN_DROPDOWN (7) notification.

Notifications for standard controls are in the Windows.h file for C/C++; i.e.,

#define CBN_ERRSPACE        (-1)
#define CBN_SELCHANGE       1
#define CBN_DBLCLK          2
#define CBN_SETFOCUS        3
#define CBN_KILLFOCUS       4
#define CBN_EDITCHANGE      5
#define CBN_EDITUPDATE      6
#define CBN_DROPDOWN        7
#define CBN_CLOSEUP         8
#define CBN_SELENDOK        9
#define CBN_SELENDCANCEL    10

I would think there would be a similar defines/enumeration for VB.

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 10:24am
Hi,
 
Thanks for your reply, it's a start and if you are right (I really hope so) I could check it myself.
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.172 seconds.