For Programmers: Free Programming Magazines  


Home > Archive > Visual SourceSafe > November 2005 > VSS 2005 -- Add New Files to existing VSS Project









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VSS 2005 -- Add New Files to existing VSS Project
msnews.microsoft.com

2005-11-15, 4:02 am

Just migrated to VS 2005, and found an annoying thing.

Let me just start by stating that I, as well as most people at my company,
don't use the visual studio integration feature, but instead prefer to work
in VSS UI itself.

In old versions, when one marked a folder in the VSS Database Tree, and
pressed Ctrl + A, the "Add File" dialog was displayed.
This only showed files that WERE NOT ALREADY in the VSS project.
Ctrl + A now display a Office look-alike folder showing ALL the files in the
folder (99% of which are ALREADY in the VSS project.).
IMHO, this dialog is LESS than useless for this purpose.
I may be wrong here, or perhaps I only have bad imagination, but I can't
think of a single reason for this change, or when I might actually use the
new dialog.

Anyway, someone correctly pointed out that the "old" style "Add Files"
dialog still exist and is accessible by holding down Shift, and then
clicking on the "Add Files ..." MenuItem under the File menu.
Trying to use my long established trusty shortcuts, I then of course tried
doing Shift + Ctrl + A, but does does absolutely ... nothing.

My problem is that I have gotten used to using the Ctrl + whatever
shortcuts, and they no longer work.
Having to do the manuver of holding down various control keys AND use the
mouse is not a dream.

Is there any way to
a) Set a flag to ONLY use "old style" dialogs?
b) change shortcut key mappings to custom ones?

// Henrik


Alin Constantin [MSFT]

2005-11-15, 4:02 am

Hi,

> a) Set a flag to ONLY use "old style" dialogs?


Yes, this is possible.
Edit the ss.ini file for your VSS user and add a line "Classic_Dialogs =
yes" and the AddFile/BrowseForFolder dialogs willl use the VSS6 style.

> b) change shortcut key mappings to custom ones?


Unfortunately this is not possible, but here is how to hack it:
Download ResHacker (http://www.angusj.com/resourcehacker/)
Use it to open ssui.dll ("C:\Program Files\Microsoft Visual
SourceSafe\1033\ssui.dll")
Expand the Accelerators section and edit "12 ACCELERATORS" block
to add a line for Ctrl-Shift-A (like in example below)
12 ACCELERATORS
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
VK_A, 116, NOINVERT, CONTROL, VIRTKEY
VK_A, 116, NOINVERT, CONTROL, SHIFT, VIRTKEY
VK_D, 148, NOINVERT, CONTROL, VIRTKEY
........
}
compile the script (button in toolbar) and save the file (File/Save),
restart SSExplorer and the new accelerator should work.

--
Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.


"msnews.microsoft.com" <henrik_the_boss@hotmail.com> wrote in message
news:%230vT0Oc6FHA.2676@TK2MSFTNGP15.phx.gbl...
> Just migrated to VS 2005, and found an annoying thing.
>
> Let me just start by stating that I, as well as most people at my company,
> don't use the visual studio integration feature, but instead prefer to
> work in VSS UI itself.
>
> In old versions, when one marked a folder in the VSS Database Tree, and
> pressed Ctrl + A, the "Add File" dialog was displayed.
> This only showed files that WERE NOT ALREADY in the VSS project.
> Ctrl + A now display a Office look-alike folder showing ALL the files in
> the folder (99% of which are ALREADY in the VSS project.).
> IMHO, this dialog is LESS than useless for this purpose.
> I may be wrong here, or perhaps I only have bad imagination, but I can't
> think of a single reason for this change, or when I might actually use the
> new dialog.
>
> Anyway, someone correctly pointed out that the "old" style "Add Files"
> dialog still exist and is accessible by holding down Shift, and then
> clicking on the "Add Files ..." MenuItem under the File menu.
> Trying to use my long established trusty shortcuts, I then of course tried
> doing Shift + Ctrl + A, but does does absolutely ... nothing.
>
> My problem is that I have gotten used to using the Ctrl + whatever
> shortcuts, and they no longer work.
> Having to do the manuver of holding down various control keys AND use the
> mouse is not a dream.
>
> Is there any way to
> a) Set a flag to ONLY use "old style" dialogs?
> b) change shortcut key mappings to custom ones?
>
> // Henrik
>



msnews.microsoft.com

2005-11-15, 7:58 am

Hello Alin, and thanks for the prompt answer.

I tried to add a new line but how do I invoke the action for it?

I added the line like this:

MENUITEM "&Add Files (Old Style)...\tCtrl+Shift+A", 116

The problem is that nothing happens. How do I invoke the menu handler? Now I
have a "dumb" menu which doesn't do anything.,
What ID should I set for the new Item? I tried setting a value that I
thought was unique (62014), as well as the same one for the existing (new)
dialog.

