Posts Tagged ‘技巧

Disable the Ctrl+Enter hot key in the Outlook

2007年12月11日 星期二

You can disable CTRL-ENTER in Outlook by adding the two following registry keys:

Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\DisabledShortcutKeysCheckBoxes
String Value: CtrlEnter
Value Data: 13,8

Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\DisabledShortcutKeysCheckBoxes
String Value: CtrlEnter
Value Data: 13,8

NOTE: I’m using Office 2003 = 11.0 (XP = 10.0, 2000 = 9.0)

From Microsoft:

Disable a Predefined Shortcut Key with a Policy Setting
In order to disable predefined (built-in) and custom shortcut keys for commands in Microsoft Office XP, you must know how to type the shortcut key ID into the System Policy Editor. Several built-in shortcut keys are listed in the Predefined category of most application policy templates.

To disable a predefined shortcut key with a policy:
1. Start the System Policy Editor.
2. Double-click the policy profile that you want to work with.
3. Expand the Office application node (click the plus [+] sign, or double-click the application name) that contains the built-in shortcut key that you want to disable.
4. Expand the Disable items in user interface node.
5. Expand the Predefined node.
6. Select the Disable shortcut keys check box.
7. In the Settings for Disable shortcut keys work area, select the check box next to the shortcut key that you want to disable.

For example, select the CTRL+K (Insert Hyperlink) check box to disable the shortcut key for the Hyperlink command (on the Insert menu) in Word.

来源: http://bhandler.spaces.live.com/Blog/cns!1pt1v0Q4vD8jSvNS4lqdAuug!303.entry

能不能使用TClientDataSet又不用MIDAS.DLL呢?

2007年12月06日 星期四

  能不能使用TClientDataSet又不用MIDAS.DLL呢?
  
  TClientDataSet小家碧玉,恐怕人人都喜欢使用。但是,都知道娶TClientDataSet是有代价的,因为你同时也得面对丈母娘MIDAS.DLL。
  能不能使用TClientDataSet又不用MIDAS.DLL呢?
  很简单,就是uses一下MidasLib单元!
  MidasLib单元在Delphi6中才有,是Lib目录下的一个dcu文件。一旦在你的源程序中引用了MidasLib单元,程序运行时就不再需要MIDAS.DLL文件。
  然而,编译后程序大小一定会增加200k以上,即使使用包编译模式。
  哈哈,原来丈母娘跑到你家里来了,成了你程序中的一部分。你家搬到哪儿,她就到哪儿。但不管怎么样,搬一个家总比搬两个好吧。娶了媳妇的同时也娶了丈母娘,不也是福气?你说是吧。
  当然,需要的时候才这样做。你的应用程序本身就包含多个DLL或BPL文件,就没有必要这样做。如果每个模块里都养个丈母娘,一定会累死你的,还是供养一个MIDAS.DLL好些。

来源: http://blog.tianya.cn/blogger/post_show.asp?idWriter=0&Key=0&BlogID=41763&PostID=1055592