Rev 1309 | 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 | |||
1328 | IgorA | 60 | |
61 | |||
62 | |||
1277 | IgorA | 63 | |
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
1285 | IgorA | 69 | |
70 | |||
1277 | IgorA | 71 | |
72 | |||
73 | |||
1303 | IgorA | 74 | |
75 | |||
1328 | IgorA | 76 | |
77 | |||
1277 | IgorA | 78 | |
1283 | IgorA | 79 | |
80 | |||
1277 | IgorA | 81 | |
1285 | IgorA | 82 |
|
1277 | IgorA | 83 |
|
84 | |||
1328 | IgorA | 85 |
|
1277 | IgorA | 86 | |
1283 | IgorA | 87 |
|
1277 | IgorA | 88 | |
1285 | IgorA | 89 |
|
1277 | IgorA | 90 |
|
1285 | IgorA | 91 |
|
1283 | IgorA | 92 |
|
1285 | IgorA | 93 | |
94 |
|
||
1283 | IgorA | 95 |
|
1285 | IgorA | 96 | |
97 |
|
||
1303 | IgorA | 98 |
|
99 | Кнопки, которые не доступны если есть стиль tl_key_no_edit: [Enter], [Delete], [←], [→]. |
||
100 | Всегда доступны: [↑], [↓], [Page Up], [Page Dn], [Space]. |
||
101 | Функция проверяет включен ли режим scan кодов, и в случае необходимости сама преобразует коды. |
||
1285 | IgorA | 102 | |
103 |
|
||
1277 | IgorA | 104 |
|
1285 | IgorA | 105 | |
106 |
|
||
1277 | IgorA | 107 |
|
1285 | IgorA | 108 | |
109 |
|
||
1277 | IgorA | 110 |
|
1283 | IgorA | 111 | |
1285 | IgorA | 112 |
|
113 |
|
||
114 | |||
115 |
|
||
1283 | IgorA | 116 |
|
117 | push dword tree1 |
||
118 | push dword 0x10002 |
||
119 | push dword data_buffer |
||
120 | call dword[tl_node_add] |
||
1303 | IgorA | 121 |
|
122 | 0x10002 - параметры узла (старшие байты 0x0001 - индекс иконки, отображаемой возле узла; меньший байт 0x02 - уровень вложености узла); data_buffer - указатель на дынные, добавляемые в узел. |
||
1283 | IgorA | 123 | |
1328 | IgorA | 124 |
|
1277 | IgorA | 125 |
|
1328 | IgorA | 126 | |
127 |
|
||
1277 | IgorA | 128 |
|
1328 | IgorA | 129 | |
130 |
|
||
1277 | IgorA | 131 |
|
1328 | IgorA | 132 | |
1277 | IgorA | 133 |
|
134 |
|
||
135 |
|
||
136 |
|
||
137 |
|
||
138 |
|
||
139 |
|
||
140 |
|
||
141 | то ничего не делает. Автоматически перерисовывает окно если состояние узла изменилось. |
||
142 |
|
||
143 |
|
||
144 |
|
||
145 |
|
||
1283 | IgorA | 146 | |
1285 | IgorA | 147 |
|
148 |
|
||
149 | push dword tree1 |
||
150 | call dword[tl_node_move_up] ;переместить узел |
||
151 |
|
||
152 | |||
153 |
|
||
154 |
|
||
155 | push dword tree1 |
||
156 | call dword[tl_node_move_down] ;переместить узел |
||
157 |
|
||
158 | |||
1277 | IgorA | 159 |
|
160 |
|
||
161 |
|
||
1283 | IgorA | 162 |
|
1277 | IgorA | 163 |
|
164 |
|
||
1283 | IgorA | 165 | |
1285 | IgorA | 166 |
|
1283 | IgorA | 167 | |
1303 | IgorA | 168 |
|
169 |
|
||
170 | MEM_SIZE equ 5000 |
||
171 | node_data rb MEM_SIZE |
||
172 | ......... |
||
173 | push dword tree1 |
||
174 | push dword 0 |
||
175 | push dword node_data |
||
176 | push dword MEM_SIZE |
||
177 | call dword[tl_save_mem] |
||
178 | pop eax |
||
179 |
|
||
180 | 0 - опция сохранения в начало блока памяти (если = 1, то добавляет элемент после других сохраненных ранее); |
||
181 | node_data - указатель на блок памяти; |
||
182 | MEM_SIZE - размер блока памяти для сохранения. |
||
183 | В регистр eax пишется значение 0 или записываются коды ошибок сохранения. |
||
184 | |||
185 |
|
||
186 |
|
||
187 | MEM_SIZE equ 5000 |
||
188 | node_data rb MEM_SIZE |
||
189 | ......... |
||
190 | push dword tree1 |
||
191 | push dword 0 |
||
192 | push dword node_data |
||
193 | push dword MEM_SIZE |
||
194 | call dword[tl_load_mem] |
||
195 | pop eax |
||
196 |
|
||
197 | 0 - индекс считываемого элемента; |
||
198 | node_data - указатель на блок памяти; |
||
199 | MEM_SIZE - размер блока памяти для сохранения. |
||
200 | В регистр eax пишется значение 0 или записываются коды ошибок считывания. |
||
201 | |||
1328 | IgorA | 202 |
|
203 |
|
||
204 | |||
205 |
|
||
1277 | IgorA | 206 |
|
207 | |||
1283 | IgorA | 208 |
|
1277 | IgorA | 209 | struc tree_list info_size,info_max_count,style, img_cx,img_cy,\ |
210 | col_bkg,col_zag,col_txt, box_l,box_t,box_w,box_h, capt_cy,info_capt_offs,\ |
||
1309 | IgorA | 211 | info_capt_len,el_focus, p_scrol,on_press { |
1277 | IgorA | 212 | .data_info dd 0 |
213 | .info_size dw info_size |
||
214 | .info_max_count dd info_max_count |
||
215 | .style dd style |
||
216 | .data_nodes dd 0 |
||
217 | .data_img dd 0 |
||
218 | .img_cx dw img_cx |
||
219 | .img_cy dw img_cy |
||
220 | .data_img_sys dd 0 |
||
221 | .ch_tim dd 0 |
||
222 | .ls_tim dd 0 |
||
223 | .tim_undo dd 0 |
||
224 | .cur_pos dd 0 |
||
225 | .col_bkg dd col_bkg |
||
226 | .col_zag dd col_zag |
||
227 | .col_txt dd col_txt |
||
1303 | IgorA | 228 | .box_left dd box_l |
1277 | IgorA | 229 | .box_top dd box_t |
230 | .box_width dd box_w |
||
231 | .box_height dd box_h |
||
232 | .capt_cy dw capt_cy |
||
1303 | IgorA | 233 | .info_capt_offs dw info_capt_offs |
234 | .info_capt_len dw info_capt_len |
||
235 | .el_focus dd el_focus |
||
236 | .p_scrol dd p_scrol |
||
1309 | IgorA | 237 | rb 4 |
1277 | IgorA | 238 | .on_activate dd 0 |
1283 | IgorA | 239 | .on_press dd on_press |
1277 | IgorA | 240 | } |
1328 | IgorA | 241 |
|
1283 | IgorA | 242 |
|
243 |
|
||
244 |
|
||
1277 | IgorA | 245 |
|
246 |
|
||
1283 | IgorA | 247 |
|
1303 | IgorA | 248 |
|
1277 | IgorA | 249 |
|
1303 | IgorA | 250 |
|
1277 | IgorA | 251 | |
1328 | IgorA | 252 | |
253 |
|
||
254 | |||
1283 | IgorA | 255 |
|
256 | tree1 tree_list 24,500, tl_draw_par_line+tl_list_box_mode, 16,16,\ |
||
1309 | IgorA | 257 | 0x8080ff,0x0000ff,0xffffff, 10,35,200-16,285, 14,4,0,\ |
258 | el_focus, wScr,fun_on_enter |
||
1283 | IgorA | 259 | |
260 |
|
||
1277 | IgorA | 261 |
|
262 |
|
||
263 |
|
||
264 |
|
||
265 |
|
||
266 |
|
||
267 | |||
1283 | IgorA | 268 | |
1328 | IgorA | 269 |
|
1277 | IgorA | 270 | |
271 |