
246
USING ROBOHELP HTML 9
Context-sensitive Help
Last updated 12/14/2011
12
Select OK.
13
Double-click the Help button.
14
Copy C# .NET context-sensitive Help example code and paste into the code.
15
Add
using RoboHelpAPI
to the top of the document.
16
To test, compile, and run the project, select the Help button.
Call context-sensitive Help for WebHelp or FlashHelp from ASP .NET
1
Include the RoboHelp_CSH.cs file in the project.
2
Call the
RH_ShowLocalHelp (hParent, strtHelpURL, strWndName, nCommand, nData)
function.
Call context-sensitive Help for WebHelp Pro or FlashHelp Pro from ASP .NET
1
Open VisualStudio .NET.
2
Do one of the following:
•
Select File > New > Project.
•
Open an ASP.NET project.
3
Navigate to the context-sensitive Help supporting files in C:\Program Files\[RoboHelp Install Folder]\CSH
API\ASP.NET.
4
Copy the RoboHelp_CSH.cs file.
5
Paste the supporting files to the ASP.NET project.
6
Right-click the Reference folder. Select Add Reference.
7
Select .Net tab > System.Web.Services.Dll.
8
Click OK.
9
Add a button in the application.
Parameter
Data Type
Description
hParent
Object
Handle of the parent window.
strHelpURL
String
Help source for WebHelp; specifies the path to the project start page.
strWndName
String
Name of the window to be opened.
nCommand
Int
Class constants.
OptionConstants.CSH_DISPLAY_CONTEXT
Opens the topic associated
with the map ID in the nData parameter
OptionConstants.CSH_DISPLAY_TOC
Displays the Contents pane and
the default topic
OptionConstants.CSH_DISPLAY_INDEX
Displays the Index pane and
the default topic
OptionConstants.CSH_DISPLAY_SEARCH
Displays the Search pane
and the default topic
nData
Int
Displays the map ID of the topic. To obtain the map ID, you can export the map file
for a programming language using OptionConstants.CSH_DISPLAY_CONTEXT in
nCommand.
Содержание 65030089 - Robohelp - PC
Страница 1: ...Using ADOBE ROBOHELP HTML 9...