Subversion Repositories Kolibri OS

Rev

Rev 6026 | Rev 7300 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6026 Rev 6098
Line 44... Line 44...
44
 
44
 
Line 45... Line 45...
45
        pusha
45
        pusha
46
 
46
 
47
        mcall   12, 1
47
        mcall   12, 1
48
        xor     eax, eax                        ; draw window
48
        xor     eax, eax                                ; draw window
49
        mov     ebx, WIN_MIN_X
49
        mov     ebx, WIN_MIN_X+10
50
        mov     ecx, WIN_MIN_Y
50
        mov     ecx, WIN_MIN_Y+30
51
        mov     edx, [colors.work]
51
        mov     edx, [colors.work]
52
        add     edx, 0x33000000
52
        add     edx, 0x33000000
53
        mov     edi, str_programname
-
 
Line 54... Line 53...
54
        mcall
53
        mov     edi, str_programname
55
        mcall   12, 2           
54
        mcall
Line 56... Line 55...
56
                        
55
                        
57
        test    [thread_info.wnd_state], 100b   ; skip if window is rolled up
56
        test    [thread_info.wnd_state], 100b           ; skip if window is rolled up
58
        jne     .exit
57
        jne     .exit
59
 
58
 
60
; calculate available space for textbox and coordinates for scrollbars
59
; calculate available space for textbox and coordinates for scrollbars
61
        mov     eax, [ysize]
60
        mov     eax, [ysize]
62
        sub     eax, TOP_Y + INPUTBOX_HEIGHT - 1   ;;;;
61
        sub     eax, TOP_Y + INPUTBOX_HEIGHT - 1
63
        mov     [scroll2.y_size], ax
62
        mov     [scroll2.y_size], ax
64
        mov     [scroll1.y_size], ax
63
        mov     [scroll1.y_size], ax
65
        sub     eax, 4 ;;;;
64
        sub     eax, 4
66
        xor     edx, edx
65
        xor     edx, edx
Line 142... Line 141...
142
 
141
 
143
; draw tabs
142
; draw tabs
Line 144... Line 143...
144
        call    draw_window_tabs
143
        call    draw_window_tabs
-
 
144
                
145
                
145
  .exit:
146
  .exit:
146
        mcall   12, 2