Subversion Repositories Kolibri OS

Rev

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

Rev 6264 Rev 6271
Line 66... Line 66...
66
        px = py / r + px;
66
        px = py / r + px;
67
        py = -px / r + py;
67
        py = -px / r + py;
68
	}
68
	}
69
}
69
}
Line 70... Line 70...
70
 
70
 
71
unsigned char checkbox_flag[507] = {
71
:unsigned char checkbox_flag[507] = {
72
	0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 
72
	0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 
73
	0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 
73
	0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xD4, 
74
	0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xDC, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 
74
	0x04, 0xFC, 0xD4, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xDC, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 
75
	0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 
75
	0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 0xC8, 0x04, 0xFC, 
Line 275... Line 275...
275
/========================================================*/
275
/========================================================*/
Line 276... Line 276...
276
 
276
 
277
#define TAB_PADDING 25
277
#define TAB_PADDING 25
Line 278... Line 278...
278
#define TAB_HEIGHT 25
278
#define TAB_HEIGHT 25
279
 
279
 
280
struct _tabs
280
:struct _tabs
281
{
281
{
282
	int active_tab;
282
	int active_tab;
283
	void draw();
283
	void draw();
Line 284... Line 284...
284
	int click();
284
	int click();
285
} tabs;
285
} tabs;
286
 
286
 
287
void _tabs::draw(dword x,y, but_id, text)
287
:void _tabs::draw(dword x,y, but_id, text)
288
{
288
{
Line 301... Line 301...
301
		col_text=system.color.work_text;
301
		col_text=system.color.work_text;
302
	} 
302
	} 
303
	DrawCaptButton(x,y, w-1,h+1, but_id, col_bg, col_text, text);
303
	DrawCaptButton(x,y, w-1,h+1, but_id, col_bg, col_text, text);
304
}
304
}
Line 305... Line 305...
305
 
305
 
306
int _tabs::click(int N)
306
:int _tabs::click(int N)
307
{
307
{
308
	if (N==active_tab) return false;
308
	if (N==active_tab) return false;
309
	active_tab = N;
309
	active_tab = N;
310
	return true;
310
	return true;