请问PB7中怎么调用help.chm这种帮助文件,不是*.hlp

yangbit 2002-03-06 10:27:09
我在PB7中不能调用help.chm这个文件,showhelp和run都不行。
请教怎么调用,100分,不够再加!
...全文
84 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangbit 2002-03-06
  • 打赏
  • 举报
回复
????
yangbit 2002-03-06
  • 打赏
  • 举报
回复
多谢!结账。
coolnan 2002-03-06
  • 打赏
  • 举报
回复
定义API函数:

function Long HtmlHelpA (long hwnd ,string lpHelpFile , long wCommand, long dwData) Library "hhctrl.ocx"

窗口自定义事件ue_help ,无返回值,注意帮助文件的路径。
HtmlhelpA(Handle(This), "help\easyconhair.chm" + ">" + "", 1, "")
killerdanny 2002-03-06
  • 打赏
  • 举报
回复
http://www.csdn.net/Expert/TopicView1.asp?id=513937
sorrow_arrow 2002-03-06
  • 打赏
  • 举报
回复
long HH_DISPLAY_TOPIC=0
htmlhelpA(handle(parentwindow),"你的帮助.chm" + ">" + "exam",HH_DISPLAY_TOPIC,0)
sorrow_arrow 2002-03-06
  • 打赏
  • 举报
回复
要不就API函数:
function Long HtmlHelpA (long hwnd ,string lpHelpFile , long wCommand, long dwData) Library "hhctrl.ocx"
sorrow_arrow 2002-03-06
  • 打赏
  • 举报
回复
ShowHelp() 我这是pb8的,你在7下面看有没有


Description

Provides access to a Microsoft Windows-based Help system or to compiled HTML Help files that you have created for your PowerBuilder application. When you call ShowHelp, PowerBuilder starts the Help executable and displays the Help file you specify.

Syntax

ShowHelp ( helpfile, helpcommand {, typeid } )

Argument Description
helpfile A string whose value is the name of the compiled HLP file or the CHM (HTML Help) file
helpcommand A value of the HelpCommand enumerated type. Values are:?Finder!桪isplays the Help file in its most recently used state (the Help Topics dialog box in WinHelp or the Navigator pane in the HTML Help viewer open to the last-used tab or the default tab for the Help file)?Index! ?Displays the top-level contents topic in the Help file?Keyword! ?Goes to the topic identified by the keyword in typeid?Topic! ?Displays the topic identified by the number in typeid
typeid
(optional) A number identifying the topic if helpcommand is Topic! or a string whose value is a keyword of a help topic if helpcommand is Keyword!.Do not specify typeid when helpcommand is Finder! or Index!
Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. ShowHelp returns -1 if you specify typeid when helpcommand is Finder! or Index!. If any argument's value is NULL, ShowHelp returns NULL.

Usage

To provide context-sensitive Help, use ShowHelp in appropriate scripts throughout your application with specific topic IDs or keywords.
If you specify Keyword! for helpcommand and the string in typeid is not unique, the Help Search window displays.
For information on how to create online Help files for your PowerBuilder application, see the chapter on providing online Help in PowerBuilder Application Techniques.
killerdanny 2002-03-06
  • 打赏
  • 举报
回复
可以的 !你再CSDN搜索一下!

1,072

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