Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Review

RB Help Writer

Issue: 1.5 (April/May 2003)
Author: Michael Richardson
Article Description: No description available.
Article Length (in bytes): 4,534
Starting Page Number: 9
RBD Number: 1505
Resource File(s): None
Related Web Link(s):

www.elfdata.com

Known Limitations: None

Full text of article...

Just about every REALbasic developer, at one point or another, develops an application large enough to merit a help system. While Apple does provide a system-wide help system, it is generally difficult to implement into a REALbasic application, and doesn't integrate well. The other option, of course, is to build your own help system, but that takes time which could be better spent working on other parts of your program. RB Help Writer promises to assist you in creating a simple help system which you can use in your REALbasic project.

I downloaded RB Help Writer and unstuffed the archive and was met with two files: The REALbasic project for RB Help Writer and a Carbon build of the program. Unfortunately, the included application was compiled with a very old version of REALbasic, and on Mac OS X does not use anti-aliasing. It would have been better to omit the compiled program to decrease the download time and allow the user to compile the program with the latest version of REALbasic. While the program, no matter how it's compiled, functions fine, I found it somewhat difficult to learn how it worked until I found the built-in help, which was under the Apple menu for some reason. You type your code, which is similar to but not exactly HTML, into the "document" window. In another window, your code is displayed in real-time in WYSIWYG (what you see is what you get). This was nice, but I would have preferred something more like a word processor: just one window where you select styles and enter your help that way, and then it outputs the proper code.

Once you are done coding you can save your code to a file which can then be opened later by RB Help Writer, or opened by your REALbasic program to be displayed by the HyperLinkField class, which is inside of the included REALbasic project. Unfortunately, when I tried to run the project it did not recognize a method. That is because it requires the "Theo's String Stuff" plugin. This was not indicated anywhere on the ElfData website or in the program's help. However, once you install the plugin, which supports all REALbasic targets, the project runs fine.

To actually use your help data in your project, you drag the HyperLinkField and EditField2 classes into your own project. Then you create a new EditField and set it's super to HyperLinkField. I originally thought that the program included a window where you could have multiple categories of help, but coding something like this is up to you. You can use two methods to load your help data into the HyperLinkField. The first method is simply setting the text property of the HyperLinkField to your code. The class will then render that code when the window is opened. This is very useful for one-category help systems. There is also another way, which is the RenderThis method of the HyperLinkField class. It is designed for loading code from a string, which of course can be loaded from your program's resource fork, a data file, or any other source you want.

Features of the renderer include links, anchors, multiple stylings, and the ability to define your own custom tags. Unfortunately, you cannot put tags inside of each other, which may hinder complex help files. And for some reason, it does not support an underline tag.

While not a complete solution, RB Help Writer is a good and easy start to writing your own help system.

In Brief
 
Product
RB Help Writer
 
Manufacturer
ElfData
 
Price
Free
 
System Requirements
REALbasic 3+
 
Contact Info

delete-at-softhome.net

www.elfdata.com

 
Pros
Familiar HTML-style syntax, simple editing program, easy to implement into RB project, Windows support, free
 
Cons
Needs "Theo's String Stuff" plugin to run, incomplete style support, still need to create the actual help window and other related features
 
Rating (1.0-5.0): 3.5

End of article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com