XUL Widget Demonstrations

This application provides a front end for several short scripts that demonstrate what you can do with XUL widgets. Each of the numbered lines below describes a demonstration; you can click on it to invoke the demonstration. Once the demonstration window appears, you can click the "See code" button to see the XUL code that created the demonstration. If you wish, you can edit the code and click the "Rerun Demo" button (not yet) in the code window to reinvoke the demonstration with the modified code.

This is an imitation of the widget demonstrations that come with Tcl/Tk. For the moment I try to stay as close as possible to that version. This implies that you do see references to Tcl/Tk at several places and the text may sound odd at some places. A future version of this package will probably be more XUL centric.

Labels, buttons, checkbuttons, and radiobuttons

  1. Labels (text and bitmaps).
  2. Buttons.
  3. Checkbuttons (select any of a group).
  4. Radiobuttons (select one of a group).
  5. A 15-puzzle game made out of buttons.
  6. Iconic buttons that use bitmaps.
  7. Two labels displaying images.
  8. A simple user interface for viewing images.

Listboxes

  1. 50 states.
  2. Colors: change the color scheme for the application.
  3. A collection of famous sayings.

Entries

  1. Without scrollbars.
  2. With scrollbars.
  3. Simple Rolodex-like form.

Text

  1. Basic editable text.
  2. Text display styles.
  3. Hypertext (tag bindings).
  4. A text widget with embedded windows.
  5. A search tool built with a text widget.

Canvases

  1. A simple 2-D plot.

Scales

  1. Vertical scale.
  2. Horizontal scale.

Menus

  1. Menus and cascades.
  2. Menubuttons

Common Dialogs

  1. Message boxes.
  2. File selection dialog.
  3. Color picker.

Miscellaneous

  1. The built-in bitmaps.
  2. A dialog box with a local grab.
  3. A dialog box with a global grab.