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

SmartGroupBox

Issue: 3.6 (July/August 2005)
Author: Greg Fiumara
Article Description: No description available.
Article Length (in bytes): 3,809
Starting Page Number: 9
RBD Number: 3604
Resource File(s): None
Related Web Link(s):

http://www.darkworks.it/

Known Limitations: None

Full text of article...

In the development of a layout for any particular application, organization is key. It is important to keep interface elements organized in a way that users are not confused or lost in a sea of controls. If disorganization is achieved, potential customers may become frustrated and leave your application. Some ways of organizing and grouping interface elements are through drawer windows, tab panels, or the often-neglected group box. DarkWorks Software has released a great example called SmartGroupBox, which demonstrates how to utilize the group box, along with its companion the disclosure triangle, to their full potential.

By definition, disclosure means to expose or reveal. That is precisely what the disclosure triangle was created to do. SmartGroupBox takes this concept one step further. By toggling the value of a disclosure triangle, the contents of the group box and the group box itself are shown or hidden. The interface elements either appear or disappear.

A great feature of SmartGroupBox is that it successfully interacts with other SmartGroupBoxes in the same window, without the addition of any additional code, by adjusting element placement in the window. It does this by adjusting the top property of all the controls based on the height and top properties of currently "shown" group boxes. This feature is very helpful in successfully utilizing "smart" group boxes. This is much better illustrated at runtime rather than written in a review.

Simply place any type of control within the constraints of a group box. In addition, the disclosure triangle must also be in the group box. Change the superclass of the triangle and the group box to that of the named classes included in the free SmartGroupBox download. That's it. SmartGroupBox has one of the simplest setups of a development tool. No code needs to be applied to make this tool work. It is simply a drag-and-drop installation.

One obvious feature lacking from this example is a way to automatically resize the window hosting the group box. When a group box and its accompanying controls are hidden, the space is replaced with a vacant area of Aqua stripes. This absence should be replaced with a way to resize the host window to allow for minimum amounts of wasted screen real estate, similar to that of a preference window from a Cocoa application.

The code SmartGroupBox uses is short, sweet, and to the point. Although there are no code comments or manuals, even newcomers to the programming scene should be able to easily identify what is going on in the few lines of code necessary to create this sample.

As always, in order to keep a customer using an application, the customer must feel at home with the application. The best way to do this is to provide the customer with a clean interface that promotes productivity. SmartGroupBox by DarkWorks Software helps bring an interface utopia one step closer to reality.

IN BRIEF
 
Product
SmartGroupBox
 
Manufacturer
DarkWorks
 
Price
Free
 
Contact Info
http://www.darkworks.it/
 
Pros
Free

Works well with other controls

Very simple setup

 
Cons
No auto-resize of windows

Undocumented

 
Rating (1.0-5.0):
4.0

End of article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com