Subversion Repositories Kolibri OS

Rev

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

Rev 7730 Rev 7984
Line 42... Line 42...
42
proc_info Form;
42
proc_info Form;
Line 43... Line 43...
43
 
43
 
44
#include "engine.h"
44
#include "engine.h"
Line 45... Line -...
45
#include "ini.h"
-
 
46
 
45
#include "ini.h"
47
dword ed_mouse;
46
 
48
edit_box notebox = {NULL,NULL,NULL,COL_BG_ACTIVE,0x94AECE,COL_BG_ACTIVE,0xffffff,0,
47
edit_box notebox = {NULL,NULL,NULL,COL_BG_ACTIVE,0x94AECE,COL_BG_ACTIVE,0xffffff,0,
Line 49... Line 48...
49
	MAX_LINE_CHARS-1,NULL,#ed_mouse,ed_always_focus+ed_focus};
48
	MAX_LINE_CHARS-1,NULL,0,ed_always_focus+ed_focus};
50
dword lists[] = { 0xEAEAEA, 0xCDCDCD, 0xF0F0F0, 0xD8D8D8, 0 };
49
dword lists[] = { 0xEAEAEA, 0xCDCDCD, 0xF0F0F0, 0xD8D8D8, 0 };
51
 
50
 
Line 59... Line 58...
59
//                                                   //
58
//                                                   //
60
//===================================================//
59
//===================================================//
Line 61... Line 60...
61
 
60
 
62
void main()
61
void main()
63
{   
-
 
64
	int btn;
62
{   
65
	bool first_redraw=true;
63
	bool first_redraw=true;
66
	dword cur_line_offset;
64
	dword cur_line_offset;
Line 67... Line 65...
67
	load_dll(boxlib, #box_lib_init,0);
65
	load_dll(boxlib, #box_lib_init,0);
Line 68... Line 66...
68
 
66
 
Line 69... Line 67...
69
	if (GetCpuFrequency()/1000000>=1000) window_dragable=true; else window_dragable=false;
67
	if (GetCpuFrequency()/1000000>=1000) window_dragable=true; else window_dragable=false;
70
	
68
	
Line 71... Line 69...
71
	if (param) notes.OpenTxt(#param); else notes.OpenTxt("/sys/notes.txt");
69
	if (param) notes.OpenTxt(#param); else notes.OpenTxt("/sys/notes.txt");
72
 
70
 
73
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
71
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
74
	LoadIniSettings();
72
	LoadIniSettings();
Line 75... Line 73...
75
 
73
 
Line 99... Line 97...
99
			}
97
			}
Line 100... Line 98...
100
 
98
 
Line 101... Line 99...
101
			break;
99
			break;
102
 
100
 
103
		 case evButton:
101
		 case evButton:
104
			btn = GetButtonID();
102
			@GetButtonID();
105
			switch(btn)
103
			switch(EAX)
106
			{
104
			{
107
				case CLOSE_BTN:
105
				case CLOSE_BTN:
108
					EventExitApp();
106
					EventExitApp();
109
					break;
107
					break;
110
				case DELETE_BTN:
108
				case DELETE_BTN:
111
					EventDeleteCurrentNode();
109
					EventDeleteCurrentNode();
112
					break;
110
					break;
113
				default: 
111
				default: 
114
					EventCheckBoxClick(btn-CHECKBOX_ID);
112
					EventCheckBoxClick(EAX-CHECKBOX_ID);
115
					break;
113
					break;
Line 116... Line 114...
116
			}  
114
			}