Related pages
Writing Help Files
| Style_Guide
| Table of Contents
| MS Help Workshop
| Checklist
| More Tips
Adding New Methods
Be sure to save often.
Any overloaded method needs a SeeAlso link to the parent method.
Description / Actions / Overview sections
Be sure to add links to these via the components "SeeAlso" option.
This is particularly true if it is associated with actions. Be sure to provide an example of how to use these.
Add derived classes to the parents "SeeAlso" link
For the parent class, provide a hot link like this.
See also!ALink(TmcCustomFile_IO_Child, 1, tnf_qref)
In each of the derived classes, add an A-Link that matches the hot link.
TmcFile_IO_object; TmcFile_IO; TmcCustomFile_IO_ChildWhen done like this, additional derived classes are automatically linked without having to change the help file of the parent class. Because A-Links of the form TComponent_Child are not predefined in the Delphi 5 help, I have included this functionality in the Delphi Help Template Generator (specifically, it is defined in the Classes.txt template).
Internal protected functions
Basically, there are 2 types of methods
Since these routines are never meant to be published
Actions
There are 2 types of pme (properties, methods, events) pages associated with actions (these are gray and yellow)
On the pme pages associated with the classes the actions operate on (a link called Actions displays this page)
Derived from TAction See TAction!Alink(TAction, 1) for details ^^^^^^^ rlcHelp1Link ^^^^^^^^^^^^^^^^^^ rlcHelp3TopicID
For the classes called by actions, on the methods pme page indicate which methods are called by actions.
In TmcCustomFile_IO Create Destroy ReadFile WriteFile Action entry points NewFile Open Save SaveAs Internal Property methods GetProp1 SetProp1 Internal methods WriteComplete Derived from TComponent InitiateAction
MS Word hints
Help Generator.zip. contains several MS Word template files (*.dot) - you should copy these to the MS Office template directory - the default is
C:\Program Files\Microsoft Office\TemplatesAmong other things, these files contain 2 toolbars and several styles
Toolbar | Purpose |
---|---|
Documents | 3 buttons to help you switch between open documents |
DelphiHelp | Several buttons to help you edit Delphi help files |
These toolbars are dockable - this means that they can be ripped off the section at the top of the screen and placed near the section you are working on. As delivered, the DelphiHelp toolbar is floating (to make it stand out for first time users) and the Documents toolbar is docked.
How to use the Templates
To add the Toolbars and Styles to an existing document, select Tools / Templates and Add-Ins... change the Document template and check Automatically update document styles.
To add just the Toolbars to an existing document, select Tools / Templates and Add-Ins... and check one of the templates listed under Global templates and add-ins. (All the *.dot files in the templates directory should already be listed there.)
Using Tools / Templates and Add-Ins... / Organizer, it is possible to copy Toolbars and Styles from one *.dot file to another. (You might want to use this to copy the Documents toolbar to normal.dot so that it is available every time you use MS Word.)
If you select a template, then the template name (path) is stored with the document. The style definitions that are used in a document are also stored in that document. (The toolbars are NOT stored with the document.)
My Delphi Help Template Generator sets the default template to
C:\Program Files\Microsoft Office\Templates\DelphiHelp-Properties.dotIt is interesting that this works fine even if Word is actually in another directory on on another drive.
Custom Toolbars
The Documents toolbar has 3 buttons - the glyphs are from the MS Word palette.
Glyph Category Command Left Arrow Windows and Help / Previous Window Right Arrow Windows and Help / Next Window Open Book All Commands / Window List (Displays as "More Windows...)
Style Problems
Actually, this is good, it allows me to debug and fix various problems that are very hard to find in MS Word 97. However, I still do all my editing (and saving) in Word 97.
Bulleted Lists
If you try to indent too far, the help does not align the wrapped lines the same way Word does - which makes it more difficult to edit the files.
Warning
I was able to track it down to a bulleted list - the "solution" was to turn off the bullets, save the file, and then reenable the bullets.
Though this took me several days to "fix", I do not know how to reproduce it - it appears to be a bug in MS Word.
This appears to be the bad rtf code
{\*\pn \pnlvlcont\ilvl0\ls0\pnrnot0\pndec }At any rate, it is present on each failing line and not there when the file formats correctly.
The following is from the Microsoft RTF Spec.
\pn | Turns on paragraph numbering. |
\pnlvlcont | Continue numbering but do not display number ("skip numbering"). |
\ilvl0 | The 0-based level of the list to which the paragraph belongs. For all simple lists, this should always be 0. For multilevel lists, it can be 0-8. |
\ls0 | Should exactly match the ls for one of the list overrides in the List Override table. |
\pnrnot0 | Indicates if the paragraph number for the current paragraph is marked as "inserted." |
\pndec | Decimal numbering (1, 2, 3). |
Misc