Subversion Repositories Kolibri OS

Rev

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

Rev 5997 Rev 6008
Line 96... Line 96...
96
         case evReDraw:
96
         case evReDraw:
97
			system.color.get();
97
			system.color.get();
98
			DefineAndDrawWindow(GetScreenWidth()-window_width/2,GetScreenHeight()-window_height/2,window_width,window_height,0x74,system.color.work,"");
98
			DefineAndDrawWindow(GetScreenWidth()-window_width/2,GetScreenHeight()-window_height/2,window_width,window_height,0x74,system.color.work,"");
99
			GetProcessInfo(#Form, SelfInfo);
99
			GetProcessInfo(#Form, SelfInfo);
100
			if (Form.status_window>2) { DrawTitle(#window_title); break; } else DrawTitle("");
100
			if (Form.status_window>2) { DrawTitle(#window_title); break; } else DrawTitle("");
-
 
101
			draw_top_bar();
101
			kolibrios_mounted = isdir("/kolibrios");
102
			kolibrios_mounted = isdir("/kolibrios");
102
			col_max = Form.cwidth - 10 / cell_w;
103
			col_max = Form.cwidth - 10 / cell_w;
103
			current_item_id = 0;
104
			current_item_id = 0;
104
			draw_top_bar();
105
			row = -1;
105
			ini_enum_sections stdcall (#settings_ini_path, #process_sections);
106
			ini_enum_sections stdcall (#settings_ini_path, #process_sections);
106
			DrawBar(0, row + 1 * cell_h + list_pos, Form.cwidth, -row - 1 * cell_h - list_pos + Form.cheight, LIST_BACKGROUND_COLOR);
107
			DrawBar(0, row + 1 * cell_h + list_pos, Form.cwidth, -row - 1 * cell_h - list_pos + Form.cheight, LIST_BACKGROUND_COLOR);
107
			break;
108
			break;
108
      }
109
      }
109
	}
110
	}
Line 185... Line 186...
185
	return true;
186
	return true;
186
}
187
}
Line 187... Line 188...
187
 
188
 
188
void draw_top_bar()
189
void draw_top_bar()
189
{
190
{
190
	int top_position = 26;
191
	int top_position = 32;
191
	DrawBar(0,0,Form.cwidth, top_position-2, system.color.work);
192
	DrawBar(0,0,Form.cwidth, top_position-2, system.color.work);
192
	DrawBar(0,top_position-2, Form.cwidth, 1, ShadowPixel(system.color.work, 1));
193
	DrawBar(0,top_position-2, Form.cwidth, 1, ShadowPixel(system.color.work, 1));
193
	DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph);
194
	DrawBar(0,top_position-1, Form.cwidth, 1, system.color.work_graph);
194
	label.write_center(0,0, Form.cwidth, top_position, system.color.work, system.color.work_text, 16, #window_title);
195
	label.write_center(0,5, Form.cwidth, top_position, system.color.work, system.color.work_text, 16, #window_title);
195
	list_top = top_position;
196
	list_top = top_position;
196
	list_pos = list_top;
-
 
197
	row = -1;
197
	list_pos = list_top;
Line 198... Line 198...
198
}
198
}