Stonefield Query includes an extensive HTML Help (CHM) file that describes all the dialogs and provides tutorials and a "how to" section. However, it's likely you'll need to customize this help file, especially if you change the Application Name or other configuration settings. Fortunately, the Configuration Utility can do much of the work for you.

Creating a Help Project

To create a customized help project for your Stonefield Query project, choose Create Help Files from the File menu or the shortcut menu or click the Create Help Files button in the toolbar. This creates a subdirectory of the current Stonefield Query project directory called HTMLHelp and places the help project files into this subdirectory. The project files are customized according to the current configuration settings. For example, all references to "Stonefield Query" are changed to the value you specify for the Application Name configuration setting.

Two types of help projects are created. The first is a Microsoft HTML Help Workshop project. HTML Help Workshop comes with many Microsoft development environments, but you can also download it from Microsoft's Web site (http://msdn.microsoft.com; search for "html and help" and choose the download link from the results). The main file for this project type is SFQuery.HHP.

The other type of project is a West Wind HTML Help Builder project. HTML Help Builder, from West Wind Technologies (http://www.west-wind.com) is a great, inexpensive utility for creating HTML Help files. It was used to create the help files for both Stonefield Query and the Configuration Utility. The main file for this project type is SFQuery.HBP.

Customizing a Help Project

Although the Create Help Files function does much of the customization work for you, you will likely have to customize additional things in the generated help project. Here are the most common topics to customize:

Here's a summary list of the screen shots that should be customized and under what conditions:

Dialog/How to DisplayImage NameHelp TopicOnly Needed If
Welcome
Temporarily rename your license file (SFQuery.LIC in the Data subdirectory of the Stonefield Query program directory) and run Stonefield Query
WELCOME.GIFYour application name (the topmost section), Running your application nameAlways
(Shows application name and logo)
Login
Run Stonefield Query
LOGIN.GIF
if the Allow Multiple Data Sources setting is set to True
LOGIN2.GIF
if that setting is False
Your application name (the topmost section), Running your application nameAlways
(Shows application name and data source description of you change the Description for Data Sources setting)
About
Select About from the Help menu
ABOUT.GIF
You may wish to remove the version number from the screen shot so you don't have to recreate it for every release.
Menu Functions, Help MenuAlways
(Shows application name and logo and any custom settings if you create an About.Settings script)
Registration
Temporarily rename your license file, run Stonefield Query, and when prompted to activate it, choose Yes
REGISTRATION.GIF
You may wish to remove the version number from the screen shot so you don't have to recreate it for every release.
How To, Activating your application nameAlways
(Shows application name and logo)
Setup
Run Stonefield Query with "ACTION=SETUP" added to the command line or add an Other section to SFQuery.INI and create an Action entry under that section with a value of Setup. For example:

[Other]
Action=Setup
SETUP.GIF
if the Need Target Application Directory setting is False
SETUPTARGETAPP.GIF
if that setting is True
You may wish to remove the version number from the screen shot so you don't have to recreate it for every release.
How To, Setting up your application nameAlways
(Shows application name and logo and the name of the target application if the Need Target Application Directory setting is True)
Options
Select Options from the Tools menu
OPTIONS1.GIF
if the Support Multi-Languages setting is True
OPTIONS1NOLANG.GIF
if that setting is False
How To, Configuring your application nameThe Support Online Updates or Support Maintenance Reminder settings are False or you create an Options.Settings script (in the latter case, describe any additional options you defined in the script in the topic)
Manage Databases
Select Manage Databases from the Tools menu
DBMANAGER.GIFHow To, Managing data source descriptionYou change the Description for Data Sources setting and the User Can Manage Data Sources setting is True
Open Database
Select Open data source description from the File menu
OPENDATASOURCE.GIFHow To, Selecting the data source descriptionYou change the Description for Data Sources setting
Reports Explorer Options page
Select that page in the Reports Explorer
SFRWIZARD4.GIFUsing <>your application name<>, Report OptionsYou change the Description for Data Sources setting
Quick Report Wizard Step 5
Create a new quick report and select that step in the Quick Report Wizard
SFRWIZARDNEW5.GIFCreating a Quick Report, Step 5: Formatting Options (Quick Report)You change the Description for Data Sources setting
Cross-Tab Wizard Step 5
Create a new cross-tab report and select that step in the Cross-Tab Wizard
XTABWIZARD5.GIFCreating a Cross-Tab Report, Step 5: Formatting Options (Cross-Tab Report)You change the Description for Data Sources setting
Reports Explorer Filter page
Select that page in the Reports Explorer
SFRWIZARD2MULTIPLE.GIFUsing your application name, Selecting Which Records to IncludeYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Select Databases
Click the data source description button on the Filter page in the Reports Explorer
SELECTDATABASES.GIFUsing your application name, Selecting Which Records to IncludeYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Quick Report Wizard Step 3
Create a new quick report and select Step 3
SFRWIZARDNEW3MULTIPLE.GIFCreating a Quick Report, Step 3: Standard Filter OptionsYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Cross-Tab Wizard Step 4
Create a new cross-tab report and select Step 4
XTABWIZARD4MULTIPLE.GIFCreating a Cross-Tab Report, Step 4: Standard Filter OptionsYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Label Wizard Step 3
Create a new label report and select Step 3
LABELWIZARDNEW3MULTIPLE.GIFCreating a Label Report, Step 3: Standard Filter OptionsYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Chart Wizard Step 5
Create a new chart report and select Step 5
CHARTWIZARD5MULTIPLE.GIFCreating a Chart Report, Step 5: Standard Filter OptionsYou change the Description for Data Sources setting and the Allow Queries on Multiple Data Sources setting is True
(this image shows the word "Databases")
Quick Report Wizard Step 1
Create a new quick report
SFRWIZARDNEW1DG.GIFCreating a Quick ReportYou change the Description for Data Groups setting
Cross-Tab Wizard Step 1
Create a new cross-tab report
XTABWIZARD1DG.GIFCreating a Cross-Tab ReportYou change the Description for Data Groups setting
Label Wizard Step 1
Create a new label report
LABELWIZARDNEW1DG.GIFCreating a Label ReportYou change the Description for Data Groups setting
Chart Wizard Step 1
Create a new chart report
CHARTWIZARD1DG.GIFCreating a Chart ReportYou change the Description for Data Groups setting
Maintain Users and Groups, Groups page
Select Maintain Users and Groups from the Tools menu and select the Groups page
USERGROUPSDG.GIFCreating a Chart ReportYou change the Description for Data Groups setting
Options, Locations page
Select Options from the Tools menu and select the Locations page
OPTIONS5TARGETAPP.GIF
if the Support Online Updates setting is True
OPTIONS5NOUPDATETARGETAPP.GIF
if that setting is False
How To, Configuring your application nameThe Need Target Application Directory setting is True
(it displays the name of the target application)
Field Properties, Link page
Edit a quick report, double-click a field in the Selected list in Step 2, and choose the Link page
SFFIELDPROP5.GIFCreating a Quick Report, Step 2: Data Selection (Quick Report), Field Properties (Quick Report)You provide some link action scripts (also add some text to the topic describing the link action)
Field Properties, Link page
Edit a cross-tab report, double-click a field in the Selected list in Step 2, and choose the Link page
XTABWIZARDPROPERTIES4.GIFCreating a Cross-Tab Report, Step 3: Cross-Tabulation Options (Cross-Tab Report), Field Properties (Cross-Tab Report)You provide some link action scripts (also add some text to the topic describing the link action)

How you customize the help project depends on which type of help project you want to work with. The easiest one is a West Wind HTML Help Builder project. Open SFQuery.HBP, select the appropriate topic from the TreeView in the left pane, and edit the text as necessary in the edit region in the right pane.

If you want to edit the HTML Help Workshop project, open SFQuery.HHP, choose the Contents page, and double-click the appropriate topic in the list. The text for the topic is displayed with HTML tags, so editing it is much more cumbersome than using West Wind HTML Help Builder. You can use a different HTML editor if you wish, but note that the names of the HTML files are system-generated names like _0QX0T1ZEU.htm. To find the file to edit for a topic you want to change, select the topic in the Contents page of the HTML Help Workshop, click the Edit Selection button in the toolbar, and note the name of the file shown in the General page of the dialog that appears.

Building the Help File

Building the help file is simple. In HTML Help Workshop, click the Compile HTML File button in the toolbar. In West Wind HTML Help Builder, click the Build Help button in the toolbar. In either case, follow the prompts in the dialogs that appear. After the SFQuery.CHM file has been created, move it to the Stonefield Query project directory.


Stonefield Query generates the project files for your custom help file in a particular directory. If you move the files to a different directory and you want to use HTML Help Workshop to generate the CHM file, you must edit the #INCLUDE statement in the [MAP] section of the SFQuery.HHP file to specify the correct path for the SFQuery_Help.H file.


Placing the help source files in a very deeply nested directory structure may cause the help file to compile incorrectly. If this happens, try using a different, less deep directory structure.