$ Menu Commands
# menu
K Menu commands;Commands
@ Menu commands

{\b File-menu}
>From this menu you can:
	Open a new empty text-editor
	=Open individual help text,=[ openfile ] or other text files.
	Save the active file (with the same name or a different one) 
	Save all opened files

{\b Edit-menu} has all normal text editing commands for cutting, copying, pasting etc. There is also a command for automatically inserting pictures to a help topic.

{\b Search-menu} has commands for searching/replacing text strings from active file.

{\b Contexts-menu}
>In contexts-menu there are the following commands:
	{\b Search} - searches all files in project for context strings
	{\b Goto context} - shows all contexts from which you can choose one to jump to
	={\b Insert link}=[ insert_link ]
	={\b Insert \[MAP\]-defines}=[ insert_map ]
>There is also the option of using contexts from RTF-files. If you have such RTF-files in your project, which are now compiled from a help text file, and want to add hyperlinks to those files too, you can use this option. When checked, also the contexts in RTF-files are searched.

{\b Compile-menu} has commands for compiling (making) and running the compiled help file.

{\b Project-menu} has commands for =opening a project=[ openproject ] and closing a project; for =adding items=[ addfile ] and deleting items in help-project and for =building a manual=[ build_manual ]. The 'Finish help text'-item can be used, when you want to =finish the look of your help-text=[ finishing ].

{\b Window-menu} has commands for window management. You can also display and hide the 'online' command help from this menu.
---
$ Insert link
# insert_link
K Inserting links;Hyperlinks;Definitions;Hot text
@ Inserting hyperlinks and definitions

You can either insert links:

{\b A) manually}, as described in =syntax=[ syntax ] section.

{\b B) automatically} with the menu command Contexts->Insert link or the right mouse button. Do the following:

>1. Select the text you want to be the active text
>2. Choose Contexts -> Insert link {\b or} press the right mouse button.
>3. Select the type of the hot text, choose the context from the Contexts-list. You can also select a =WinHelp macro=[ help_macros ] from the Help Macros -list.

>If you want to, you can edit the hot text or enter it if you didn't select the hot text. With the Picture-button you can choose a picture to be the hot zone.
---
$ Insert \[MAP\]-defines
# insert_map
K Insert \[MAP\]-defines
@ Insert \[MAP\]-defines

With the {\b Insert MAP-defines} -command you can build automatically #define -statements that define an unique numeric value for every context in help files. You can insert these defines in the [MAP] section of the =project=[ help_project ] *.hpj-file. Better way is to have a separate file, named for example 'helpids.h'. If no text file is active, the program promps you to open the header file. Then you should insert '#include <helpids.>' statement the [MAP]-section of the project file. You can then include this helpids.h file in your source code, too, and use the context strings in your call to the =WinHelp-function=[!JumpKeyword("tcwhelp.hlp","WinHelp function")]  {\fs16 (link)} with the HELP\_CONTEXT parameter.

{\b See also} =Using help in a Windows application (C/C++)=[!JumpKeyword("tcwhelp.hlp", "Using Help in a Windows Application")] {\fs16(a link to Borland C++ 3.1 help)}.
---
$ Building manual
# build_manual
K Building manual
@ Building manual

This is an useful command when the applications help-file and the users manual of the program contains the same topics. You can choose any topics (by selecting the context-string) to build a manual file. Select context-strings by double-clicking in the list-box or by pressing the {\b Add}-button. You can also view selected context with the {\b Show topic} -button. 

You can change the order of the selected contexts by using '\\/' and '/\\' -buttons.

After all the contexts for the manual have been selected and sorted, press OK-button. A manual file is created (in Rich Text Format). You should save this file with rtf-extension and edit it with a word processing program, that reads rtf-format.
---
$ Opening help text file
# openfile

Choose an existing file from the {\b Files}-list. If you want to open a new topic file, use File->New -command, or add a new file to the help project.

See also:
	=Menu Commands=[ menu ]
---
$ Save as
# saveas

Write a new name for the help-text file. Remember to update the project files and the [FILES]-section if necessary.
---
$ Adding a file to the project
# addfile
K Adding a file to the project

By choosing the menu command {\b Project->Add} or by pressing INS-key when the project window is active, you can add new (or existing) help text files to the project.

Choose a filename from the list, or type the name of the file in case of a new topic file. File is added to the project when you press OK-button. Also the [FILES] section of the project is updated with the corresponding RTF-file.
---
$ Opening a help project
# openproject
K Opening an existing project;Opening a new project;New help project

You can open an existing or a new help project with the menu command Project->Open. Either select a project from the file-list, or type a new name.
---
