addition new example

git-svn-id: svn://kolibrios.org@8191 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2020-11-14 13:53:08 +00:00
parent b6c51edde1
commit 3e0b5920ee
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<application window="main">
<resources>
<color name="textColor">#55FFFF</color>
<color name="rectColor">#FF5555</color>
<color name="backgroundColor">#554141</color>
<string name="revision"> REV 7321 </string>
<string name="date"> 17.09.2018 </string>
</resources>
<keyboard language="c--" type="press" key="KEY_ESC">
ExitProcess();
</keyboard>
<keyboard language="lisp" type="press" key="KEY_ESC">
(exit)
</keyboard>
<window name="main" type="UnDragable" right="15" bottom="15" width="150" height="80">
<DrawFillRect left="0" top="0" width="150" height="80" color="@color/backgroundColor" />
<DrawRect left="0" top="0" width="150" height="80" weight="3" color="@color/rectColor" />
<DrawText left="15" top="20" type="0x81" color="@color/textColor" value="@string/revision" />
<DrawText left="15" top="45" type="0x81" color="@color/textColor" value="@string/date" />
</window>
</application>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<tags>
<resources>
<integer name="default">0</integer>
<integer name="defaultTypeDrawText">0x81</integer>
<color name="black">#000000</color>
<string name="default"></string>
</resources>
<DrawText left="@integer/default" top="@integer/default" type="@integer/defaultTypeDrawText" color="@color/black" value="@string/default">
<code language="c--">
DrawText({{left}},{{top}},{{type}},{{color}},{{value}});
</code>
<code language="lisp">
(DrawText {{left}} {{top}} {{type}} {{color}} {{value}})
</code>
</DrawText>
</tags>