XUL Tutorial with Examples
Learn XUL for building a graphical user interface with XML tags.
The tutorial should be read by following the order of the chapters at first
level. Later one will be able to deepen by reading the chapters which are
attached to them.
- First program. Writing you first XUL program.
- Installing XUL.
- Window. How to open a XUL window from an HTML page.
- Boxes. They allow to organize the contents of a graphic interface.
- Grid. Organizing the interface as a table.
- Groupbox. Inserting components into a border.
- Stack. shading effect or text in graphical element.
- Spacer. Separating components.
- Tabs and tabbox. Improving the interface with tabbed panels.
- Button and Javascript. How to define a button and to assign code to handle user's actions.
- Textbox. How to use a textbox to enter data.
- Images. Displaying images on the page and inside widgets.
- Listbox. Building a list or a table.
- Menu. Designing the menu to an application.
- Toolbar. Adding a toolbar to it.
- Progressmeter. Displaying the progression of a task.
- Tree. A tree stores data as bookmarks, disk directories...
- HTML. You can put components of pages into XUL.
- Canvas. Drawing on a surface.
- Style. Improving the look with style sheets.
- Events and the event object. Interaction with the graphical user interface.
- Building a XUL widget with XBL. Extend the list of components.
- First XUL application. Start with a simple Hello World! program.
Case study
- Xul Dev editor.
- Description.
It is a proof of concept. It is an exemple of IDE, for creating visually graphical interface in XUL and to build software in any programming language.
Forum
Tools to build XUL applications
- Scriptol and Xul Light.
Xul light is XUL without angle brackets, more readable, that can be integrated directly into a Scriptol source. XML light has a descriptive capability that is really better than what classes provide. Example of scriptol source. The XUL code generated by the scriptol compiler from the source.
Some XUL examples are included int the XUL directory in the archive of the Scriptol compiler. - XULRunner is the runtime that is required to run and display XUL applications, without Firefox. To create and install a XUL application see above in this tutorial.
- XPCom links binary extensions, written in C++ or other languages, to the xul interface to go beyond JavaScript limits.
© 2007-2024 Xul.fr
& Denis Sureau. All rights reserved. You are free to use the code of the demos to motorize your site.
You can print the texts and the codes and distribute them for educational purpose.
You can print the texts and the codes and distribute them for educational purpose.