Subversion Repositories Kolibri OS

Rev

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

Rev 109 Rev 131
Line 17... Line 17...
17
        dd     I_END        ; size of image
17
        dd     I_END        ; size of image
18
        dd     0x5000       ; memory for app
18
        dd     0x5000      ; memory for app
19
        dd     0x4ff0       ; esp
19
        dd     0x4ff0       ; esp
20
        dd     0x0 , 0x0    ; I_Param , I_Icon
20
        dd     0x0 , 0x0        ; I_Param , I_Icon
Line 21... Line -...
21
   
-
 
22
include 'lang.inc'   
21
   
23
include 'macros.inc'
22
include 'macros.inc'
Line 24... Line 23...
24
START:    ; start of execution
23
START:    ; start of execution
25
   
24
   
Line 202... Line 201...
202
   
201
   
203
       ; DRAW WINDOW
202
       ; DRAW WINDOW
204
    mov  eax,0      ; function 0 : define and draw window
203
    mov  eax,0      ; function 0 : define and draw window
205
    mov  ebx,100*65536+400    ; [x start] *65536 + [x size]
204
    mov  ebx,100*65536+400    ; [x start] *65536 + [x size]
206
    mov  ecx,100*65536+200    ; [y start] *65536 + [y size]
205
    mov  ecx,100*65536+200    ; [y start] *65536 + [y size]
207
    mov  edx,0x030020C0;0x00000040 ; color of work area RRGGBB,8->color glide
206
    mov  edx,0x020020C0;0x00000040 ; color of work area RRGGBB,8->color glide
208
    mov  esi,0x805080d0     ; color of grab bar RRGGBB,8->color glide
207
    mov  esi,0x805080d0     ; color of grab bar RRGGBB,8->color glide
209
    mov  edi,0x00ffffff     ; color of frames RRGGBB
208
    mov  edi,0x00ffffff     ; color of frames RRGGBB
Line 210... Line 209...
210
    int  0x40
209
    int  0x40
211
   
210
   
Line -... Line 211...
-
 
211
       ; WINDOW LABEL
-
 
212
     call print_my_title
-
 
213
   
-
 
214
       ; CLOSE BUTTON
-
 
215
    mov  eax,8      ; function 8 : define and draw button
-
 
216
    mov  ebx,(400-19)*65536+12    ; [x start] *65536 + [x size]
-
 
217
    mov  ecx,5*65536+12     ; [y start] *65536 + [y size]
Line 212... Line 218...
212
       ; WINDOW LABEL
218
    mov  edx,1      ; button id
213
     call print_my_title
219
    mov  esi,0x5599cc     ; button color RRGGBB
214
   
220
    int  0x40
215
          
221
   
Line 1014... Line 1020...
1014
        int  0x40
1020
        int  0x40
1015
        retn
1021
        retn
Line 1016... Line 1022...
1016
   
1022
   
1017
warning_loop:
1023
warning_loop:
1018
        mov  eax,5
1024
        mov  eax,5
1019
        mov ebx,10
1025
        mov ebx,13
1020
        int  0x40
1026
        int  0x40
1021
        mov eax,11
1027
        mov eax,11
1022
        int 40h
1028
        int 40h
1023
        cmp  eax,1      ; redraw request ?
1029
        cmp  eax,1      ; redraw request ?