Subversion Repositories Kolibri OS

Rev

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

Rev 2428 Rev 2433
Line 1... Line 1...
1
//HTML Viewer in C--
1
//HTML Viewer in C--
2
//Copyright 2007-20012 by Veliant & Leency
2
//Copyright 2007-2012 by Veliant & Leency
3
//Asper, Lrz, Nable, lev.
3
//Asper, Lrz, Nable, lev.
Line 4... Line 4...
4
 
4
 
5
#include "..\lib\kolibri.h--"
5
#include "..\lib\kolibri.h--"
6
#include "..\lib\file_system.h--"
6
#include "..\lib\file_system.h--"
Line 54... Line 54...
54
	
54
	
55
	IF (param) copystr(#param,#URL);
55
	IF (param) copystr(#param,#URL);
Line 56... Line 56...
56
	copystr(#URL,#editURL);
56
	copystr(#URL,#editURL);
-
 
57
	
-
 
58
	if (!strcmp(get_URL_part(5),"http:"))) HttpLoad();
Line 57... Line 59...
57
	
59
	//Draw_Window();  //shis is right
58
	if (!strcmp(get_URL_part(5),"http:"))) HttpLoad();
60
	//WB1.ShowPage(#URL);  //shis is right
59
 
61
 
60
	SetEventMask(0x27);
62
	SetEventMask(0x27);
Line 142... Line 144...
142
	DefineButton(onLeft(37,0),15, 18, 16, GOTOURL+BT_HIDE, 0xE4DFE1);
144
	DefineButton(onLeft(37,0),15, 18, 16, GOTOURL+BT_HIDE, 0xE4DFE1);
143
	DefineButton(onLeft(56,0),15, 17, 16, SEARCHWEB+BT_HIDE, 0xE4DFE1);
145
	DefineButton(onLeft(56,0),15, 17, 16, SEARCHWEB+BT_HIDE, 0xE4DFE1);
144
	DrawRegion_3D(205,14,onLeft(58,205),18,0x94AECE,0x94AECE); //îáîäîê ïîëîñû àäðåñà
146
	DrawRegion_3D(205,14,onLeft(58,205),18,0x94AECE,0x94AECE); //îáîäîê ïîëîñû àäðåñà
145
	DrawRegion_3D(206,15,onLeft(59,205),16,0xE4ECF3,0xE4ECF3);
147
	DrawRegion_3D(206,15,onLeft(59,205),16,0xE4ECF3,0xE4ECF3);
146
	edit1.width=Form.width-266;
148
	edit1.width=Form.width-266;
-
 
149
	//edit_box_draw stdcall(#edit1); //ðèñóåì ñòðîêó àäðåñà  //shis is right
-
 
150
	
147
	WB1.top=44;
151
	WB1.top=44;
148
	WB1.width=Form.width-11;
152
	WB1.width=Form.width-11;
149
	WB1.height=onTop(43,5);
153
	WB1.height=onTop(43,5);
150
	WB1.ShowPage(#URL);
154
	WB1.ShowPage(#URL);
-
 
155
	//WB1.ParseHTML(buf, filesize); //shis is right
151
}
156
}
Line 152... Line 157...
152
 
157
 
153
int onLeft(dword right,left) {return Form.width-right-left;}
158
int onLeft(dword right,left) {return Form.width-right-left;}