在delphi
不过在这里、我们也可以使用api函数shellexecute
在网上找到的资料、通常以
shellexecute(self.handle、 'open'、 'help.chm'、 ''、 ''、sw_show);?
的方式来实现。
但有个不足、就是不能打开指定的帮助页面、所显示的是帮助文档的起始页面。
想到chm
方法如下:
shellexecute(self.handle
、'開ける'
、 'HH.exe'
、 'mk:@msitstore:' + extractfilepath(application.exename) + 'wordimggener.chm ::/html/welcome.htm'
、 ''
、sw_show);?
只要在フォーム的オンヘルプ事件中、对应当前activeControl、传入相应的地址就可以显示相关的帮助信息。
也可以在form ActionList、添加一个动作、设置快捷键为F1、