Saturday, January 28, 2006

UIEngine Says "Hello World"

The standard "Hello World" application written in UIEvolution's UJML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ujml PUBLIC "-//UIEVOLUTION//DTD UJML
1.5//EN" "http://www.uievolution.com/dtd/ujml-1.5.dtd" []>

<ujml>
<application>
<!-- paint the background -->
<display>
<box>
<width>
<eval>_getIntProperty(&_PROPERTY_INT_SCREEN_WIDTH;)</eval>
</width>
<height>
<eval>_getIntProperty(&_PROPERTY_INT_SCREEN_HEIGHT;)</eval>
</height>
<bg>&_COLOR_BLACK;</bg>
</box>
<!-- draw text "Hello World" -->
<label>
<text>Hello World!</text>
<fg>&_COLOR_YELLOW;</fg>
</label>
</display>
</application>
</ujml>


See it run...

No comments: