Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to add icon to left hand panel ?

Accepted Solution Solved
Avid Listener
Posts: 83
Country: Malaysia
Accepted Solution

How to add icon to left hand panel ?

Hi all,

 

1)      May i know how i can add the icon  to left hand panel that mark with red square ?

Left hand panel

 

Thanks,

Jeff.


Accepted Solutions
Solution
Accepted by topic author jeffng
‎09-25-2015 03:20 AM
Nickel Super Contributor
Posts: 441
Country: UK

Re: How to add icon to left hand panel ?

Navigate to %appdata% and then \act\act for windows xx\ and rename your prefrence folder to prefernces old, also delete any preferencesbak.xml files, that should get you going again.  It will rebuild ALL your preferences so you will have to run through the quick start wizard again.

 

Tom

View solution in original post


All Replies
Nickel Super Contributor
Posts: 441
Country: UK

Re: How to add icon to left hand panel ?

Hi Jeff,

I don't have code for this so this is abot as much help as I can give but the only way I know to do this would be to itterate through all the controls and sub controls in ActApp looking for the side bar (its called a nav bar but I don't know what the actual control's name is), once you have it you could add buttons to it.  You would also need some more references, I think its ofr DotNetBar or something along those lines.  Not many people have had much success with this in the past, you will probably have to spend a while playing about to get it working.  Good luck.

 

Tom

Avid Listener
Posts: 83
Country: Malaysia

Re: How to add icon to left hand panel ?

Hi tdavis,

 

ooo ok ok actually i came across 1 software succeded add to left hand panel.

Name durkin toolkit that integrate with ACT .

 

Thanks,

Jeff.

Nickel Super Contributor
Posts: 441
Country: UK

Re: How to add icon to left hand panel ?

Yeah Jim can do it, a couple of others can too but most people have kept quiet on how.  I guess a neat bit of Nav Bar integration can give their products the edge.

 

Tom

Avid Listener
Posts: 83
Country: Malaysia

Re: How to add icon to left hand panel ?

Hi Tdavis,

 

Ooo icic i need to added to left hand panel cause for me user will easily access instead of menu bar.

But anyhow thanks for your advice and helps.

 

Thanks,

Jeff.

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: How to add icon to left hand panel ?

Hi Jeff,

 

I had managed to do this a very long time ago (ACT! 8 I think). I have had a quick trawl through my old projects but can't find the project! Doh! Anyway, looking through the API and a little from my few remaining brain cells I think you can access it from something like:

 

Explorer exp = oActApp.Explorer;

Act.UI.Core.NavBarManager navBarMan = exp.NavBarManager;

Act.UI.Core.CommandBar nbCmdBar = navBarMan.NavBar;

Act.UI.Core.CommandBarControls ctrls = nbCmdBar.ControlCollection;

foreach(Act.UI.Core.CommandBar cmdCtrl in ctrls){messagebox.show(cmdCtrl.Text);}

 

I haven't used VS for this just writing straight into this txtbox so there maybe typos etc you may need to check. I've included the long path to the objects so you have a bit more of an idea of where to look further to get it work for you.

 

HTH

 

Vivek

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Avid Listener
Posts: 83
Country: Malaysia

Re: How to add icon to left hand panel ?

Hi Vivek,

 

Thanks for your code. Will try tonight and if got enquiries hopefully you may give helping hand.

 

Thanks,

Jeff.

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: How to add icon to left hand panel ?

[ Edited ]

I actually don't add any toolbar item to the ACT UI using the Durkin Toolkit. That navigation panels in The Durkin Toolkit  is now entirely my code because it also supports Outlook style navigation.

 

I did add the toolbar a long time ago but I don't anymore especially with the UI changes in 12.

 

I also rifled some old code and found this snippet I used in the past.  

 

BTW you will need to license DevComponent to reference in your project

BTW2 I think I needed to call this from a timer set to like 1 second since the ACT UI (ie "NavBar") is not loaded until after the startup view is loaded.

 

