Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
249 Ghost 1
 
2
3
 
4
#include "string.h"
5
#include "mesys.h"
6
7
 
8
#define FONT1		0x10000000
9
10
 
11
#define BT_DEL		0x80000000
12
#define BT_HIDE		0x40000000
13
#define BT_NOFRAME	0x20000000
14
15
 
16
17
 
18
	char tmp;
19
	int i;
20
	tmp = str[0];
21
	for(i = 1; str[i]; i++)str[i - 1] = str[i];
22
	str[i - 1] = tmp;
23
}
24
25
 
26
	static int offs = 0;
27
	static int fcolor = 0;
28
	static int col = 0;
29
30
 
31
	_msys_draw_window(100, 100, 300, 120, 0xaabbcc, 2, 0x5080d0, 0, 0x5080d0);
32
	_msys_write_text(6 - offs, 8, fcolor | FONT0, header, strlen(header));
33
	_msys_draw_bar(1, 6, 5, 13, 0x05080d0);
34
	_msys_draw_bar(274, 6, 26, 13, 0x05080d0);
35
	_msys_make_button(300 - 19, 5, 12, 12, 1 | BT_NORMAL, 0x6688dd);
36
	_msys_window_redraw(2);
37
38
 
39
	if(!offs)rotate_str(header);
40
41
 
42
	if(fcolor > 0xf80000 || fcolor == 0)col = !col;
43
}
44
45
 
46
47
 
48
		switch(_msys_wait_for_event(10)){
49
		case 2:return 0;
50
51
 
52
			if(_msys_get_button_id() == 1)return 0;
53
			break;
54
55
 
56
			draw_window();
57
			break;
58
		}
59
	}
60
}
61