Boxely - "Hello World!" Sample
"Hello World!" Sample Code
The following code displays a simple window titled "Hello World!" and displays the text "Hello World!".
<?xml version="1.0" encoding="utf-8" ?>
<?import href="box://ocpToolkit/content/core/coreGadgets.box"?>
<?import href="box://ocpToolkit/theme/default/toolkit.box"?>
<window xmlns="http://www.aol.com/boxely/box.xsd"
xmlns:s="http://www.aol.com/boxely/style.xsd"
s:fill="white"
title="Hello World!" >
<box>
<text id="greeting" value="Hello World!" />
</box>
</window>
The following code displays a appWindow with a set width and height of 300 pixels and displays the text "Hello World!".
<?xml version="1.0" encoding="utf-8" ?>
<?import href="box://ocpToolkit/content/core/coreGadgets.box"?>
<?import href="box://ocpToolkit/content/windowingPack/windowGadgets.box"?>
<?import href="box://ocpToolkit/theme/default/toolkit.box"?>
<appWindow xmlns="http://www.aol.com/boxely/box.xsd"
xmlns:s="http://www.aol.com/boxely/style.xsd"
chromeless="true"
s:height="300" s:width="300"
title="Hello World!" >
<box>
<text id="greeting" value="Hello World!" />
</box>
</appWindow>
up next: Styles
» Submitted by Developer Network on April 30, 2007 - 12:43pm.

