Rev 1285 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1277 | IgorA | 1 | |
2 | |||
3 |
|
||
4 | |||
5 | |||
6 | body |
||
7 | { |
||
8 | font-size: 15px; |
||
9 | font-family: "Bookman Old Style"; |
||
10 | color: black; |
||
11 | text-align: justify; |
||
12 | } |
||
13 | h1 { color: green; font-size: 23px; } |
||
14 | h2 { color: green; font-size: 21px; } |
||
15 | h3 { color: green; font-size: 19px; } |
||
16 | h4 { color: #803f00; font-size: 17px; } |
||
17 | i { color: #0099cc; } |
||
18 | b { color: #0099cc; } |
||
19 | p { |
||
20 | text-indent: 1em; |
||
21 | margin-top: 3px; |
||
22 | margin-bottom: 2px; |
||
23 | margin-left: 0px; |
||
24 | margin-right: 0px; |
||
25 | } |
||
26 | ol, ul, dl{ |
||
27 | margin-top: 3px; |
||
28 | margin-bottom: 2px; |
||
29 | } |
||
30 | pre |
||
31 | { |
||
32 | padding: 2px; |
||
33 | padding-left: 20px; |
||
34 | margin-top: 5px; |
||
35 | margin-bottom: 5px; |
||
36 | margin-left: 0px; |
||
37 | margin-right: 0px; |
||
38 | font-family: "Courier New"; |
||
39 | font-size: 15px; |
||
40 | color: #004000; |
||
41 | background-color: #ffd0ff; |
||
42 | } |
||
43 | table { font-size: 15px; } |
||
44 | |||
45 | |||
46 | |||
47 |
|
||
1283 | IgorA | 48 | |
49 | |||
1277 | IgorA | 50 | |
1285 | IgorA | 51 | |
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
1277 | IgorA | 60 | |
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
1285 | IgorA | 69 | |
70 | |||
1277 | IgorA | 71 | |
72 | |||
73 | |||
1303 | IgorA | 74 | |
75 | |||
1277 | IgorA | 76 | |
77 | |||
1283 | IgorA | 78 | |
79 | |||
1277 | IgorA | 80 | |
1285 | IgorA | 81 |
|
1277 | IgorA | 82 |
|
83 | |||
84 | |||
1283 | IgorA | 85 |
|
1277 | IgorA | 86 | |
1285 | IgorA | 87 |
|
1277 | IgorA | 88 |
|
1285 | IgorA | 89 |
|
1283 | IgorA | 90 |
|
1285 | IgorA | 91 | |
92 |
|
||
1283 | IgorA | 93 |
|
1285 | IgorA | 94 | |
95 |
|
||
1303 | IgorA | 96 |
|
97 | Кнопки, которые не доступны если есть стиль tl_key_no_edit: [Enter], [Delete], [←], [→]. |
||
98 | Всегда доступны: [↑], [↓], [Page Up], [Page Dn], [Space]. |
||
99 | Функция проверяет включен ли режим scan кодов, и в случае необходимости сама преобразует коды. |
||
1285 | IgorA | 100 | |
101 |
|
||
1277 | IgorA | 102 |
|
1285 | IgorA | 103 | |
104 |
|
||
1277 | IgorA | 105 |
|
1285 | IgorA | 106 | |
107 |
|
||
1277 | IgorA | 108 |
|
1283 | IgorA | 109 | |
1285 | IgorA | 110 |
|
111 |
|
||
112 | |||
113 |
|
||
1283 | IgorA | 114 |
|
115 | push dword tree1 |
||
116 | push dword 0x10002 |
||
117 | push dword data_buffer |
||
118 | call dword[tl_node_add] |
||
1303 | IgorA | 119 |
|
120 | 0x10002 - параметры узла (старшие байты 0x0001 - индекс иконки, отображаемой возле узла; меньший байт 0x02 - уровень вложености узла); data_buffer - указатель на дынные, добавляемые в узел. |
||
1283 | IgorA | 121 | |
1277 | IgorA | 122 |
|
123 |
|
||
124 |
|
||
125 |
|
||
126 |
|
||
127 |
|
||
128 |
|
||
129 |
|
||
130 |
|
||
131 |
|
||
132 |
|
||
133 |
|
||
134 |
|
||
135 |
|
||
136 | то ничего не делает. Автоматически перерисовывает окно если состояние узла изменилось. |
||
137 |
|
||
138 |
|
||
139 |
|
||
140 |
|
||
1283 | IgorA | 141 | |
1285 | IgorA | 142 |
|
143 |
|
||
144 | push dword tree1 |
||
145 | call dword[tl_node_move_up] ;переместить узел |
||
146 |
|
||
147 | |||
148 |
|
||
149 |
|
||
150 | push dword tree1 |
||
151 | call dword[tl_node_move_down] ;переместить узел |
||
152 |
|
||
153 | |||
1277 | IgorA | 154 |
|
155 |
|
||
156 |
|
||
1283 | IgorA | 157 |
|
1277 | IgorA | 158 |
|
159 |
|
||
1283 | IgorA | 160 | |
1285 | IgorA | 161 |
|
1283 | IgorA | 162 | |
1303 | IgorA | 163 |
|
164 |
|
||
165 | MEM_SIZE equ 5000 |
||
166 | node_data rb MEM_SIZE |
||
167 | ......... |
||
168 | push dword tree1 |
||
169 | push dword 0 |
||
170 | push dword node_data |
||
171 | push dword MEM_SIZE |
||
172 | call dword[tl_save_mem] |
||
173 | pop eax |
||
174 |
|
||
175 | 0 - опция сохранения в начало блока памяти (если = 1, то добавляет элемент после других сохраненных ранее); |
||
176 | node_data - указатель на блок памяти; |
||
177 | MEM_SIZE - размер блока памяти для сохранения. |
||
178 | В регистр eax пишется значение 0 или записываются коды ошибок сохранения. |
||
179 | |||
180 |
|
||
181 |
|
||
182 | MEM_SIZE equ 5000 |
||
183 | node_data rb MEM_SIZE |
||
184 | ......... |
||
185 | push dword tree1 |
||
186 | push dword 0 |
||
187 | push dword node_data |
||
188 | push dword MEM_SIZE |
||
189 | call dword[tl_load_mem] |
||
190 | pop eax |
||
191 |
|
||
192 | 0 - индекс считываемого элемента; |
||
193 | node_data - указатель на блок памяти; |
||
194 | MEM_SIZE - размер блока памяти для сохранения. |
||
195 | В регистр eax пишется значение 0 или записываются коды ошибок считывания. |
||
196 | |||
1277 | IgorA | 197 |
|
198 |
|
||
199 | |||
1283 | IgorA | 200 |
|
1277 | IgorA | 201 | struc tree_list info_size,info_max_count,style, img_cx,img_cy,\ |
202 | col_bkg,col_zag,col_txt, box_l,box_t,box_w,box_h, capt_cy,info_capt_offs,\ |
||
1303 | IgorA | 203 | info_capt_len,el_focus, p_scrol,p_sb_draw,on_press { |
1277 | IgorA | 204 | .data_info dd 0 |
205 | .info_size dw info_size |
||
206 | .info_max_count dd info_max_count |
||
207 | .style dd style |
||
208 | .data_nodes dd 0 |
||
209 | .data_img dd 0 |
||
210 | .img_cx dw img_cx |
||
211 | .img_cy dw img_cy |
||
212 | .data_img_sys dd 0 |
||
213 | .ch_tim dd 0 |
||
214 | .ls_tim dd 0 |
||
215 | .tim_undo dd 0 |
||
216 | .cur_pos dd 0 |
||
217 | .col_bkg dd col_bkg |
||
218 | .col_zag dd col_zag |
||
219 | .col_txt dd col_txt |
||
1303 | IgorA | 220 | .box_left dd box_l |
1277 | IgorA | 221 | .box_top dd box_t |
222 | .box_width dd box_w |
||
223 | .box_height dd box_h |
||
224 | .capt_cy dw capt_cy |
||
1303 | IgorA | 225 | .info_capt_offs dw info_capt_offs |
226 | .info_capt_len dw info_capt_len |
||
227 | .el_focus dd el_focus |
||
228 | .p_scrol dd p_scrol |
||
229 | .p_sb_draw dd p_sb_draw |
||
1277 | IgorA | 230 | .on_activate dd 0 |
1283 | IgorA | 231 | .on_press dd on_press |
1277 | IgorA | 232 | } |
1303 | IgorA | 233 |
|
1283 | IgorA | 234 |
|
235 |
|
||
236 |
|
||
1277 | IgorA | 237 |
|
238 |
|
||
1283 | IgorA | 239 |
|
1303 | IgorA | 240 |
|
1277 | IgorA | 241 |
|
242 |
|
||
1303 | IgorA | 243 |
|
1277 | IgorA | 244 | |
1283 | IgorA | 245 |
|
246 | tree1 tree_list 24,500, tl_draw_par_line+tl_list_box_mode, 16,16,\ |
||
247 | 0x8080ff,0x0000ff,0xffffff, 10,35,200-16,285, 14,4,\ |
||
1303 | IgorA | 248 | 0,el_focus, wScr,scrollbar_ver_draw,fun_on_enter |
1283 | IgorA | 249 | |
250 |
|
||
1277 | IgorA | 251 |
|
252 |
|
||
253 |
|
||
254 |
|
||
255 |
|
||
256 |
|
||
257 | |||
1283 | IgorA | 258 | |
1303 | IgorA | 259 |
|
1277 | IgorA | 260 | |
261 |