Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7244 → Rev 7245

/programs/cmm/lib/gui.h
116,19 → 116,27
 
:void DrawEditBox(dword edit_box_pointer)
{
dword x,y,w,h,bg;
dword x,y,w,h,bg,t;
ESI = edit_box_pointer;
x = ESI.edit_box.left;
y = ESI.edit_box.top;
w = ESI.edit_box.width+1;
h = 22;
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
edit_box_draw stdcall (edit_box_pointer);
h = 22;
DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg);
DrawRectangle(x-2, y-2, w+3, h+3, system.color.work_graph);
DrawRectangle3D(x-3, y-3, w+5, h+5, system.color.work_dark, system.color.work_light);
}
 
:void DrawEditBoxPos(dword x,y, edit_box_pointer)
{
ESI = edit_box_pointer;
ESI.edit_box.left = x;
ESI.edit_box.top = y;
DrawEditBox(dword edit_box_pointer);
}
 
:void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent)
{
int progress_w;