• Screenshots
  • User reviews
  • Help
  • Resell
  • Press Kit
  • Versions
  • Blog
  • Forum
  • About
  • Ask for helpContact
  • The Dr.Explain - software help authoring and documentation tool
  • Order
  • Download
  • Features
  • Samples
  • Live Demo
The Dr.Explain features overview
Application windows capturing and automatic annotation
Web pages capturing and automatic annotation
Shockwave Flash (SWF) applications capturing and automatic annotation
Menu with submenus automatic capturing and annotation
Numbered callouts for controls
Screenshot editing and formatting
Text labels placement
Visual effects and styles
Pop up tooltips for screenshot areas
Help file structure management
Subtopic indexes
Keyword index
Topic completeness statuses
Topic locking \ unlocking
Full-featured text editor
Support of links, images, tables, lists, fonts
Text macro variables
Spell checker with national dictionaries
Multibyte languages support via Unicode
RTL mode support
Creating CHM help files
Creating on-line manuals
Creating printable manuals in RTF
Context Help ID support
Automatic Help ID assigning and importing
Help ID map files generation
Opening help files by topic name or by Help ID
HTML templates
Color themes
Custom CSS
Help file navigation links
Active JavaScript tree-like menu for on-line manuals
Print versions of pages
Google sitemap generator
Validation tool
Compacting tool
Command line mode
< Previous page Print version Next page >

Opening help files by topic name or by Help ID

 
The Dr.Explain is a useful help authoring tool for creating context sensitive help files.
 
The MS HTMLhelp API allows opening a specific topic within the CHM file from your software. Thus, with the CHM file you can easily implement a context sensitive help functionality in your software application.
 
This sample code for Visual Basic demonstrates how to open a certain page of the help file:
 
Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
    ( ByVal hWndCaller As Long, _
      ByVal pszFile As String, _
      ByVal uCommand As Long, _
      dwData As Any) As Long
Const HH_DISPLAY_TOPIC As Long = 0
Private Sub CommandF1_Click()
    HtmlHelp hWnd, sPathToCHM, HH_DISPLAY_TOPIC, ByVal "topic_name.htm"
End Sub
 
... or by Help ID:
 
Private Sub CommandF1_Click()
    HtmlHelp hWnd, sPathToCHM, HH_HELP_CONTEXT, ByVal 2000&
End Sub
 
This approach can be easily applied for other programming languages, e.g. for C\C++ application this may look like this:
 
void OnHelp()
{
  HtmlHelp(hWnd, sPathToCHM, HH_DISPLAY_TOPIC, (DWORD)_T("topic_name.htm"));
};
 
... or by Help ID:
 
void OnHelp()
{
  HtmlHelp(hWnd, sPathToCHM, HH_HELP_CONTEXT, (DWORD)2000);
};
 
 
The Dr.Explain is a handy help authoring tool for creating context sensitive help files in CHM format.

Made with help of Dr.Explain

Copyright © 2004 - 2010, Indigo Byte Systems
All rights reserved

Privacy Policy ‏ Terms of Use

  • Order
  • Download
  • Features
  • Samples
  • Live Demo
  • Screenshots
  • User reviews
  • Help
  • Resell
  • Press Kit
  • Versions
  • Blog
  • Forum
  • About

Contact Information