Subversion Repositories Kolibri OS

Rev

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

Rev 2238 Rev 2248
Line 40... Line 40...
40
{
40
{
41
	mouse m;
41
	mouse m;
42
	int btn;
42
	int btn;
43
	byte key;
43
	byte key;
Line 44... Line -...
44
	
-
 
45
	IF (param) copystr(#param,#URL);
-
 
46
	BrowserHistory.AddUrl();
-
 
47
	copystr(#URL,#editURL);
-
 
48
	
44
	
49
    //Asper [
45
    //Asper [
50
        mem_Init();
46
        mem_Init();
51
        $or      eax, eax
47
        $or      eax, eax
52
        $jnz      loc00
48
        $jnz      loc00
53
        return;
49
        return;
54
      @loc00:
50
      @loc00:
55
      load_dll2(libio, #libio_init,1);
51
      load_dll2(libio, #libio_init,1);
56
      load_dll2(libimg, #libimg_init,1);
52
      load_dll2(libimg, #libimg_init,1);
57
      load_dll2(boxlib, #edit_box_draw,0);
53
      load_dll2(boxlib, #edit_box_draw,0);
-
 
54
    //] Asper
-
 
55
	
-
 
56
	IF (param) copystr(#param,#URL);
-
 
57
	BrowserHistory.AddUrl();
-
 
58
	copystr(#URL,#editURL);
58
    //] Asper
59
	
59
	SetEventMask(0x27);
60
	SetEventMask(0x27);
60
	loop()
61
	loop()
61
	{
62
	{
62
		switch(WaitEvent())
63
		switch(WaitEvent())
Line 116... Line 117...
116
 
117
 
117
void Draw_Window()
118
void Draw_Window()
118
{
119
{
119
	WindowRedrawStatus(1);
120
	WindowRedrawStatus(1);
-
 
121
	DefineAndDrawWindow(215,100,640,480,0x73,0x00E4DFE1,0,0,0);
-
 
122
	WindowRedrawStatus(2);
120
	DefineAndDrawWindow(215,100,640,480,0x73,0x00E4DFE1,0,0,0);
123
	
121
	Form.GetInfo(SelfInfo); 
124
	Form.GetInfo(SelfInfo); 
122
	IF (Form.height==GetSkinWidth()+3) //åñëè ñâåðíóòî â çàãîëîâîê, íè÷åãî íå ðèñóåì
125
	IF (Form.height==GetSkinWidth()+3) //åñëè ñâåðíóòî â çàãîëîâîê, íè÷åãî íå ðèñóåì
123
	{
126
	{
124
		DrawTitle(#header);
-
 
125
		WindowRedrawStatus(2);
127
		DrawTitle(#header);
126
		return;
128
		return;
127
	}
129
	}
128
	IF (Form.height<120) MoveSize(OLD,OLD,OLD,120);
130
	IF (Form.height<120) MoveSize(OLD,OLD,OLD,120);
Line 141... Line 143...
141
	edit1.width=Form.width-266;
143
	edit1.width=Form.width-266;
142
	WB1.top=44;
144
	WB1.top=44;
143
	WB1.width=Form.width-11;
145
	WB1.width=Form.width-11;
144
	WB1.height=onTop(43,5);
146
	WB1.height=onTop(43,5);
145
	WB1.Load(#URL);
147
	WB1.Load(#URL);
146
	
-
 
147
	WindowRedrawStatus(2);
-
 
148
}
148
}
Line 149... Line 149...
149
 
149
 
150
int onLeft(dword right,left) {return Form.width-right-left;}
150
int onLeft(dword right,left) {return Form.width-right-left;}