Below the entire first resource section.


12 MENU
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "&File"
{
MENUITEM "&Open SourceSafe Database...\tCtrl+P", 546
MENUITEM SEPARATOR
MENUITEM "&Add Files...\tCtrl+A", 116
MENUITEM "&Add Files (Old Style)...\tCtrl+Shift+A", 116
MENUITEM "C&reate Project...", 117, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Delete...\t<Del>", 118, GRAYED
MENUITEM "Re&name...\tF2", 108, GRAYED
MENUITEM "&Properties...", 131
MENUITEM "Set &Working Folder...\tCtrl+D", 148
MENUITEM "Create &Shortcut", 584
MENUITEM SEPARATOR
MENUITEM "&Label...", 105, GRAYED
MENUITEM "&Move...", 106, GRAYED
MENUITEM SEPARATOR
MENUITEM "Recent Files", 57616, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", 57665
}








"Alin Constantin [MSFT]" <cnila@tfosorcim.moc> wrote in message
news:eIj5Nlc6FHA.2576@TK2MSFTNGP09.phx.gbl...
> Hi,
>
>
> Yes, this is possible.
> Edit the ss.ini file for your VSS user and add a line "Classic_Dialogs =
> yes" and the AddFile/BrowseForFolder dialogs willl use the VSS6 style.
>
>
> Unfortunately this is not possible, but here is how to hack it:
> Download ResHacker (http://www.angusj.com/resourcehacker/)
> Use it to open ssui.dll ("C:\Program Files\Microsoft Visual
> SourceSafe\1033\ssui.dll")
> Expand the Accelerators section and edit "12 ACCELERATORS" block
> to add a line for Ctrl-Shift-A (like in example below)
> 12 ACCELERATORS
> LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
> {
> VK_A, 116, NOINVERT, CONTROL, VIRTKEY
> VK_A, 116, NOINVERT, CONTROL, SHIFT, VIRTKEY
> VK_D, 148, NOINVERT, CONTROL, VIRTKEY
> ........
> }
> compile the script (button in toolbar) and save the file (File/Save),
> restart SSExplorer and the new accelerator should work.
>
> --
> Alin Constantin
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "msnews.microsoft.com" <henrik_the_boss@hotmail.com> wrote in message
> news:%230vT0Oc6FHA.2676@TK2MSFTNGP15.phx.gbl...
>
>



msnews.microsoft.com

2005-11-15, 7:58 am

Got it, finally.

This is what I did:

Expanded
Menu --> 12 --> 1033

Added a new item below the item
MENUITEM "&Add Files...\tCtrl+A", 116
that said
MENUITEM "Add Files (Old Styl&e)...\tCtrl+Shift+A", 116

Compiled script.

(Note that a new menuitem is not needed). It's only used for readibility

Then I expanded Accelerators --> 12 --> 1033

Added a new item below the item
VK_A, 116, NOINVERT, CONTROL, VIRTKEY
that said
VK_A, 116, NOINVERT, CONTROL, SHIFT, VIRTKEY

Thats it.


So now I have a new menuitem and a corresponding handler.
A new menuitem is as I stated earlier not needed (just as you stated in your
example, Alin, but I was a bit slow to understand)

// Henrik




"Alin Constantin [MSFT]" <cnila@tfosorcim.moc> wrote in message
news:eIj5Nlc6FHA.2576@TK2MSFTNGP09.phx.gbl...
> Hi,
>
>
> Yes, this is possible.
> Edit the ss.ini file for your VSS user and add a line "Classic_Dialogs =
> yes" and the AddFile/BrowseForFolder dialogs willl use the VSS6 style.
>
>
> Unfortunately this is not possible, but here is how to hack it:
> Download ResHacker (http://www.angusj.com/resourcehacker/)
> Use it to open ssui.dll ("C:\Program Files\Microsoft Visual
> SourceSafe\1033\ssui.dll")
> Expand the Accelerators section and edit "12 ACCELERATORS" block
> to add a line for Ctrl-Shift-A (like in example below)
> 12 ACCELERATORS
> LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
> {
> VK_A, 116, NOINVERT, CONTROL, VIRTKEY
> VK_A, 116, NOINVERT, CONTROL, SHIFT, VIRTKEY
> VK_D, 148, NOINVERT, CONTROL, VIRTKEY
> ........
> }
> compile the script (button in toolbar) and save the file (File/Save),
> restart SSExplorer and the new accelerator should work.
>
> --
> Alin Constantin
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "msnews.microsoft.com" <henrik_the_boss@hotmail.com> wrote in message
> news:%230vT0Oc6FHA.2676@TK2MSFTNGP15.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com