apuntes de programación en Windows
Customize Context Menus
(de http://www.annoyances.org/exec/show/article02-026)
A Context Menu is what you see when you use the right mouse button to click
on a file, folder, application titlebar, or nearly any other object on the
screen. Most of the time, this menu includes a list of actions appropriate
to the object on which you've clicked. For file icons, the context menu
depends upon the type of file. Usually, you'll see Copy,
Paste, Delete, Rename, Open, and
Properties (among others). You may have noticed that programs like
MicroHelp PowerDesk and Norton Navigator are able to add their own items,
extending the power of the context menu paradigm. Here's how to add you're
own options to these menus:
For file icons (Windows 95/98):
- Select Options from the View menu in My Computer
or Explorer, and click the File Types tab.
- Highlight the desired file type, and click Edit.
- Here, you can specify a new name for this file type (to be listed
in the type column in Explorer), as well as the default icon for
files of this type.
- In the box entitled Actions, is a list of the customizable
context menu items. The bold item is the default (the action
carried out when you double-click on a file of this type).
- You can add new items, change the default action, and remove unwanted
items here. For new items, simply specify the program with which you
want the action caried out.
- Lastly, you can check Enable QuickView to show the QuickView
action in the context menu.
For file icons (Windows Me/2000/XP):
- Select Folder Options from the Tools menu in My
Computer or Explorer, and click the File Types
tab.
- Highlight the desired file type, and click Advanced.
- Here, you can specify a new name for this file type (to be listed
in the type column in Explorer), as well as the default icon for
files of this type.
- In the box entitled Actions, is a list of the customizable
context menu items. The bold item is the default (the action
carried out when you double-click on a file of this type).
- You can add new items, change the default action, and remove unwanted
items here. For new items, simply specify the program with which you
want the action caried out.
For folder icons:
- Run the Registry Editor
(REGEDIT.EXE).
- Open My Computer\ HKEY_CLASSES_ROOT\ Directory\ shell.
- Select New from the Edit menu, and then select
Key.
- Here, type the name of the new item you want added to the list, and
press Enter.
- Highlight the new key, select New from the Edit menu,
and then select Key again.
- Type command for the name of this new key, and press
Enter.
- Double-click on the (default) value in the right pane, and
type the full path and filename of the application you want associated
with this entry.
- Close the Registry Editor when finished.
For desktop items:
Examples:
Written by: Annoyances.org
Last updated: Friday, August 10, 2001
|
Force Explorer to Display Correct
Filename Capitalization (de http://www.annoyances.org/exec/show/article02-101
)
By default, Explorer displays uppercase (all caps) 8.3 DOS-style filenames
(such as "README.TXT") in a "prettier" format (such as "Readme.txt). If the
filename has more than eight letters (not including the extension), or if
the filename contains at least one space, the capitalization is not
modified. (Note: Windows doesn't actually change the capitalization of any
files, only the way they're displayed in Explorer.) Here's how to turn off
this feature:
Windows 98:
- Select Folder Options from Explorer's View menu.
- Choose the View tab, and turn on the Allow uppercase
filenames option.
Windows 95, Me, 2000, and XP:
- Run the Registry Editor
(REGEDIT.EXE).
- Navigate to HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\
CurrentVersion\ Policies\ Explorer.
- If it doesn't already exist, create a new DWORD value named
DontPrettyPath. (Edit -> New -> DWORD Value).
- Double-click on the DontPrettyPath value, and type 1
for the value.
- Close the Registry Editor when you're done. You might have to log
out and log back in for this change to take effect.
- To turn the feature back on, change the value data back to
0, or just delete the value entirely.
Written by: Annoyances.org
Last updated: Wednesday, August 15, 2001
|
--