Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 1.4

REVIEW

UndoToolkit

Issue: 1.4 (February/March 2003)
Author: Daniel Howard
Article Description: No description available.
Article Length (in bytes): 3,661
Starting Page Number: 9
Article Number: 1405
Related Link(s): None

Excerpt of article text...

You have created the next big text editor or bookkeeping program and are ready to release it to the public. You send it out to your beta testers, and they swamp you with e-mails telling you that you have forgotten an undo command! What do you do? Luckily for you there is UndoToolkit by Scott Forbes. This set of classes literally makes any user interface action undoable. No more keeping track of every check box click, key press, popup menu change, etc. With this set of classes everything is done for you.

Now, I know that you are thinking that it cannot be that easy to use. Just as there is no such thing as a free lunch, everything easy in programming has a catch, right? Luckily for you, and me, there is no catch. It takes as few as three lines of code to incorporate the entire system into your application. Yes, you read that right, only three lines. Two of those lines are for enabling and disabling the 'Undo' and 'Redo' menu items and the third goes in whichever interface element you are dealing with (be it a checkbox, a slider, a popup menu, etc.). The ease of using these classes really is the highlight of this toolkit. Anyone from a newbie user to a REALbasic expert can use these classes to shave off some time in building their applications.

As the name suggests, this is a set of classes rather than just one class. The fact that UndoToolkit is included as a set of classes has both positive and negative consequences. It is good because you will only use the classes necessary for the interface elements that you need, reducing the size of the built application if you only use one or two. On the other hand it can be a hassle when dealing with many different types of interface elements as your project will have to include many new classes that can tend to get in the way of a clean organization. Also, the application size will grow and grow with each new interface element for which you implement undo/redo behavior.

...End of Excerpt. Please purchase the magazine to read the full article.