Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to add a button on the toolbar (ACT!2010)

vv
New Member
Posts: 5
Country: USA

How to add a button on the toolbar (ACT!2010)

Is there any sample code that adds a button on the "Contact Details" toolbar ( ACT!2010 ) ?
Nickel Super Contributor
Posts: 441
Country: UK

Re: How to add a button on the toolbar (ACT!2010)

You wouldhave to put something below in the viewloaded event for when the contact detail view is loaded....

 

'get the command bar

 Dim cbar As Act.UI.Core.CommandBar = ActApp.Explorer.CommandBarCollection(ToolBarName eg "Contact Detail Toolbar")

'create a button

 Dim cbBut As New Act.UI.Core.CommandBarButton("Text", "tootlip", handler)

'register the command

ActApp.RegisterCommand(urn of menu, Handler, RegisterType.Shell)

'add the button to the command bar

cbar.ControlCollection.Add(cbBut)

 

Tom