Subversion Repositories Kolibri OS

Rev

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

Rev 5996 Rev 6176
Line 161... Line 161...
161
		mouse_cfg.button_clicked * panels_img.w * panels_img.h * 3 + panels_img.data);
161
		mouse_cfg.button_clicked * panels_img.w * panels_img.h * 3 + panels_img.data);
162
}
162
}
Line 163... Line 163...
163
 
163
 
164
void DrawControls() {
164
void DrawControls() {
165
	DrawBar(pos_x, mouse_frame.start_y + 142, Form.cwidth - pos_x, 120, system.color.work);
165
	DrawBar(pos_x, mouse_frame.start_y + 142, Form.cwidth - pos_x, 120, system.color.work);
166
	PanelCfg_MoreLessBox(pos_x, mouse_frame.start_y + 142, 120, 121, mouse_cfg.pointer_speed, POINTER_SPEED);
166
	MoreLessBox(pos_x, mouse_frame.start_y + 142, 120, 121, mouse_cfg.pointer_speed, POINTER_SPEED);
167
	PanelCfg_MoreLessBox(pos_x, mouse_frame.start_y + 170, 122, 123, mouse_cfg.acceleration, ACCELERATION_TEXT);
167
	MoreLessBox(pos_x, mouse_frame.start_y + 170, 122, 123, mouse_cfg.acceleration, ACCELERATION_TEXT);
168
	PanelCfg_MoreLessBox(pos_x, mouse_frame.start_y + 198, 124, 125, mouse_cfg.double_click_delay, DOUBLE_CLICK_TEXT);
168
	MoreLessBox(pos_x, mouse_frame.start_y + 198, 124, 125, mouse_cfg.double_click_delay, DOUBLE_CLICK_TEXT);
169
	PanelCfg_CheckBox(pos_x, mouse_frame.start_y + 230, 100, MOUSE_EMULATION, mouse_cfg.emulation);
169
	CheckBox(pos_x, mouse_frame.start_y + 230, 100, MOUSE_EMULATION, mouse_cfg.emulation);
170
	PanelCfg_CheckBox(pos_x, mouse_frame.start_y + 254, 101, MADMOUSE, mouse_cfg.madmouse);
170
	CheckBox(pos_x, mouse_frame.start_y + 254, 101, MADMOUSE, mouse_cfg.madmouse);
Line 171... Line 171...
171
}
171
}
172
 
172
 
173
void SetFrameColors() {
173
void SetFrameColors() {
Line 191... Line 191...
191
	ini_set_int stdcall (#system_ini_path, #mouse_category, "double_click_delay", mouse_cfg.double_click_delay);
191
	ini_set_int stdcall (#system_ini_path, #mouse_category, "double_click_delay", mouse_cfg.double_click_delay);
192
	ExitProcess();
192
	ExitProcess();
193
}
193
}
Line 194... Line -...
194
 
-
 
195
 
-
 
196
void PanelCfg_CheckBox(dword x, y, id, text, byte value) {
-
 
197
	CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
-
 
198
}
-
 
199
 
-
 
200
void PanelCfg_MoreLessBox(dword x, y, id_more, id_less; word value; dword text) {
-
 
201
	MoreLessBox(x, y, 18, id_more, id_less, #system.color, value, text);
-
 
202
}
-
 
203
 
-
 
Line 204... Line 194...
204
 
194
 
205
 
195