Rev 5520 | Rev 5611 | 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 | |
16 | dword box_lib_init = #aboxlib_init; |
||
17 | |||
18 | dword edit_box_draw = #aEdit_box_draw; |
||
19 | dword edit_box_key = #aEdit_box_key; |
||
20 | dword edit_box_mouse = #aEdit_box_mouse; |
||
21 | dword version_ed = #aVersion_ed; |
||
22 | |||
23 | dword scrollbar_v_draw = #aScrollbar_v_draw; |
||
24 | dword scrollbar_v_mouse = #aScrollbar_v_mouse; |
||
25 | dword scrollbar_h_draw = #aScrollbar_h_draw; |
||
26 | dword scrollbar_h_mouse = #aScrollbar_h_mouse; |
||
27 | dword version_scrollbar = #aVersion_scrollbar; |
||
28 | |||
3363 | leency | 29 | dword PathShow_prepare = #aPathShow_prepare; |
30 | dword PathShow_draw = #aPathShow_draw; |
||
4674 | leency | 31 | |
32 | dword progressbar_draw = #aProgressbar_draw; |
||
33 | dword progressbar_progress = #aProgressbar_progress; |
||
34 | |||
5416 | punk_joker | 35 | dword check_box_draw = #aCheck_box_draw; |
36 | dword check_box_mouse = #aCheck_box_mouse; |
||
37 | dword version_ch = #aVersion_ch; |
||
38 | |||
5444 | leency | 39 | dword frame_draw = #aFrame_draw; |
40 | |||
3839 | Asper | 41 | $DD 2 dup 0 |
3363 | leency | 42 | |
5520 | leency | 43 | char aEdit_box_draw [] = "edit_box"; |
5444 | leency | 44 | char aEdit_box_key [] = "edit_box_key"; |
45 | char aEdit_box_mouse[] = "edit_box_mouse"; |
||
46 | char aVersion_ed [] = "version_ed"; |
||
3107 | leency | 47 | |
5444 | leency | 48 | char aboxlib_init[] = "lib_init"; |
49 | char aScrollbar_v_draw [] = "scrollbar_v_draw"; |
||
50 | char aScrollbar_v_mouse[] = "scrollbar_v_mouse"; |
||
51 | char aScrollbar_h_draw [] = "scrollbar_h_draw"; |
||
52 | char aScrollbar_h_mouse[] = "scrollbar_h_mouse"; |
||
53 | char aVersion_scrollbar[] = "version_scrollbar"; |
||
3107 | leency | 54 | |
5444 | leency | 55 | char aCheck_box_draw [] = "check_box_draw2"; |
56 | char aCheck_box_mouse [] = "check_box_mouse2"; |
||
57 | char aVersion_ch [] = "version_ch2"; |
||
3107 | leency | 58 | |
5444 | leency | 59 | char aOption_box_draw [] = "option_box_draw"; |
60 | char aOption_box_mouse [] = "option_box_mouse"; |
||
61 | char aVersion_op [] = "version_op" ; |
||
3107 | leency | 62 | |
5444 | leency | 63 | char aPathShow_prepare [] = "PathShow_prepare"; |
64 | char aPathShow_draw [] = "PathShow_draw"; |
||
3107 | leency | 65 | |
5444 | leency | 66 | char aProgressbar_draw [] = "progressbar_draw"; |
67 | char aProgressbar_progress[] = "progressbar_progress"; |
||
3363 | leency | 68 | |
5444 | leency | 69 | char aFrame_draw[] = "frame_draw"; |
4674 | leency | 70 | |
5444 | leency | 71 | |
3363 | leency | 72 | struct PathShow_data |
73 | { |
||
5444 | leency | 74 | dword type; |
75 | word start_y, |
||
76 | start_x, |
||
77 | font_size_x, // 6 - for font 0, 8 - for font 1 |
||
78 | area_size_x; |
||
79 | dword font_number, // 0 - monospace, 1 - variable |
||
80 | background_flag, |
||
81 | font_color, |
||
82 | background_color, |
||
83 | text_pointer, |
||
84 | work_area_pointer, |
||
85 | temp_text_length; |
||
3363 | leency | 86 | }; |
87 | /* |
||
88 | char temp[128]; |
||
89 | PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0}; |
||
90 | PathShow_prepare stdcall(#PathShow); |
||
91 | PathShow_draw stdcall(#PathShow); |
||
92 | */ |
||
93 | |||
94 | |||
3107 | leency | 95 | struct edit_box{ |
96 | dword width, left, top, color, shift_color, focus_border_color, blur_border_color, |
||
97 | text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old; |
||
98 | }; |
||
99 | |||
5444 | leency | 100 | struct checkbox2 |
101 | { |
||
102 | dword |
||
103 | left_s, |
||
104 | top_s, |
||
105 | ch_text_margin, |
||
106 | color, |
||
107 | border_color, |
||
108 | text_color, |
||
109 | text, |
||
110 | flags, |
||
111 | size_of_str; |
||
5416 | punk_joker | 112 | }; |
113 | |||
114 | //flags for checkbox2 |
||
115 | #define CH_FLAG_EN 10b |
||
116 | #define CH_FLAG_TOP 0x0 |
||
117 | #define CH_FLAG_MIDDLE 100b |
||
118 | #define CH_FLAG_BOTTOM 1000b |
||
119 | |||
3107 | leency | 120 | struct scroll_bar |
121 | { |
||
5444 | leency | 122 | word size_x, |
123 | start_x, |
||
124 | size_y, |
||
125 | start_y; |
||
126 | dword btn_height, |
||
127 | type, |
||
128 | max_area, |
||
129 | cur_area, |
||
130 | position, |
||
131 | bckg_col, |
||
132 | frnt_col, |
||
133 | line_col, |
||
134 | redraw; |
||
135 | word delta, |
||
136 | delta2, |
||
137 | r_size_x, |
||
138 | r_start_x, |
||
139 | r_size_y, |
||
140 | r_start_y; |
||
141 | dword m_pos, |
||
142 | m_pos_2, |
||
143 | m_keys, |
||
144 | run_size, |
||
145 | position2, |
||
146 | work_size, |
||
147 | all_redraw, |
||
148 | ar_offset; |
||
4674 | leency | 149 | }; |
150 | |||
5444 | leency | 151 | struct progress_bar |
4674 | leency | 152 | { |
5444 | leency | 153 | dword |
154 | value, |
||
155 | left, |
||
156 | top, |
||
157 | width, |
||
158 | height, |
||
159 | style, |
||
160 | min, |
||
161 | max, |
||
162 | back_color, |
||
163 | progress_color, |
||
164 | frame_color; |
||
165 | }; |
||
166 | |||
167 | struct frame |
||
168 | { |
||
169 | dword type; |
||
170 | word size_x; |
||
171 | word start_x; |
||
172 | word size_y; |
||
173 | word start_y; |
||
174 | dword ext_col; |
||
175 | dword int_col; |
||
176 | dword draw_text_flag; // 0-not,1-yes |
||
177 | dword text_pointer; |
||
178 | dword text_position; // 0-up,1-bottom |
||
179 | dword font_number; // 0-monospace,1-variable |
||
180 | dword font_size_y; |
||
181 | dword font_color; |
||
182 | dword font_backgr_color; |
||
5598 | pavelyakov | 183 | }; |
184 | |||
185 | #endif |