Subversion Repositories Kolibri OS

Rev

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

Rev 3020 Rev 3028
Line 45... Line 45...
45
mouse m;
45
mouse m;
Line 46... Line 46...
46
 
46
 
47
#include "TWB.h"
47
#include "TWB.h"
Line 48... Line 48...
48
#include "include\menu_rmb.h"
48
#include "include\menu_rmb.h"
49
 
49
 
50
/*void tre()
50
void tre()
51
{
51
{
52
	char *font_picture;
52
	char *font_picture;
53
	char text[12];
53
	char text[20];
54
	int width=600;
54
	int width=600;
55
	int height=40;
55
	int height=20;
-
 
56
//	char palette[256*4];
-
 
57
	int x;
-
 
58
	debug("fuck this shit\n");
Line -... Line 59...
-
 
59
	//init_font(#fontinfo);
-
 
60
	debug("fuck this shit!\n");
-
 
61
	
-
 
62
	strcpy(#text, "hello world\0");
-
 
63
	
-
 
64
	text_out stdcall (#text, #fontlol, 17, 0x0, 10, 10);
-
 
65
	
Line -... Line 66...
-
 
66
	strcpy(#text, "fuck this shit!\0");
-
 
67
	
-
 
68
	text_out stdcall (#text, #fontlol, 27, 0x0, 10, 30);
-
 
69
	
-
 
70
	
56
	char palette[256*4];
71
	strcpy(#text, "alarm!\0");
Line -... Line 72...
-
 
72
	
57
	int x;
73
	text_out stdcall (#text, #fontlol, 47, 0x00FF0000, 10, 70);
58
 
74
	/*
59
 
-
 
-
 
75
	strcpy(#text, "hello world\0");
-
 
76
	
-
 
77
	debug("get width\n");
60
	strcpy(#text, "hello world\0");
78
	get_width stdcall (#text, #fontinfo, height);
-
 
79
	width=EAX;
61
 
80
	for (x=0;x<20;x++)  {
Line 62... Line -...
62
	get_width stdcall (#text, -1, height);
-
 
63
	width=EAX;
81
	init_font(#fontinfo);
64
 
-
 
65
	font_picture=mem_Alloc(width*height);
-
 
66
	truetype stdcall (#text, -1, font_picture,  width, height);
-
 
67
 
-
 
Line 68... Line -...
68
	for (x=0;x<256;x++) {
-
 
69
	palette[x*4]=255-x;
-
 
70
	palette[x*4+1]=255-x;
-
 
Line -... Line 82...
-
 
82
	debug("yaya\n");
-
 
83
	font_picture=mem_Alloc(width*height);
-
 
84
	text[1]=30+x;
-
 
85
	truetype stdcall (#text, #fontinfo, font_picture,  width, height);
-
 
86
 
-
 
87
	debug("blyad'!\n");
71
	palette[x*4+2]=255-x;
88
 
72
	palette[x*4+3]=0;
89
 
73
	}
90
	
74
 
91
	PutPaletteImage(font_picture,width,height,0,20*x,8,#palette);
75
	PutPaletteImage(font_picture,width,height,0,0,8,#palette);
92
	mem_Free(font_picture); }*/
Line 89... Line 106...
89
	if (load_dll2(libimg, #libimg_init,1)!=0) debug("Íå óäàëîñü ïîäêëþ÷èòü áèáëèîòåêó libimg"w);
106
	if (load_dll2(libimg, #libimg_init,1)!=0) debug("Íå óäàëîñü ïîäêëþ÷èòü áèáëèîòåêó libimg"w);
90
	if (load_dll2(boxlib, #edit_box_draw,0)!=0) {RunProgram("@notify", "System Error: library doesn't exists /rd/1/lib/box_lib.obj"); ExitProcess();}
107
	if (load_dll2(boxlib, #edit_box_draw,0)!=0) {RunProgram("@notify", "System Error: library doesn't exists /rd/1/lib/box_lib.obj"); ExitProcess();}
91
	load_dll2(#abox_lib, #boxlib_init,0);
108
	load_dll2(#abox_lib, #boxlib_init,0);
92
	if (load_dll2(libtruetype, #truetype,0)!=0) {debug("Íå óäàëîñü ïîäêëþ÷èòü áèáëèîòåêó TrueType"w); use_truetype = 2;}
109
	if (load_dll2(libtruetype, #truetype,0)!=0) {debug("Íå óäàëîñü ïîäêëþ÷èòü áèáëèîòåêó TrueType"w); use_truetype = 2;}
Line -... Line 110...
-
 
110
	
-
 
111
	init_font(#fontlol);
93
	
112
	
94
	if (!URL) strcpy(#URL, "/sys/home.htm");
113
	if (!URL) strcpy(#URL, "/sys/home.htm");
Line 95... Line 114...
95
	strcpy(#editURL, #URL);
114
	strcpy(#editURL, #URL);
96
	
115
	
Line 239... Line 258...
239
	DrawRegion(205,14,onLeft(58,205),18,0x94AECE); //îáîäîê ïîëîñû àäðåñà
258
	DrawRegion(205,14,onLeft(58,205),18,0x94AECE); //îáîäîê ïîëîñû àäðåñà
240
	DrawRegion(206,15,onLeft(59,205),16,0xE4ECF3);
259
	DrawRegion(206,15,onLeft(59,205),16,0xE4ECF3);
Line 241... Line 260...
241
 
260
 
242
	SetElementSizes();
261
	SetElementSizes();
243
	WB1.ShowPage();
262
	WB1.ShowPage();
244
	
263
	//tre();
245
	DefineButton(scroll1.start_x+1, scroll1.start_y+1, 16, 16, ID1+BT_HIDE, 0xE4DFE1);
264
	DefineButton(scroll1.start_x+1, scroll1.start_y+1, 16, 16, ID1+BT_HIDE, 0xE4DFE1);
246
	DefineButton(scroll1.start_x+1, scroll1.start_y+scroll1.size_y-18, 16, 16, ID2+BT_HIDE, 0xE4DFE1);
265
	DefineButton(scroll1.start_x+1, scroll1.start_y+scroll1.size_y-18, 16, 16, ID2+BT_HIDE, 0xE4DFE1);
Line 247... Line 266...
247
}
266
}