Hope it helps

--

Jim Durkin

 

PS. Shameless plug

Using The Durkin Toolkit you can add icons directly to our toobar by folowing these steps:

1. In ACT! go to the TOOLS menu and select DURKIN TOOLKIT

2. On our Options window click on the TOOLBAR tab

3. Click on the [NEW] button. Enter the Icon Name, select an icon using the [Get Icon button] then enter the command line.

 

the command line is data driven so you can enter a the current contact information in the command such as:

http://maps.google.com/maps?ie=UTF8&hl=en&q=<TBL_CONTACT.BUSINESS_LINE1>,+<TBL_CONTACT.BUSINESS_CITY...>

 

 

' Button item to be added

 Friend Shared WithEvents uiBtnNewView As DevComponents.DotNetBar.ButtonItem

' Icon file to add to the menu and nav bar

Public Shared myIcon As System.Drawing.Icon

 

'---------------------------------------------------

' Create the ButtonItem and set some of attributes

'---------------------------------------------------

If uiBtnNewView Is Nothing Then

uiBtnNewView = New DevComponents.DotNetBar.ButtonItem

uiBtnNewView.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText

uiBtnNewView.HotTrackingStyle = DevComponents.DotNetBar.eHotTrackingStyle.Image

uiBtnNewView.ImageFixedSize =
New System.Drawing.Size(32, 32)

uiBtnNewView.ImageIndex = 0

If Not myIcon Is Nothing Then

uiBtnNewView.Icon = myIcon

uiBtnNewView.Text = myText

uiBtnNewView.Tooltip =
"Open " + myText

Else

uiBtnNewView.Icon = GetEmbeddedIcon("MyCustom.ico")

uiBtnNewView.Text = AssemblyInfo.Product

uiBtnNewView.Tooltip =
"Opens " + AssemblyInfo.Product

End If

uiBtnNewView.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top

uiBtnNewView.Name = "uiBtnNewView"+AssemblyInfo.Product

uiBtnNewView.Category = AssemblyInfo.Product

uiBtnNewView.Displayed = True

uiBtnNewView.Visible = True

End If

'------------------------------------

' Find the NavBar control in ACT UI

'------------------------------------

 Dim NavBarObj As DevComponents.DotNetBar.SideBar = FindControl("NavBar", ACTAPP)

'------------------------------------

' Check if the Navbar is not nothing

' cause we are called from a timer

' and we don't know when ACT adds this control

'------------------------------------

If Not NavBarObj Is Nothing Then

'------------------------------------

' Add button if not already added

'------------------------------------

If Not NavBarObj.ExpandedPanel.SubItems.Contains(uiBtnNewView.Name) Then

'------------------------------------

' Required to track user GUI clicks

'------------------------------------

 AddHandler NavBarObj.ExpandedPanel.SubItems.Item("act-ui://com.act/application/menu/view/contactdetail").Click, AddressOf NavBarObjContactDetails_Click

NavBarObj.ExpandedPanel.SubItems.Add(uiBtnNewView)

NavBarObj.Invalidate()

Else

'----------------------------------------------------------------------------------

' Does ACT! ever RELOAD the toolbar?

' If ACT! RELOADS the toolbar the timer will add the uiBtnNewView again.

' If ACT! NEVER RELOADS the toolbar the we can shut the timer off

' NOTE Needs more testing...

'----------------------------------------------------------------------------------

'tmrRefreshNavBar.Enabled = False

End If

Else

'System.Diagnostics.Debugger.Break()

End If

 

 

Message Edited by jimdurkin on 06-17-2009 09:32 AM
Avid Listener
Posts: 83
Country: Malaysia

Re: How to add icon to left hand panel ?

Hi jimdurkin, thanks for your code.

 

Need some time to understand and test.

 

Thanks,

Jeff.

New Member
Posts: 1
Country: United States

Re: How to add icon to left hand panel ?

I have lost all the icons on the left hand panel of act data page. How do I get them back?