The following is a more complicated example which is a small information box for a fictitious adventure game. A lot of information is to be displayed in a small area:
Adventurer status
Characteristics
Inventory
Quests
Using the BorderLayout container for overall layout, it consists of three parts: a toolbar, an accordioncontainer, and a horizontal ScrollPane top display the inventory.
The toolbar is not particularly active in the example, but shows how to use a simple toolbar menu in conjunction with a BorderLayout container.
The source code for the example is here:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <title>Chapter 6 Layout Example</title> <style> @import "dojo-1.1.0/dojo/resources/dojo.css"; @import "dojo-1.1.0/dijit/tests/css/dijitTests.css"; @import "dojo-1.1.0/dijit/themes/tundra/tundra.css"; @import "dojo-1.1.0/dojox/widget/Rating/Rating.css"; <...