Rev 5611 | Rev 5626 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3107 | leency | 1 | //BOX_LIB - Asper |
5598 | pavelyakov | 2 | #ifndef INCLUDE_BOX_LIB_H |
3 | #define INCLUDE_BOX_LIB_H |
||
4 | |||
5 | #ifndef INCLUDE_KOLIBRI_H |
||
6 | #include "../lib/kolibri.h" |
||
7 | #endif |
||
8 | |||
9 | #ifndef INCLUDE_DLL_H |
||
10 | #include "../lib/dll.h" |
||
11 | #endif |
||
12 | |||
3107 | leency | 13 | dword boxlib = #aEdit_box_lib; |
5503 | leency | 14 | char aEdit_box_lib[]="/sys/lib/box_lib.obj"; |
3107 | leency | 15 | |
5621 | leency | 16 | #ifdef LANG_RUS |
17 | ?define BOX_LIB_LOAD_ERR "Error while loading library /rd/1/lib/box_lib.obj" |
||
18 | #else |
||
19 | ?define BOX_LIB_LOAD_ERR "Ошибка при загрузке библиотеки /rd/1/lib/box_lib.obj" |
||
20 | #endif |
||
21 | |||
22 | |||
3107 | leency | 23 | dword box_lib_init = #aboxlib_init; |
24 | |||
25 | dword edit_box_draw = #aEdit_box_draw; |
||
26 | dword edit_box_key = #aEdit_box_key; |
||
27 | dword edit_box_mouse = #aEdit_box_mouse; |
||
28 | dword version_ed = #aVersion_ed; |
||
29 | |||
5611 | punk_joker | 30 | dword menu_bar_draw = #aMenu_bar_draw; |
31 | dword menu_bar_activate = #aMenu_bar_activate; |
||
32 | dword menu_bar_mouse = #aMenu_bar_mouse; |
||
33 | dword version_menu_bar = #aVersion_menu_bar; |
||
34 | |||
3107 | leency | 35 | dword scrollbar_v_draw = #aScrollbar_v_draw; |
36 | dword scrollbar_v_mouse = #aScrollbar_v_mouse; |
||
37 | dword scrollbar_h_draw = #aScrollbar_h_draw; |
||
38 | dword scrollbar_h_mouse = #aScrollbar_h_mouse; |
||
39 | dword version_scrollbar = #aVersion_scrollbar; |
||
40 | |||
3363 | leency | 41 | dword PathShow_prepare = #aPathShow_prepare; |
42 | dword PathShow_draw = #aPathShow_draw; |
||
4674 | leency | 43 | |
44 | dword progressbar_draw = #aProgressbar_draw; |
||
45 | dword progressbar_progress = #aProgressbar_progress; |
||
46 | |||
5416 | punk_joker | 47 | dword check_box_draw = #aCheck_box_draw; |
48 | dword check_box_mouse = #aCheck_box_mouse; |
||
49 | dword version_ch = #aVersion_ch; |
||
50 | |||
5444 | leency | 51 | dword frame_draw = #aFrame_draw; |
52 | |||
3839 | Asper | 53 | $DD 2 dup 0 |
3363 | leency | 54 | |
5520 | leency | 55 | char aEdit_box_draw [] = "edit_box"; |
5444 | leency | 56 | char aEdit_box_key [] = "edit_box_key"; |
57 | char aEdit_box_mouse[] = "edit_box_mouse"; |
||
58 | char aVersion_ed [] = "version_ed"; |
||
3107 | leency | 59 | |
5611 | punk_joker | 60 | char aMenu_bar_draw [] = "menu_bar_draw"; |
61 | char aMenu_bar_activate[] = "menu_bar_activate"; |
||
62 | char aMenu_bar_mouse [] = "menu_bar_mouse"; |
||
63 | char aVersion_menu_bar [] = "version_menu_bar"; |
||
64 | |||
5444 | leency | 65 | char aboxlib_init[] = "lib_init"; |
66 | char aScrollbar_v_draw [] = "scrollbar_v_draw"; |
||
67 | char aScrollbar_v_mouse[] = "scrollbar_v_mouse"; |
||
68 | char aScrollbar_h_draw [] = "scrollbar_h_draw"; |
||
69 | char aScrollbar_h_mouse[] = "scrollbar_h_mouse"; |
||
70 | char aVersion_scrollbar[] = "version_scrollbar"; |
||
3107 | leency | 71 | |
5444 | leency | 72 | char aCheck_box_draw [] = "check_box_draw2"; |
73 | char aCheck_box_mouse [] = "check_box_mouse2"; |
||
74 | char aVersion_ch [] = "version_ch2"; |
||
3107 | leency | 75 | |
5444 | leency | 76 | char aOption_box_draw [] = "option_box_draw"; |
77 | char aOption_box_mouse [] = "option_box_mouse"; |
||
78 | char aVersion_op [] = "version_op" ; |
||
3107 | leency | 79 | |
5444 | leency | 80 | char aPathShow_prepare [] = "PathShow_prepare"; |
81 | char aPathShow_draw [] = "PathShow_draw"; |
||
3107 | leency | 82 | |
5444 | leency | 83 | char aProgressbar_draw [] = "progressbar_draw"; |
84 | char aProgressbar_progress[] = "progressbar_progress"; |
||
3363 | leency | 85 | |
5444 | leency | 86 | char aFrame_draw[] = "frame_draw"; |
4674 | leency | 87 | |
5444 | leency | 88 | |
3363 | leency | 89 | struct PathShow_data |
90 | { |
||
5444 | leency | 91 | dword type; |
92 | word start_y, |
||
93 | start_x, |
||
94 | font_size_x, // 6 - for font 0, 8 - for font 1 |
||
95 | area_size_x; |
||
96 | dword font_number, // 0 - monospace, 1 - variable |
||
97 | background_flag, |
||
98 | font_color, |
||
99 | background_color, |
||
100 | text_pointer, |
||
101 | work_area_pointer, |
||
102 | temp_text_length; |
||
3363 | leency | 103 | }; |
104 | /* |
||
105 | char temp[128]; |
||
106 | PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0}; |
||
107 | PathShow_prepare stdcall(#PathShow); |
||
108 | PathShow_draw stdcall(#PathShow); |
||
109 | */ |
||
110 | |||
5611 | punk_joker | 111 | struct menu_data |
112 | { |
||
113 | dword type; |
||
114 | |||
115 | word size_x; |
||
116 | word start_x; |
||
117 | |||
118 | word size_y; |
||
119 | word start_y; |
||
120 | dword text_pointer; |
||
121 | dword pos_pointer; |
||
122 | dword text_end; |
||
123 | dword mouse_pos; |
||
124 | dword mouse_keys; |
||
125 | |||
126 | word size_x1; |
||
127 | word start_x1; |
||
128 | |||
129 | word size_y1; |
||
130 | word start_y1; |
||
131 | dword bckg_col; |
||
132 | dword frnt_col; |
||
133 | dword menu_col; |
||
134 | dword select; |
||
135 | dword out_select; |
||
136 | dword buf_adress; |
||
137 | dword procinfo; |
||
138 | dword click; |
||
139 | dword cursor; |
||
140 | dword cursor_old; |
||
141 | dword interval; |
||
142 | dword cursor_max; |
||
143 | dword extended_key; |
||
144 | dword menu_sel_col; |
||
145 | dword bckg_text_col; |
||
146 | dword frnt_text_col; |
||
147 | dword mouse_keys_old; |
||
148 | dword font_height; |
||
149 | dword cursor_out; |
||
150 | dword get_mouse_flag; |
||
151 | }; |
||
3363 | leency | 152 | |
3107 | leency | 153 | struct edit_box{ |
154 | dword width, left, top, color, shift_color, focus_border_color, blur_border_color, |
||
155 | text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old; |
||
156 | }; |
||
157 | |||
5444 | leency | 158 | struct checkbox2 |
159 | { |
||
160 | dword |
||
161 | left_s, |
||
162 | top_s, |
||
163 | ch_text_margin, |
||
164 | color, |
||
165 | border_color, |
||
166 | text_color, |
||
167 | text, |
||
168 | flags, |
||
169 | size_of_str; |
||
5416 | punk_joker | 170 | }; |
171 | |||
172 | //flags for checkbox2 |
||
173 | #define CH_FLAG_EN 10b |
||
174 | #define CH_FLAG_TOP 0x0 |
||
175 | #define CH_FLAG_MIDDLE 100b |
||
176 | #define CH_FLAG_BOTTOM 1000b |
||
177 | |||
3107 | leency | 178 | struct scroll_bar |
179 | { |
||
5444 | leency | 180 | word size_x, |
181 | start_x, |
||
182 | size_y, |
||
183 | start_y; |
||
184 | dword btn_height, |
||
185 | type, |
||
186 | max_area, |
||
187 | cur_area, |
||
188 | position, |
||
189 | bckg_col, |
||
190 | frnt_col, |
||
191 | line_col, |
||
192 | redraw; |
||
193 | word delta, |
||
194 | delta2, |
||
195 | r_size_x, |
||
196 | r_start_x, |
||
197 | r_size_y, |
||
198 | r_start_y; |
||
199 | dword m_pos, |
||
200 | m_pos_2, |
||
201 | m_keys, |
||
202 | run_size, |
||
203 | position2, |
||
204 | work_size, |
||
205 | all_redraw, |
||
206 | ar_offset; |
||
4674 | leency | 207 | }; |
208 | |||
5444 | leency | 209 | struct progress_bar |
4674 | leency | 210 | { |
5444 | leency | 211 | dword |
212 | value, |
||
213 | left, |
||
214 | top, |
||
215 | width, |
||
216 | height, |
||
217 | style, |
||
218 | min, |
||
219 | max, |
||
220 | back_color, |
||
221 | progress_color, |
||
222 | frame_color; |
||
223 | }; |
||
224 | |||
225 | struct frame |
||
226 | { |
||
227 | dword type; |
||
228 | word size_x; |
||
229 | word start_x; |
||
230 | word size_y; |
||
231 | word start_y; |
||
232 | dword ext_col; |
||
233 | dword int_col; |
||
234 | dword draw_text_flag; // 0-not,1-yes |
||
235 | dword text_pointer; |
||
236 | dword text_position; // 0-up,1-bottom |
||
237 | dword font_number; // 0-monospace,1-variable |
||
238 | dword font_size_y; |
||
239 | dword font_color; |
||
240 | dword font_backgr_color; |
||
5598 | pavelyakov | 241 | }; |
242 | |||
243 | #endif |