K
Kristy
Hi
I want to use a commandbarpopup on my custom commandbar instead of a
combobox. The problem is that I have a variable number of commands to
add so I can't individually declare them withevents.
I've read a couple of things about creating a button wrapper class and
I've started to look into this.
The commands on the popup in question need to be available to both
explorer and inspector objects so I thought that I could use the
explorer and inspector wrappers that I already have (based on itemscb
example) to instantiate colCBars = Commandbars (declared withevents as
Office.Commandbars). Then hopefully when I am creating my
commandbarbuttons (also declared with events) the colCBars_OnUpdate()
event would fire and I could add each button created to the collection
so that each one would have a click event.
Before I go too much further can anyone tell me if this is even
possible with a commandbarpopup and if so just how you would go about
setting it up
Thanks
Kristy
I want to use a commandbarpopup on my custom commandbar instead of a
combobox. The problem is that I have a variable number of commands to
add so I can't individually declare them withevents.
I've read a couple of things about creating a button wrapper class and
I've started to look into this.
The commands on the popup in question need to be available to both
explorer and inspector objects so I thought that I could use the
explorer and inspector wrappers that I already have (based on itemscb
example) to instantiate colCBars = Commandbars (declared withevents as
Office.Commandbars). Then hopefully when I am creating my
commandbarbuttons (also declared with events) the colCBars_OnUpdate()
event would fire and I could add each button created to the collection
so that each one would have a click event.
Before I go too much further can anyone tell me if this is even
possible with a commandbarpopup and if so just how you would go about
setting it up
Thanks
Kristy