Subversion Repositories Kolibri OS

Rev

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

Rev 179 Rev 180
Line 797... Line 797...
797
    int  0x40
797
    int  0x40
Line 798... Line 798...
798
 
798
 
799
    mov  eax,14
799
    mov  eax,14
Line 800... Line -...
800
    int  0x40
-
 
801
 
-
 
802
    sub  eax,60*65536
-
 
803
    mov  ebx,eax
-
 
804
    mov  bx,40
800
    int  0x40
805
 
801
 
806
                                   ; DRAW WINDOW
802
                                      ; DRAW WINDOW
807
    mov  eax,0                     ; function 0 : define and draw window
803
    mov  eax,0                     ; function 0 : define and draw window
808
    mov  ebx,110*65536+555         ; [x start] *65536 + [x size]
804
    mov  ebx,110*65536+555         ; [x start] *65536 + [x size]
809
    mov  ecx,50*65536+255          ; [y start] *65536 + [y size]
805
    mov  ecx,50*65536+255          ; [y start] *65536 + [y size]
810
    mov  edx,[w_work]              ; color of work area RRGGBB,8->color
-
 
811
    or   edx,0x02000000
-
 
812
    mov  esi,[w_grab]              ; color of grab bar  RRGGBB,8->color gl
-
 
813
    or   esi,0x80000000
-
 
814
    mov  edi,[w_frame]             ; color of frames    RRGGBB
-
 
815
    int  0x40
806
    mov  edx,[w_work]              ; color of work area RRGGBB,8->color
816
 
-
 
817
                                   ; WINDOW LABEL
-
 
818
    mov  eax,4                     ; function 4 : write text to window
-
 
819
    mov  ebx,8*65536+7 ;8          ; [x start] *65536 + [y start]
-
 
820
    mov  ecx,[w_grab_text]         ; color of text RRGGBB
-
 
821
if lang eq ru
-
 
822
    or   ecx,0x10000000
-
 
823
end if
-
 
824
    mov  edx,labelt                ; pointer to text beginning
-
 
825
    mov  esi,labelt.size           ; text length
-
 
826
    int  0x40
-
 
827
                                   ; CLOSE BUTTON
-
 
828
    mov  eax,8                     ; function 8 : define and draw button
-
 
829
    mov  ebx,(555-19)*65536+12     ; [x start] *65536 + [x size]
-
 
830
    mov  ecx,4*65536+12            ; [y start] *65536 + [y size]
-
 
831
    mov  edx,1                     ; button id
807
    or   edx,0x13000000
Line 832... Line 808...
832
    mov  esi,[w_grab_button]       ; button color RRGGBB
808
    mov  edi,header                ; WINDOW LABEL
833
    int  0x40
809
    int  0x40
834
 
810
 
Line 842... Line 818...
842
  save_w  = (5*2+6*6)
818
  save_w  = (5*2+6*6)
843
  flat_w  = (5*2+6*4)
819
  flat_w  = (5*2+6*4)
844
  apply_w = (5*2+6*7)
820
  apply_w = (5*2+6*7)
845
end if
821
end if
Line 846... Line 822...
846
 
822
 
847
;   mov  eax,8                    ; FILENAME BUTTON
823
    mov  eax,8                    ; FILENAME BUTTON
848
    mov  ebx,5*65536+545
824
    mov  ebx,5*65536+545
849
    mov  ecx,212*65536+10
825
    mov  ecx,212*65536+10
-
 
826
    mov  edx,0x4000000B
850
    mov  edx,0x4000000B
827
    mov  esi,[w_grab_button]       ; button color RRGGBB
Line 851... Line 828...
851
    int  0x40
828
    int  0x40
852
 
829
 
853
;   mov  eax,8                    ; LOAD BUTTON
830
;   mov  eax,8                    ; LOAD BUTTON
Line 1032... Line 1009...
1032
 
1009
 
1033
lsz button_text,\
1010
lsz button_text,\
1034
    ru, '’¥ªáâ ­  ª­®¯ª¥',\
1011
    ru, '’¥ªáâ ­  ª­®¯ª¥',\
Line 1035... Line -...
1035
    en, 'Button text'
-
 
1036
 
-
 
1037
lsz labelt,\
-
 
1038
    ru, '€‘’Ž‰Š€ –‚…’Ž‚',\
-
 
1039
    en, 'DESKTOP COLOURS - DEFINE COLOR AND CLICK ON TARGET'
1012
    en, 'Button text'
Line -... Line 1013...
-
 
1013
 
-
 
1014
sz  default_skn, '/RD/1/DEFAULT.SKN',0
-
 
1015
 
-
 
1016
if lang eq ru
-
 
1017
  header db '€‘’Ž‰Š€ ŽŠŽ',0
-
 
1018
else
-
 
1019
  header db 'WINDOWS SETTINGS - DEFINE COLOR AND CLICK ON TARGET',0
1040
 
1020
end if
Line 1041... Line 1021...
1041
sz  default_skn, '/RD/1/DEFAULT.SKN',0
1021
 
Line 1042... Line 1022...
1042
 
1022