Rev 7573 | Rev 7577 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7573 | Rev 7576 | ||
---|---|---|---|
Line 218... | Line 218... | ||
218 | ; edi = pointer to tedit struct |
218 | ; edi = pointer to tedit struct |
219 | align 4 |
219 | align 4 |
220 | proc draw_panel_find |
220 | proc draw_panel_find |
221 | cmp ted_panel_id,TED_PANEL_FIND ;if not panel |
221 | cmp ted_panel_id,TED_PANEL_FIND |
222 | jne @f |
222 | jne @f |
223 | push eax ebx ecx edx |
223 | call p_find |
- | 224 | jmp .end_f |
|
- | 225 | @@: |
|
- | 226 | cmp ted_panel_id,TED_PANEL_REPLACE |
|
- | 227 | jne @f |
|
- | 228 | call p_replace |
|
- | 229 | jmp .end_f |
|
- | 230 | @@: |
|
- | 231 | push eax edx |
|
- | 232 | mcall SF_DEFINE_BUTTON,,,0x80000000+201 |
|
- | 233 | mcall ,,,0x80000000+202 |
|
- | 234 | mcall ,,,0x80000000+203 |
|
- | 235 | pop edx eax |
|
- | 236 | .end_f: |
|
- | 237 | ret |
|
- | 238 | endp |
|
- | 239 | ||
- | 240 | align 4 |
|
- | 241 | p_find: |
|
- | 242 | push eax ebx ecx edx |
|
224 | mov ecx,ted_wnd_t |
243 | mov ecx,ted_wnd_t |
225 | shl ecx,16 |
244 | shl ecx,16 |
226 | mov cx,20 |
245 | mov cx,20 |
227 | mcall SF_DRAW_RECT,TED_PANEL_WIDTH,,[sc.work] |
246 | mcall SF_DRAW_RECT,TED_PANEL_WIDTH,,[sc.work] |
228 | 247 | ||
Line -... | Line 248... | ||
- | 248 | mov ecx,ted_wnd_t |
|
- | 249 | add cx,20+15 ; 15 - height text box |
|
- | 250 | shl ecx,16 |
|
- | 251 | add ecx,ted_wnd_h |
|
- | 252 | mov edx,ted_scr_h |
|
- | 253 | add cx,word[edx+sb_offs_size_y] |
|
- | 254 | sub cx,20+15-1 ; 15 - height text box |
|
- | 255 | mcall ,,,[sc.work] |
|
- | 256 | ||
- | 257 | stdcall [edit_box_draw], edit2 |
|
- | 258 | ||
- | 259 | mov ecx,ted_wnd_t |
|
- | 260 | shl ecx,16 |
|
- | 261 | add ecx,(93 shl 16)+20 |
|
- | 262 | mcall SF_DEFINE_BUTTON,(5 shl 16)+85,,201,[sc.work_button] ;201 - button id |
|
- | 263 | ||
229 | mov ebx,(30 shl 16)+25 |
264 | mov ebx,(23 shl 16)+7 |
230 | add ebx,ted_wnd_t |
265 | add ebx,ted_wnd_t |
231 | mov ecx,[sc.work_text] |
266 | mov ecx,[sc.work_text] |
232 | or ecx,0x80000000 |
267 | or ecx,0x80000000 |
233 | mcall SF_DRAW_TEXT,,,txtFindCapt |
268 | mcall SF_DRAW_TEXT,,,txtFindCapt |
Line -... | Line 269... | ||
- | 269 | ||
- | 270 | mov ecx,[sc.work_button_text] |
|
- | 271 | or ecx,0x80000000 |
|
- | 272 | mov ebx,(15 shl 16)+100 |
|
- | 273 | add ebx,ted_wnd_t |
|
- | 274 | mcall ,,,txtFindNext |
|
234 | 275 | ||
- | 276 | stdcall [option_box_draw], opt_grlist1 |
|
- | 277 | pop edx ecx ebx eax |
|
- | 278 | ret |
|
- | 279 | ||
- | 280 | align 4 |
|
- | 281 | p_replace: |
|
- | 282 | push eax ebx ecx edx |
|
- | 283 | mov ecx,ted_wnd_t |
|
- | 284 | shl ecx,16 |
|
- | 285 | mov cx,20 |
|
Line 235... | Line 286... | ||
235 | stdcall [edit_box_draw], edit2 |
286 | mcall SF_DRAW_RECT,TED_PANEL_WIDTH,,[sc.work] |
236 | 287 | ||
237 | mov ecx,ted_wnd_t |
288 | mov ecx,ted_wnd_t |
238 | add cx,20+15 ; 15 - height text box |
289 | add cx,20+15 ; 15 - height text box |
239 | shl ecx,16 |
290 | shl ecx,16 |
240 | add ecx,ted_wnd_h |
291 | add ecx,ted_wnd_h |
241 | mov edx,ted_scr_h |
292 | mov edx,ted_scr_h |
242 | add cx,word[edx+sb_offs_size_y] |
293 | add cx,word[edx+sb_offs_size_y] |
- | 294 | sub cx,20+15-1 ; 15 - height text box |
|
- | 295 | mcall ,,,[sc.work] |
|
- | 296 | ||
Line 243... | Line 297... | ||
243 | sub cx,20+15-1 ; 15 - height text box |
297 | stdcall [edit_box_draw], edit1 |
244 | mcall SF_DRAW_RECT,TED_PANEL_WIDTH,,[sc.work] |
- | |
245 | 298 | stdcall [edit_box_draw], edit2 |
|
246 | mov ecx,ted_wnd_t |
299 | |
247 | add cx,20+15+5 |
300 | mov ecx,ted_wnd_t |
Line 248... | Line 301... | ||
248 | shl ecx,16 |
301 | shl ecx,16 |
- | 302 | add ecx,(133 shl 16)+20 |
|
- | 303 | mcall SF_DEFINE_BUTTON,(5 shl 16)+95,,202,[sc.work_button] ;replace next |
|
249 | mov cx,20 |
304 | |
- | 305 | add ecx,(26 shl 16) |
|
250 | mcall SF_DEFINE_BUTTON,(5 shl 16)+85,,201,[sc.work_button] ;201 - button id |
306 | mcall ,,,203 ;replace all |
251 | 307 | ||
252 | mov ebx,(15 shl 16)+(20+15+10) |
308 | mov ebx,ted_wnd_t |
- | 309 | add ebx,(23 shl 16)+7 |
|
- | 310 | mov ecx,[sc.work_text] |
|
- | 311 | or ecx,0x80000000 |
|
- | 312 | mcall SF_DRAW_TEXT,,,txtFindCapt |
|
- | 313 | add ebx,93 |
|
- | 314 | mcall SF_DRAW_TEXT,,,txtRerlaceCapt |
|
- | 315 | ||
- | 316 | mov ecx,[sc.work_button_text] |
|
- | 317 | or ecx,0x80000000 |
|
- | 318 | mov ebx,ted_wnd_t |
|
- | 319 | add ebx,(15 shl 16)+140 |
|
- | 320 | mcall ,,,txtRerlace |
|
253 | add ebx,ted_wnd_t |
321 | add ebx,26 |
254 | mov ecx,[sc.work_text] |
- | |
255 | or ecx,0x80000000 |
- | |
256 | mcall SF_DRAW_TEXT,,,txtFindNext |
- | |
257 | pop edx ecx ebx eax |
- | |
258 | jmp .end_f |
- | |
259 | @@: |
- | |
260 | push eax edx |
- | |
261 | mov edx,201 |
- | |
262 | or edx,0x80000000 |
322 | mcall ,,,txtRerlaceAll |
263 | mcall SF_DEFINE_BUTTON |
- | |
Line 264... | Line 323... | ||
264 | pop edx eax |
323 | |
265 | .end_f: |
324 | stdcall [option_box_draw], opt_grlist1 |
266 | ret |
325 | pop edx ecx ebx eax |
267 | endp |
326 | ret |
Line 355... | Line 414... | ||
355 | stdcall [ted_init_scroll_bars], tedit0,2 |
414 | stdcall [ted_init_scroll_bars], tedit0,2 |
Line 356... | Line 415... | ||
356 | 415 | ||
Line 357... | Line 416... | ||
357 | mov eax,ted_wnd_t |
416 | mov eax,ted_wnd_t |
358 | mov edi,dword tree1 |
417 | mov edi,tree1 |
359 | mov tl_box_top,eax ;=ted_wnd_t |
418 | mov tl_box_top,eax ;=ted_wnd_t |
360 | add tl_box_top,20 |
419 | add tl_box_top,20 |
Line 361... | Line 420... | ||
361 | 420 | ||
362 | mov [edit2.top],eax ;=ted_wnd_t |
421 | mov [edit2.top],eax ;=ted_wnd_t |
363 | add dword[edit2.top],20 |
- | |
- | 422 | add dword[edit2.top],20 |
|
- | 423 | mov [edit1.top],eax ;=ted_wnd_t |
|
364 | 424 | add dword[edit1.top],113 |
|
365 | popad |
425 | popad |
Line 366... | Line 426... | ||
366 | ret |
426 | ret |
367 | 427 |