Programmatically opening a Help file to the Table of Contents and a specific topic

Abstract: Programmatically opening a Help file to the Table of Contents and a specific topic

Programmatically opening a Help file to the Table of Contents and a specific topic

  • Product Name:��C++Builder�
  • Product Version:��All
  • Product Component:��VCL�
  • Platform/OS Version:� All

    Description:

    In my C++Builder code, how can I open my integrated Help file to the Table of Contents as well as a specific topic?

    Answer/Solution:

    The following code snippet illustrates how to add a Help file to the application and then subsequently open it to either the Table of Contents or any desired topic:

    //--------------------

    Application->HelpFile = "MyHelpFile.hlp";���� // add Help file to the application

    Application->HelpCommand(HELP_FINDER, 0);���� // open Help file to Table of Contents

    Application->HelpJump("My_Topic_Name");���� // open Help file to specific topic

    //--------------------

    Author: Yu-Chen Hsueh