Author Topic: File/New: add examples and customize template folder icons  (Read 9484 times)

0 Members and 1 Guest are viewing this topic.

scott

  • Full Member
  • ***
  • Posts: 102
File/New: add examples and customize template folder icons
« on: April 06, 2010, 03:43:17 PM »
Two questions about 2010 File/New:

1) The "Other Ways To Get Started" section includes a folder called "Sample diagrams". Is it possible to add additional sample drawings to this folder? If not, is it possible to create a new folder in the "Other Ways To Get Started" section?

2) The folders in the "Template Categories" section look pretty spiffy. If I add a folder to this section, it appears with a conventional-looking Windows folder icon. Can I specify my own icon for my folder? Ideally, I'd like to use the same two-page base icon that the MS supplied folders use, but I'll be happy with creating one from scratch, if required.

Thanks,
Scott

Nikolay

  • Hero Member
  • *****
  • Posts: 1072
    • UnmanagedVisio
Re: File/New: add examples and customize template folder icons
« Reply #1 on: April 08, 2010, 03:42:42 AM »
+1

Also interested in getting answer to this question :D


It seems that this is possible:
E.g. Visio 2010 SDK (beta) does this (custom group "SDK" with custom image):


It would be also great to get some info on backstage customization (in general)!
Though the article Introduction to the Office 2010 Backstage View for Developers is at least more than nothing, it would be great to have some information specific to Visio.



BTW, setup "created" by Visio 2010 SDK (beta) Publishing Tool does not work in the following configuration: Visio 2010 x86 installed on x64 system.
The problem is caused by the custom action "VisSolPublish_BumpVisioChangeId" that is written into MSI by the publishing tool:

Code
Dim WshShell, visChangeId 
Set WshShell = CreateObject("WScript.Shell")
visChangeId = WshShell.RegRead ("HKLM\Software\Microsoft\Office\Visio\ConfigChangeID")
WshShell.RegWrite "HKLM\Software\Microsoft\Office\Visio\ConfigChangeID", visChangeId + 1, "REG_DWORD"

I believe this is wrong for x64-bit system with Visio x86 installed - there is no such key in this case. This causes installer created by the publishing tool to fail in this configuration :(
Maybe it was fixed already, but in case wasn't I just mention this bug here.
« Last Edit: April 22, 2010, 11:24:00 PM by Nikolay Belyh »

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3088
    • Paul Herber's website
Re: File/New: add examples and customize template folder icons
« Reply #2 on: September 21, 2011, 07:58:19 AM »

BTW, setup "created" by Visio 2010 SDK (beta) Publishing Tool does not work in the following configuration: Visio 2010 x86 installed on x64 system.
The problem is caused by the custom action "VisSolPublish_BumpVisioChangeId" that is written into MSI by the publishing tool:

I believe this is wrong for x64-bit system with Visio x86 installed - there is no such key in this case. This causes installer created by the publishing tool to fail in this configuration :(
Maybe it was fixed already, but in case wasn't I just mention this bug here.

Hi Nikolay, the installations I create using the latest publishing tool seems to work quite correctly now for Visio 2010 x86 on Win 7 x64. The installers I've created using VS and VSPT work for Visio 2003/2007 and 2010. I haven't tried with Visio 2010 x64 though.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

Roger Billsdon

  • Jr. Member
  • **
  • Posts: 10
Re: File/New: add examples and customize template folder icons
« Reply #3 on: May 07, 2013, 10:38:51 AM »
The folders in the "Template Categories" section look pretty spiffy. If I add a folder to this section, it appears with a conventional-looking Windows folder icon. Can I specify my own icon for my folder?

Hi all
Just wondered if anyone had found a method of replacing the folder icon.
Many thanks
Roger Billsdon

perry59

  • Full Member
  • ***
  • Posts: 249
Re: File/New: add examples and customize template folder icons
« Reply #4 on: August 02, 2021, 04:52:33 PM »
I have a similar interest.
My addin includes stencils and templates, but when I browse for them it shows a generic folder icon. I'd like to have something a little nicer!