2016-01-10 23:02:47 +03:00
|
|
|
#define MEMSIZE 4096*10
|
|
|
|
|
|
|
|
#include "../lib/io.h"
|
2017-04-13 01:56:25 +03:00
|
|
|
#include "../lib/window.h"
|
2016-01-10 23:02:47 +03:00
|
|
|
|
2017-04-13 01:56:25 +03:00
|
|
|
window win1=0;
|
2016-01-10 23:02:47 +03:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
io.dir.load(0,DIR_ONLYREAL);
|
2017-04-13 01:56:25 +03:00
|
|
|
win1.background = 0xFFFFFF;
|
|
|
|
win1.left = 200;
|
|
|
|
win1.ondraw = #draw_window;
|
|
|
|
win1.create();
|
2016-01-10 23:02:47 +03:00
|
|
|
}
|
|
|
|
void draw_window()
|
|
|
|
{
|
|
|
|
int i;
|
2017-04-13 01:56:25 +03:00
|
|
|
for (i=0; i<io.dir.count; i++)WriteText(5,i*8+3,0x80,0xFF00FF,io.dir.position(i));
|
2016-01-10 23:02:47 +03:00
|
|
|
DrawCaptButton(100, 10, 100, 22, 22, 0xCCCccc, 0x000000, "Button");
|
|
|
|
WriteText(100,50,0x80,0,"Textline small");
|
|
|
|
WriteText(100,70,0x90,0,"Textline big");
|
|
|
|
DrawBar(100, 110, 100, 100, 0x66AF86);
|
2020-04-04 18:15:50 +03:00
|
|
|
draw_ascii();
|
|
|
|
}
|
|
|
|
|
|
|
|
void draw_ascii()
|
|
|
|
{
|
|
|
|
char s[2];
|
|
|
|
int i, x, y;
|
|
|
|
s[1]=EOS;
|
|
|
|
for (i=0; i<256; i++) {
|
|
|
|
y = i / 20;
|
|
|
|
x = i % 20;
|
|
|
|
s[0] = i;
|
|
|
|
WriteText(x*33, y*33, 0x91, 0, #s);
|
|
|
|
}
|
2016-01-10 23:02:47 +03:00
|
|
|
}
|