04-03-2015
04:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-03-2015
04:28 AM
Hi Georg,
may I know whether you have taken a look at that blog link I posted in the last message? it exactly shows how to add a document to the custom browser pane.
As to change the icon of the browser node, please refer to the two blogs below. Although it is talking about client feature, it is similar to change the icon. i.e. the core codes are:
‘create the resource of icon. assume a bitmap 1.bmp exists ‘ in c:\temp
Dim oCnr As ClientNodeResource
Dim oIcon As IPictureDisp
Set oIcon = stdole.LoadPicture("C:\temp\1.bmp")
' Create a client node resource.
Set oCnr = oDoc.BrowserPanes.ClientNodeResources.Add("SamplePocketFeature", -1, oIcon)
' Override the icon for the client feature.
oNode.BrowserNodeDefinition.OverrideIcon = oCnr
http://adndevblog.typepad.com/manufacturing/2012/08/change-the-browser-node-icon.html