Feature Requests?

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

Feature Requests?
 
Guest


Guest


hi

can we post feature requests?
i've tested your product and i miss a feature

what i like to see is:
customizable id of commandbar buttons

e.g. we have some cusomized styles and 5 buttons at a toolbar to set them

a button with id 2321 will change the style where the parameter is the name of the new style
Posted 23 Aug, 2004 06:36:01 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
You can try the Parameter property to do this.
Look at ADX Class Refernce to get more details.
Posted 23 Aug, 2004 07:22:58 Top
Guest


Guest


ok i found it...
i've missed the property "id" inside the designer... set it per code should work

what i try to do is something like this
object oMissing = Type.Missing;
int id = 2321;
parameter = "Standard";

CommandBar oCmdBar = ....; //init bar
CommandBarButton oButton;

oButton = (CommandBarButton) this.oCmdBar.Controls.Add(MsoControlType.msoControlButton, id, parameter, oMissing, oMissing);
Posted 23 Aug, 2004 07:50:50 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
propably I haven't understood you. Do you try to add a built-in button? What host do you use?
Posted 23 Aug, 2004 08:03:31 Top
Guest


Guest


ok, let me explain:

the host i am using is word

what i want to do is adding a new commandbar with some buttons to set a specified paragraph style

in word there is a built in command for this wich is called by a button with the id 2321

as parameter you have to specify the name of the style

for example a button with id = 2321 and parameter = "Standard" will set the style to "Standard" for the selected paragraph

i need this because in our companyy there are a lot of documents who uses some predefined styles (font=arial,12pt...)
and to make things very simple we provide a toolbar with buttons for each of the style
Posted 23 Aug, 2004 08:13:33 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Aha... I.e. you want to add a button with id 2321 and use its parameter to pass style names. Ok, I see.

I thought you have to use the ADXBuildInControl class but as I see now you can simply use ADXCommandBar and its buttons.
Posted 23 Aug, 2004 08:38:03 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
I thought you have to use the ADXBuildInControl class but as I see now you can simply use ADXCommandBar and its buttons.

good you understand me now :)

however there is no property named id inside the designer, perhaps you can add it in a feature version with standard id = 1 :)
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 08:48:21 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
You are adding a new button to command bar and handle it to do a custom action (applying some style specified by the button parameter). But I cannot understand why you use its Id.
Posted 23 Aug, 2004 09:14:08 Top
Sven Heitmann




Posts: 193
Joined: 2004-08-23
because word will perform the action for me when the button has the id 2321 (word will set the style to the one where name == parameter)

so i don't need to attach an eventhandler

what i will do is add a new button to a commandbar wich is doing a word internal action (specified by the id of the button)
Best regards,

Sven Heitmann
Posted 23 Aug, 2004 09:21:01 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
I see. I have just spoken with ADX developers. Currently there is no way to add any built-in control to the ADXCommandBar.Controls collection.

I think they need one or two days to fix this problem and I will let you know about the result.

Thank you for your request.
Posted 23 Aug, 2004 09:27:06 Top