| Stonefield Query SDK |
| Creating a Help File |
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.
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:
[Other] Action=Setup
Also, if you set the Allow Queries on Multiple Data Sources setting to True, create the following screen shots as these images all show the word "Databases":
© 1996-2008 Stonefield Software Inc. All rights reserved.
You may add additional copyright marks of your own.
Here's a summary list of the screen shots that should be customized and under what conditions:
| Dialog/How to Display | Image Name | Help Topic | Only 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.GIF | Your application name (the topmost section), Running your application name | Always (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 name | Always (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 Menu | Always (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 name | Always (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 name | Always (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 name | The 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.GIF | How To, Managing data source description | You 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.GIF | How To, Selecting the data source description | You change the Description for Data Sources setting |
| Reports Explorer Options page Select that page in the Reports Explorer | SFRWIZARD4.GIF | Using <>your application name<>, Report Options | You 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.GIF | Creating 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.GIF | Creating 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.GIF | Using your application name, Selecting Which Records to Include | You 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.GIF | Using your application name, Selecting Which Records to Include | You 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.GIF | Creating a Quick Report, Step 3: Standard Filter Options | You 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.GIF | Creating a Cross-Tab Report, Step 4: Standard Filter Options | You 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.GIF | Creating a Label Report, Step 3: Standard Filter Options | You 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.GIF | Creating a Chart Report, Step 5: Standard Filter Options | You 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.GIF | Creating a Quick Report | You change the Description for Data Groups setting |
| Cross-Tab Wizard Step 1 Create a new cross-tab report | XTABWIZARD1DG.GIF | Creating a Cross-Tab Report | You change the Description for Data Groups setting |
| Label Wizard Step 1 Create a new label report | LABELWIZARDNEW1DG.GIF | Creating a Label Report | You change the Description for Data Groups setting |
| Chart Wizard Step 1 Create a new chart report | CHARTWIZARD1DG.GIF | Creating a Chart Report | You 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.GIF | Creating a Chart Report | You 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 name | The 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.GIF | Creating 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.GIF | Creating 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 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.
| Last Updated: 03/05/2008 |