Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
6631 leency 1
#define MEMSIZE 4096*10
2
#include "../lib/gui.h"
3
proc_info Form;
4
 
5
#define WINDOW_TITLE "Driver Installer"
6
#define T_CAUTION_TITLE "CAUTION"
7
#define T_CAUTION_PARAGRAPH "Installing additional drivers can be harmful to the stability of the operation system and potentionally can harm hardware."
8
#define T_ASSEPT_RISK "I assept the risk"
9
 
10
#define BUTTON_ID_ASSEPT_RISK 10
11
 
12
 
13
void main()
14
{
15
	word id;
16
	loop() switch(WaitEvent())
17
	{
18
		case evButton:
19
			id=GetButtonID();
20
			if (id==1) ExitProcess();
21
			break;
22
 
23
		case evKey:
24
			GetKeys();
25
			break;
26
 
27
		case evReDraw:
28
			draw_window();
29
			break;
30
	}
31
}
32
 
33
 
34
void draw_window()
35
{
36
	incn y;
37
	y.n=40;
38
	system.color.get();
39
	DefineAndDrawWindow(215, 100, 450, 250, 0x33, system.color.work, WINDOW_TITLE);
40
	GetProcessInfo(#Form, SelfInfo);
41
	WriteTextB(30+2,y.n+2,0x81,MixColors(system.color.work, 0xB92234,220),T_CAUTION_TITLE);
42
	WriteTextB(30,y.n,0x81,0xB92234,T_CAUTION_TITLE);
43
	y.n = DrawTextViewArea(30, y.inc(30), Form.cwidth-60, Form.cheight-140, 15,
44
		T_CAUTION_PARAGRAPH, -1, system.color.work_text);
45
	DrawStandartCaptButton(30, y.inc(10), BUTTON_ID_ASSEPT_RISK, T_ASSEPT_RISK);
46
}
47