Rev 2840 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2840 | Rev 2844 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | //êàðòèíêè |
18 | //êàðòèíêè |
19 | #include "img\toolbar_icons.c" |
19 | #include "img\toolbar_icons.c" |
20 | #include "img\URLgoto.txt"; |
20 | #include "img\URLgoto.txt"; |
Line 21... | Line -... | ||
21 | - | ||
22 | 21 | ||
- | 22 | ||
23 | //ïåðåìåííûå |
23 | #define URL param |
24 | char URL[4096], |
24 | |
25 | editURL[4096], |
25 | char editURL[4096], |
Line 26... | Line 26... | ||
26 | page_links[12000], |
26 | page_links[12000], |
27 | header[300]; |
27 | header[300]; |
Line 32... | Line 32... | ||
32 | 32 | ||
33 | int mouse_dd; |
33 | int mouse_dd; |
34 | edit_box edit1= {250,207,16,0xffffff,0x94AECE,0xffffff,0xffffff,0,248,#editURL,#mouse_dd,2,19,19}; |
34 | edit_box edit1= {250,207,16,0xffffff,0x94AECE,0xffffff,0xffffff,0,248,#editURL,#mouse_dd,2,19,19}; |
Line -... | Line 35... | ||
- | 35 | scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; //details in scroll_lib.h-- |
|
35 | scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; //details in scroll_lib.h-- |
36 | |
- | 37 | ||
- | 38 | proc_info Form; |
|
- | 39 | #define WIN_W 640 |
|
- | 40 | #define WIN_H 480 |
|
36 | 41 | ||
37 | proc_info Form; |
42 | |
Line 38... | Line 43... | ||
38 | dword stak[100]; //ìåíþ ÏÊÌ |
43 | dword stak[100]; //ìåíþ ÏÊÌ |
39 | mouse m; |
44 | mouse m; |
Line 53... | Line 58... | ||
53 | load_dll2(libimg, #libimg_init,1); |
58 | load_dll2(libimg, #libimg_init,1); |
54 | load_dll2(boxlib, #edit_box_draw,0); |
59 | load_dll2(boxlib, #edit_box_draw,0); |
55 | load_dll2(#abox_lib, #boxlib_init,0); |
60 | load_dll2(#abox_lib, #boxlib_init,0); |
56 | //load_dll2(libtruetype, #truetype,0); |
61 | //load_dll2(libtruetype, #truetype,0); |
Line 57... | Line -... | ||
57 | - | ||
58 | if (param) strcpy(#URL, #param); |
62 | |
59 | else strcpy(#URL, "/sys/index.htm"); |
63 | if (!URL) strcpy(#URL, "/sys/index.htm"); |
Line -... | Line 64... | ||
- | 64 | strcpy(#editURL, #URL); |
|
- | 65 | ||
- | 66 | Form.width=WIN_W; |
|
60 | strcpy(#editURL, #URL); |
67 | Form.height=WIN_H; |
- | 68 | ||
61 | 69 | SetElementSizes(); |
|
Line 62... | Line 70... | ||
62 | lines.column_max = 101; |
70 | |
63 | WB1.OpenPage(); |
71 | WB1.OpenPage(); |
64 | 72 | ||
Line 159... | Line 167... | ||
159 | } |
167 | } |
160 | } |
168 | } |
161 | } |
169 | } |
162 | } |
170 | } |
Line -... | Line 171... | ||
- | 171 | ||
- | 172 | void SetElementSizes() |
|
- | 173 | { |
|
- | 174 | edit1.width=Form.width-266; |
|
- | 175 | WB1.top=44; |
|
- | 176 | WB1.width=Form.width-13; |
|
- | 177 | WB1.height=onTop(43,5); |
|
- | 178 | lines.column_max = WB1.width - 30 / 6; |
|
- | 179 | lines.visible = WB1.height - 3 / 10 - 2; |
|
- | 180 | } |
|
Line 163... | Line 181... | ||
163 | 181 | ||
164 | 182 | ||
165 | void Draw_Window() |
183 | void Draw_Window() |
166 | { |
184 | { |
Line 167... | Line 185... | ||
167 | int j; |
185 | int j; |
168 | DefineAndDrawWindow(215,100,640,480,0x73,0x00E4DFE1,0,0,0); |
186 | DefineAndDrawWindow(215,100,WIN_W,WIN_H,0x73,0x00E4DFE1,0,0,0); |
169 | 187 | ||
170 | GetProcessInfo(#Form, SelfInfo); |
188 | GetProcessInfo(#Form, SelfInfo); |
Line 187... | Line 205... | ||
187 | DefineButton(onLeft(37,0),15, 18, 16, GOTOURL+BT_HIDE, 0xE4DFE1); |
205 | DefineButton(onLeft(37,0),15, 18, 16, GOTOURL+BT_HIDE, 0xE4DFE1); |
188 | DefineButton(onLeft(56,0),15, 17, 16, SEARCHWEB+BT_HIDE, 0xE4DFE1); |
206 | DefineButton(onLeft(56,0),15, 17, 16, SEARCHWEB+BT_HIDE, 0xE4DFE1); |
189 | DrawRegion(205,14,onLeft(58,205),18,0x94AECE); //îáîäîê ïîëîñû àäðåñà |
207 | DrawRegion(205,14,onLeft(58,205),18,0x94AECE); //îáîäîê ïîëîñû àäðåñà |
190 | DrawRegion(206,15,onLeft(59,205),16,0xE4ECF3); |
208 | DrawRegion(206,15,onLeft(59,205),16,0xE4ECF3); |
Line 191... | Line -... | ||
191 | - | ||
192 | edit1.width=Form.width-266; |
- | |
193 | WB1.top=44; |
- | |
194 | WB1.width=Form.width-13; |
209 | |
195 | WB1.height=onTop(43,5); |
- | |
196 | lines.column_max = WB1.width - 30 / 6; |
- | |
197 | lines.visible = WB1.height - 3 / 10 - 2; |
- | |
198 | 210 | SetElementSizes(); |
|
Line 199... | Line 211... | ||
199 | WB1.ShowPage(); |
211 | WB1.ShowPage(); |
200 | 212 | ||
201 | DefineButton(scroll1.start_x+1, scroll1.start_y+1, 16, 16, ID1+BT_HIDE, 0xE4DFE1); |
213 | DefineButton(scroll1.start_x+1, scroll1.start_y+1, 16, 16, ID1+BT_HIDE, 0xE4DFE1); |