Subversion Repositories Kolibri OS

Rev

Rev 9576 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9576 Rev 9602
Line 145... Line 145...
145
	w = ESI.edit_box.width+1;
145
	w = ESI.edit_box.width+1;
146
	h = 22;
146
	h = 22;
147
	if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
147
	if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
148
	edit_box_draw  stdcall (edit_box_pointer);
148
	edit_box_draw  stdcall (edit_box_pointer);
149
	DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg);
149
	DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg);
150
	DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph);
150
	DrawRectangle(x-2, y-2, w+3, h+3, sc.line);
151
	DrawRectangle3D(x-3, y-3, w+5, h+5, sc.work_dark, sc.work_light);
151
	DrawRectangle3D(x-3, y-3, w+5, h+5, sc.dark, sc.light);
152
}
152
}
Line 153... Line 153...
153
 
153
 
154
#define DOT_W 37 
154
#define DOT_W 37 
155
:void DrawFileBox(dword edit_box_pointer, title, btn)
155
:void DrawFileBox(dword edit_box_pointer, title, btn)
Line 162... Line 162...
162
	#define box_h 22
162
	#define box_h 22
Line 163... Line 163...
163
 
163
 
164
	if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
164
	if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
165
	edit_box_draw  stdcall (edit_box_pointer);
165
	edit_box_draw  stdcall (edit_box_pointer);
166
	DrawRectangle3D(x-1, y-1, w+1, box_h+1, 0xE7E7E7, bg);
166
	DrawRectangle3D(x-1, y-1, w+1, box_h+1, 0xE7E7E7, bg);
167
	DrawRectangle(x-2, y-2, w+3, box_h+3, sc.work_graph);
167
	DrawRectangle(x-2, y-2, w+3, box_h+3, sc.line);
Line 168... Line 168...
168
	DrawRectangle3D(x-3, y-3, w+DOT_W+5, box_h+5, sc.work_dark, sc.work_light);
168
	DrawRectangle3D(x-3, y-3, w+DOT_W+5, box_h+5, sc.dark, sc.light);
169
 
169
 
170
	WriteText(x-2, y-19, 0x90, sc.work_text, title);
170
	WriteText(x-2, y-19, 0x90, sc.work_text, title);
Line 212... Line 212...
212
	proc_info wForm;
212
	proc_info wForm;
213
	dword shadow_buf = mem_Alloc(w*h*3);
213
	dword shadow_buf = mem_Alloc(w*h*3);
214
 	GetProcessInfo(#wForm, SelfInfo);
214
 	GetProcessInfo(#wForm, SelfInfo);
215
	CopyScreen(shadow_buf, 5*skinned+x+wForm.left, GetSkinHeight()*skinned+y+wForm.top, w, h);
215
	CopyScreen(shadow_buf, 5*skinned+x+wForm.left, GetSkinHeight()*skinned+y+wForm.top, w, h);
216
	ShadowImage(shadow_buf, w, h, strength);
216
	ShadowImage(shadow_buf, w, h, strength);
217
	_PutImage(x,y,w,h,shadow_buf);
217
	PutImage(x,y,w,h,shadow_buf);
218
	mem_Free(shadow_buf);
218
	mem_Free(shadow_buf);
219
}
219
}
Line 220... Line 220...
220
 
220
 
221
:void DrawPopup(dword x,y,w,h,skinned, col_work,col_border)
221
:void DrawPopup(dword x,y,w,h,skinned, col_work,col_border)
Line 227... Line 227...
227
	DrawPopupShadow(x,y,w,h-1,skinned);
227
	DrawPopupShadow(x,y,w,h-1,skinned);
228
}
228
}
Line 229... Line 229...
229
 
229
 
230
:void Draw3DPopup(dword x,y,w,h)
230
:void Draw3DPopup(dword x,y,w,h)
231
{
231
{
232
	DrawRectangle3D(x,y,w,h, sc.work_dark, sc.work_graph);
232
	DrawRectangle3D(x,y,w,h, sc.dark, sc.line);
233
	DrawBar(x+1,y+1,w-1,1,sc.work_light);
233
	DrawBar(x+1,y+1,w-1,1,sc.light);
234
	DrawBar(x+1,y+2,1,h-2,sc.work_light);
234
	DrawBar(x+1,y+2,1,h-2,sc.light);
235
	DrawPopupShadow(x,y,w,h-1,0);
235
	DrawPopupShadow(x,y,w,h-1,0);
Line 236... Line 236...
236
}
236
}
237
 
237