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
- Labels (text and bitmaps).
- Buttons.
- Checkbuttons (select any of a group).
- Radiobuttons (select one of a group).
- A 15-puzzle game made out of buttons.
- Iconic buttons that use bitmaps.
- Two labels displaying images.
- A simple user interface for viewing images.
Listboxes
- 50 states.
- Colors: change the color scheme for the application.
- A collection of famous sayings.
Entries
- Without scrollbars.
- With scrollbars.
- Simple Rolodex-like form.
Text
- Basic editable text.
- Text display styles.
- Hypertext (tag bindings).
- A text widget with embedded windows.
- A search tool built with a text widget.
Canvases
- A simple 2-D plot.
Scales
- Vertical scale.
- Horizontal scale.
Menus
- Menus and cascades.
- Menubuttons
Common Dialogs
- Message boxes.
- File selection dialog.
- Color picker.
Miscellaneous
- The built-in bitmaps.
- A dialog box with a local grab.
- A dialog box with a global grab.