Before we get into the fun part of building and installing FXRuby, we'll present a few screenshots to give you an idea of what's possible with FOX and FXRuby.
The first example shows the ImageViewer example program (imageviewer.rb) in action, displaying the cover of a book you may have in your collection:
Since FOX supports many common image file formats (e.g. GIF, PNG, JPEG, BMP and XPM) out of the box the ImageViewer application stands in as a convenient image viewer. This example also demonstrates how to implement floating menu bars and toolbars, as well as interacting with some of the standard FOX dialogs.
The next example shows the button.rb example program, also included in the FXRuby distribution:
Here we see some of the common button widgets, including the standard pushbutton (FXButton) as well as a checkbutton (FXCheckButton) and radio buttons (FXRadioButton). Note that you have pretty complete control over the alignment and justification of button labels and icons.
The final screenshot shows the glviewer.rb example program, not yet included in the FXRuby distribution because of some incompatibilities with the latest version of the Ruby OpenGL module. This example demonstrates the use of FOX's multiple document interface (MDI) widgets as well as rendering OpenGL into FOX's FXGLViewer widget.