Subversion Repositories Kolibri OS

Rev

Rev 7498 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
990 barsuk 1
 
7498 leency 2
3
 
990 barsuk 4
typedef unsigned short word;
7498 leency 5
typedef dword __stdcall dword_func(dword);
6
//typedef dword __stdcall dword3_func(dword,dword,dword);
7
990 barsuk 8
 
9
dword  bm__ = 0x0;
10
11
 
7498 leency 12
char aEdit_box_key[]    = "edit_box_key";
13
char aEdit_box_mouse[]  = "edit_box_mouse";
14
char aVersion_ed[]      = "version_ed";
15
990 barsuk 16
 
7498 leency 17
char aCheck_box_mouse[] = "check_box_mouse";
18
char aVersion_ch[]      = "version_ch";
19
990 barsuk 20
 
7498 leency 21
char aVersion_op[]      = "version_op" ;
22
990 barsuk 23
 
7498 leency 24
char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
25
char aScrollbar_h_draw [] = "scrollbar_h_draw";
26
char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
27
char aVersion_scrollbar[] = "version_scrollbar";
28
990 barsuk 29
 
7498 leency 30
dword_func *edit_box_key   =(dword_func*) &aEdit_box_key;
31
dword_func *edit_box_mouse =(dword_func*) &aEdit_box_mouse;
990 barsuk 32
33
 
7498 leency 34
dword_func *scrollbar_v_mouse = (dword_func*) &aScrollbar_v_mouse;
35
dword_func *scrollbar_h_draw  = (dword_func*) &aScrollbar_h_draw;
36
dword_func *scrollbar_h_mouse = (dword_func*) &aScrollbar_h_mouse;
37
38
 
39
 
990 barsuk 40
dword lib_path_addr = (dword)lib_path;
41
dword dummy = 0;
42
43
 
7507 leency 44
#define ed_pass             1
45
#define ed_focus            2   //focused
46
#define ed_shift            4   //flag is set when Shift is pressed
47
#define ed_shift_on         8
48
#define ed_shift_bac       16   //bit for Shift reset, if set the smth is selected
49
#define ed_left_fl         32
50
#define ed_offset_fl       64
51
#define ed_insert         128
52
#define ed_mouse_on       256
53
#define ed_mouse_adn_b    280
54
#define ed_disabled      2048
55
#define ed_always_focus 16384
56
#define ed_figure_only  32768   //numbers only
57
#define ed_shift_cl     65507
58
#define ed_shift_mcl    65531
59
#define ed_shift_off    65531
60
#define ed_shift_on_off 65527
61
#define ed_shift_bac_cl 65519
62
#define ed_right_fl     65503
63
#define ed_offset_cl    65471
64
#define ed_insert_cl    65407
65
#define ed_mouse_on_off 65279
66
67
 
990 barsuk 68
dword width,
7498 leency 69
	left,
70
	top,
71
	color,
72
	shift_color,
73
	focus_border_color,
74
	blur_border_color,
75
	text_color,
76
	max,
77
	text,
78
	mouse_variable,
79
	flags,
80
	size,
81
	pos,
82
	offset,
83
	cl_curs_x,
84
	cl_curs_y,
85
	shift,
86
	shift_old,
87
	height,
7507 leency 88
	ed_char_width;
7498 leency 89
};
990 barsuk 90
91
 
7498 leency 92
word w,
93
	x,
94
	h,
95
	y;
96
	dword btn_height,
97
	type,
98
	max_area,
99
	cur_area,
100
	position,
101
	bckg_col,
102
	frnt_col,
103
	line_col,
104
	redraw;
105
	word delta,
106
	delta2,
107
	r_size_x,
108
	r_start_x,
109
	r_size_y,
110
	r_start_y;
111
	dword m_pos,
112
	m_pos_2,
113
	m_keys,
114
	run_size,
115
	position2,
116
	work_size,
117
	all_redraw,
118
	ar_offset;
119
};
120
121
 
990 barsuk 122
{
123
	kol_struct_import *k = kol_cofflib_load(lib_path);
124
125
 
126
	{
127
		sprintf(debuf, "cannot load library %S", lib_path);
128
		rtlDebugOutString(debuf);
129
		return;
130
	}
131
132
 
7498 leency 133
	edit_box_key   = (dword_func*)kol_cofflib_procload(k, aEdit_box_key);
134
	edit_box_mouse = (dword_func*)kol_cofflib_procload(k, aEdit_box_mouse);
135
990 barsuk 136
 
7498 leency 137
	scrollbar_v_mouse = (dword_func*)kol_cofflib_procload(k, aScrollbar_v_mouse);
138
	scrollbar_h_draw  = (dword_func*)kol_cofflib_procload(k, aScrollbar_h_draw);
139
	scrollbar_h_mouse = (dword_func*)kol_cofflib_procload(k, aScrollbar_h_mouse);
140
141
 
142
		rtlDebugOutString("Some of EDITBOX functions have not been loaded!");
143
}
144