From Ruby Developer's Guide

Using the FOX Toolkit

Free Objects for X (FOX ) is a cross-platform GUI toolkit developed by Jeroen van der Zijp. Compared to Tk and GTK+, FOX is the new kid on the block, but it is quickly gaining recognition among software developers looking for a cross-platform GUI toolkit.

FXRuby is the Ruby extension module that provides an interface to FOX from Ruby programs. It was developed by Lyle Johnson and its home page is at http://fxruby.sourceforge.net.

Obtaining FOX and FXRuby

A prerequisite for programming with FXRuby is to have a working FOX installation. If you're using the standard Ruby installation for Windows from the Pragmatic Programmers' site, you can download a compatible precompiled binary distribution of FXRuby from the FXRuby home page. Further, the most recent versions of the Windows installer for Ruby even include FXRuby as a standard installation option. Regardless of which source you use, the shared library in this distribution already incorporates the FOX library, so after downloading and installing the distribution you're ready to get started; There's no need to download and build FOX separately.

If you're running some other version of Ruby (including other non-Windows operating systems), you will most likely have some more work to do. Unlike Tk and GTK+, none of the Linux distributions include FOX as a standard installation package, and as of this writing, precompiled binaries for FOX aren't available at all; so you'll need to download, build and install FOX on your system. The FOX source code can be...

Copyright Syngress Publishing, Inc. 2002 under license agreement with Books24x7

Products & Services
Integrated Development Environment (IDE)
Integrated development environment (IDE) applications are comprehensive programming platforms for authoring, modifying, compiling, deploying and debugging computer software.
Programming Languages
Programming languages provide the commands, grammar and syntax for instructing digital devices and computers to perform specific tasks.
Software Development Services
Software development services design custom software for a variety of applications.
Sapphire Materials and Components
Sapphire materials and sapphire components consist of a single-crystal or monocrystalline form of aluminum oxide (Al2O3). As ceramic materials, they have superior hardness, mechanical and optical properties. Applications include jewel bearings, lasing rods, wear parts, wafer substrates and optics.
Operating System Software
Operating system software includes platforms for operating, managing, and monitoring industrial networks and computers.

Topics of Interest

Using the SWin / VRuby Extensions SWin and VRuby are the two primary components of the VisualuRuby project. SWin is a Ruby extension module, written in C, that exposes much of the Win32 API to the...

Using the Standard Ruby GUI: Tk The standard graphical user interface (GUI) for Ruby is Tk. Tk started out as the GUI for the Tcl scripting language developed by John Ousterhout in the mid-eighties,...

Using the GTK+ Toolkit Because it serves as one of the core components of the popular GNOME desktop for Linux, GTK+ development should be strong for the foreseeable future. The Ruby/GTK...

Choosing a GUI Toolkit It can be both a blessing and a curse to have so many options when choosing a GUI for your Ruby application. Ultimately, there is no magic formula to make this decision for...

Frequently Asked Questions The following Frequently Asked Questions, answered by the authors of this book, are designed to both measure your understanding of the concepts presented in this chapter...