Subversion Repositories Kolibri OS

Rev

Rev 5985 | Rev 5990 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5985 Rev 5987
Line 114... Line 114...
114
	CreateDir("/tmp0/1/downloads");
114
	CreateDir("/tmp0/1/downloads");
115
	if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME);
115
	if (param) strcpy(#URL, #param); else strcpy(#URL, URL_SERVICE_HOME);
116
	WB1.DrawBuf.zoom = 1;
116
	WB1.DrawBuf.zoom = 1;
117
	WB1.list.SetFont(8, 14, 10111000b);
117
	WB1.list.SetFont(8, 14, 10111000b);
118
	WB1.list.no_selection = true;
118
	WB1.list.no_selection = true;
119
	//font init
-
 
120
	font.bg_color   = 0xFFFFFF;
-
 
121
	font.load(DEFAULT_FONT);
119
	label.init(DEFAULT_FONT);
122
	if (!font.data) {
-
 
123
		notify("'Error: Font is not loaded.' -E");
-
 
124
		ExitProcess();
-
 
125
	}
-
 
126
	//
-
 
127
	SetEventMask(0xa7);
120
	SetEventMask(0xa7);
128
	BEGIN_LOOP_APPLICATION:
121
	BEGIN_LOOP_APPLICATION:
129
		WaitEventTimeout(2);
122
		WaitEventTimeout(2);
130
		switch(EAX & 0xFF)
123
		switch(EAX & 0xFF)
131
		{
124
		{
Line 261... Line 254...
261
 
254
 
262
 
255
 
263
 
256
 
264
void Draw_Window()
257
void Draw_Window()
265
{
258
{
266
	int list__w;
259
	int list__w, list__h;
267
	DrawBar(0,0, Form.cwidth,TOOLBAR_H-2, panel_color);
260
	DrawBar(0,0, Form.cwidth,TOOLBAR_H-2, panel_color);
268
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, 0xD7D0D3);
261
	DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, 0xD7D0D3);
Line 281... Line 274...
281
	DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, scroll_wv.bckg_col);
274
	DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, scroll_wv.bckg_col);
282
	DrawProgress();
275
	DrawProgress();
Line 283... Line 276...
283
 
276
 
284
	/*
277
	/*
285
	list__w = 200;
-
 
286
	font.buffer_size = 0;
278
	list__w = 200;
287
	font.size.height = 200;
-
 
288
	font.color = 0x000000;
279
	list__h = 200;
289
	font.size.text = 11;
280
	label.raw_size = 0;
290
	font.write_buf(10,10,list__w,font.size.height, "Hello World!");
-
 
291
	font.color = 0xFF00FF;
-
 
292
	font.size.text = 12;
281
	label.write_buf(10,10, list__w, list__h, 0xFFFFFF, 0, 11, "Hello World!");
293
	font.write_buf(10,23,list__w,font.size.height, "How are you?");
-
 
294
	font.color = 0x2E74BB;
-
 
295
	font.size.text = 15;
282
	label.write_buf(10,23, list__w, list__h, 0xFFFFFF, 0xFF00FF, 12, "How are you?");
296
	font.write_buf(11,40,list__w,font.size.height, "Fine");
283
	label.write_buf(11,40, list__w, list__h, 0xFFFFFF, 0x2E74BB, 15, "Fine");
297
	font.apply_smooth();
284
	label.apply_smooth();
298
	_PutImage(0,0,list__w,font.size.height,font.buffer);
285
	label.show_buf(0,0);
299
	*/
286
	*/
Line 300... Line 287...
300
}
287
}