get a list of ADXCommandBars used in an addin

Add-in Express™ Support Service
That's what is more important than anything else

get a list of ADXCommandBars used in an addin
 
Sven Heitmann




Posts: 193
Joined: 2004-08-23
hi

the addin i'am working on is using 7-10 commandbars, and a want to create some dialog to enable/disable them

to do this i need a list of all commandbars the addin has created or is using

my question is:
is there some collection where all the commandbars where added and how do i can use it?
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 09:04:03 Top
Eugene Starostin


Guest


Now there is one way - enumerate the Components collection of add-in module's Container.

I seem to have a very fruitful week. :-)
Thank you Sven for your requests.
Posted 23 Aug, 2004 09:39:28 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
ah i see... have to filter out the object i need, thanks a lot
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 10:16:43 Top
Eugene Starostin


Guest


Please note that the ADXCommandBars collection (indexed property?) will be added to the enxt build.

Thank you for this good idea.
Posted 23 Aug, 2004 10:22:23 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
hm... how long will it be till the next build?
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 10:37:07 Top
Eugene Starostin


Guest


We will upload to our webserver it tomorrow or on Wednesday. But it is not a public build, we upload it specially for you and all our Premium subscribers.

In this build we will fix the problem with built-in controls and add the ADXCommandBars property. It seems some other bugs that we have been notified
are also fixed.
Posted 23 Aug, 2004 10:44:15 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
We will upload to our webserver it tomorrow or on Wednesday. But it is not a public build, we upload it specially for you and all our premium subscribers.

thanks, but i won't get the license to your product until end of week :/ ;)
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 10:49:12 Top
Eugene Starostin


Guest


Oh... Sorry, I didn't know that you are an unregistered user. I'm sure we do want to offer you 50% discount. I'm sending a coupon.
Posted 23 Aug, 2004 10:53:50 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
i am the guy who is using an rc2 copy found on the net... see topic ???Useable in Visuals C# .Net STandard Edition???

we have orderer the license this morning but not yet transfered the money, so its not to late for the coupon =)

thanks a lot :)
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 11:20:32 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
We will upload to our webserver it tomorrow or on Wednesday. But it is not a public build, we upload it specially for you and all our premium subscribers.

In this build we will fix the problem with built-in controls and add the ADXCommandBars property. It seems some other bugs that we have been notified
are also fixed.


any news/updates about this?

that feature is really important for my project (i have about 20 commands with build in actions)

just to be sure i don't have forget something...
before adx i used this code to create the buttons/controls with builtin id support


for a control like "insert table" (id=333)

public void AddControl(CommandBar oCmdBar, bool beginGroup, int id, string caption) {
         object oMissing = Missing.Type;
         CommandBarControl oControl = oCmdBar.Controls.Add(oMissing, id, oMissing, oMissing, oMissing);
         oControl.BeginGroup = beginGroup;
         oControl.Caption = caption;
      }



for a control like "Save as" (id=748) with custom image

public CommandBarButton AddButton(bool beginGroup, int id, string parameter,string caption, Image picture) {
         CommandBarButton oButton = null;
         object oMissing = Missing.Type;
         oButton = (CommandBarButton) this.oCmdBar.Controls.Add(
            MsoControlType.msoControlButton, id, parameter, oMissing, oMissing);
         oButton.BeginGroup = beginGroup;
         oButton.Caption = caption;
         oButton.Style = MsoButtonStyle.msoButtonAutomatic;
         oButton.Picture = ImageUtils.ImageToIPicture(picture);
         oButton.Mask = ImageUtils.ImageToIPicture(ImageUtils.CreateMaskFrom(picture));
         return oButton;
      }
Best regards,

Sven Heitmann
Posted 27 Aug, 2004 08:08:40 Top