2009-02-13 10:04:33 +01:00
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-06-21 18:28:04 +02:00
|
|
|
|
use32 ; <20>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD>騩 32 ࠧ<>來<EFBFBD><EFA4AD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-01-03 22:03:06 +01:00
|
|
|
|
org 0 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20>ᥣ<EFBFBD><E1A5A3> 0
|
2013-06-21 18:28:04 +02:00
|
|
|
|
db 'MENUET01' ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䨪<EFBFBD><E4A8AA><EFBFBD><EFBFBD> <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> (8 <20><><EFBFBD><EFBFBD>)
|
2022-01-03 22:03:06 +01:00
|
|
|
|
dd 1 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ଠ<EFBFBD><E0ACA0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9>
|
2013-06-21 18:28:04 +02:00
|
|
|
|
dd start ; <20><><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD> <20><>।<EFBFBD><E0A5A4><EFBFBD> <20><>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; <20><> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd i_end ; ࠧ<><E0A0A7><EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd mem ; <20><>ꥬ <20>ᯮ<EFBFBD><E1AFAE><EFBFBD>㥬<EFBFBD><E3A5AC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20>⥪<EFBFBD> <20>⢥<EFBFBD><E2A2A5><EFBFBD> 0<>100 <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><E0AEA2><EFBFBD> <20><> <20>୨<EFBFBD><E0ADA8> 4 <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd mem ; <20><>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>⥪<EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>ࠧ<EFBFBD> <20><> ⥫<><E2A5AB> <20>ணࠬ<E0AEA3><E0A0AC>. <20><><EFBFBD>設<EFBFBD> <20>⥪<EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 㪠<><E3AAA0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2022-01-03 22:03:06 +01:00
|
|
|
|
dd 0 ; 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>ப<EFBFBD> <20> <20><>ࠬ<EFBFBD><E0A0AC>ࠬ<EFBFBD>.
|
2013-06-21 18:28:04 +02:00
|
|
|
|
dd cur_dir_path ; 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>, <20>㤠 <20><><EFBFBD><EFBFBD>頥<EFBFBD><E9A0A5><EFBFBD> <20><>ப<EFBFBD>, ᮤ<>ঠ<EFBFBD><E0A6A0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ணࠬ<E0AEA3><E0A0AC> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>᪠.
|
2009-06-03 19:40:06 +02:00
|
|
|
|
|
|
|
|
|
include '../../../../../macros.inc'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
include '../../trunk/box_lib.mac'
|
2022-01-03 22:03:06 +01:00
|
|
|
|
include '../../../../../KOSfuncs.inc'
|
|
|
|
|
include '../../../../../load_lib.mac'
|
2013-06-21 18:28:04 +02:00
|
|
|
|
@use_library ;use load lib macros
|
2009-02-13 10:04:33 +01:00
|
|
|
|
start:
|
2009-04-15 14:18:53 +02:00
|
|
|
|
;universal load library/librarys
|
2022-01-03 22:03:06 +01:00
|
|
|
|
sys_load_library library_name, library_path, system_path, myimport
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;if return code =-1 then exit, else nornary work
|
2013-06-21 18:28:04 +02:00
|
|
|
|
cmp eax,-1
|
|
|
|
|
jz exit
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_SET_EVENTS_MASK,0x80000027 ;<3B><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᮡ<>⨩
|
2013-06-21 18:28:04 +02:00
|
|
|
|
|
|
|
|
|
push dword check1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ⥪<><E2A5AA><EFBFBD> <20><><EFBFBD> Checkbox'<27><>
|
|
|
|
|
call [init_checkbox]
|
|
|
|
|
|
|
|
|
|
push dword check2
|
|
|
|
|
call [init_checkbox]
|
|
|
|
|
|
2009-02-13 10:04:33 +01:00
|
|
|
|
red_win:
|
2013-06-21 18:28:04 +02:00
|
|
|
|
call draw_window ;<3B><>ࢮ<EFBFBD><E0A2AE>砫쭮 <20><><EFBFBD><EFBFBD>室<EFBFBD><E5AEA4><EFBFBD> <20><><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2009-02-13 10:04:33 +01:00
|
|
|
|
align 4
|
2013-06-21 18:28:04 +02:00
|
|
|
|
still: ;<3B>᭮<EFBFBD><E1ADAE><EFBFBD><EFBFBD> <20><>ࠡ<EFBFBD><E0A0A1>稪
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_WAIT_EVENT
|
2013-06-21 18:28:04 +02:00
|
|
|
|
dec eax
|
|
|
|
|
jz red_win
|
|
|
|
|
dec eax
|
|
|
|
|
jz key
|
|
|
|
|
dec eax
|
|
|
|
|
jz button
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit2
|
|
|
|
|
call [edit_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword check2
|
|
|
|
|
call [check_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword Option_boxs
|
|
|
|
|
call [option_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword Option_boxs2
|
|
|
|
|
call [option_box_mouse]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
jmp still ;<3B> <20><>祣<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1ABA5><EFBFBD><EFBFBD><EFBFBD> <20><> ᭮<><E1ADAE> <20> 横<>
|
2009-02-13 10:04:33 +01:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
button:
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_GET_BUTTON
|
2013-06-21 18:28:04 +02:00
|
|
|
|
test ah,ah ;<3B> <20> ah 0, <20><> <20><>३<EFBFBD><E0A5A9> <20><> <20><>ࠡ<EFBFBD><E0A0A1>稪 ᮡ<>⨩ still
|
|
|
|
|
jz still
|
|
|
|
|
exit:
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_TERMINATE_PROCESS
|
2009-02-13 10:04:33 +01:00
|
|
|
|
key:
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_GET_KEY
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_key]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit2
|
|
|
|
|
call [edit_box_key]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
jmp still
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
|
|
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
|
|
|
align 4
|
2013-06-21 18:28:04 +02:00
|
|
|
|
draw_window: ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_REDRAW, SSF_BEGIN_DRAW
|
|
|
|
|
mcall SF_CREATE_WINDOW,(50*65536+390),(30*65536+200),0x33AABBCC,0x805080DD,hed
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword edit2
|
|
|
|
|
call [edit_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword check2
|
|
|
|
|
call [check_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword Option_boxs
|
|
|
|
|
call [option_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
push dword Option_boxs2
|
|
|
|
|
call [option_box_draw]
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2022-01-03 22:03:06 +01:00
|
|
|
|
mcall SF_REDRAW, SSF_END_DRAW
|
2013-06-21 18:28:04 +02:00
|
|
|
|
ret
|
2009-02-13 10:04:33 +01:00
|
|
|
|
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
|
|
|
;DATA <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;<3B>ᥣ<EFBFBD><E1A5A3> ᮡ<><EFBFBD><EEA4A0> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD>⥫쭮<E2A5AB><ECADAE><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
2013-06-21 18:28:04 +02:00
|
|
|
|
system_path db '/sys/lib/'
|
|
|
|
|
library_name db 'box_lib.obj',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
; <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧꥤ<E0A0A7><EAA5A4><EFBFBD><EFBFBD><EFBFBD>, <20><> <20>㦭<EFBFBD> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD> <><E1ABA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;system_path db '/sys/lib/box_lib.obj',0
|
|
|
|
|
;... <20><EFBFBD> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD>⥫쭮<E2A5AB><ECADAE><EFBFBD> <20><>㣨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
;library_name db 'box_lib.obj',0
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
myimport:
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
edit_box_draw dd aEdit_box_draw
|
|
|
|
|
edit_box_key dd aEdit_box_key
|
|
|
|
|
edit_box_mouse dd aEdit_box_mouse
|
|
|
|
|
version_ed dd aVersion_ed
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
init_checkbox dd aInit_checkbox
|
|
|
|
|
check_box_draw dd aCheck_box_draw
|
|
|
|
|
check_box_mouse dd aCheck_box_mouse
|
|
|
|
|
version_ch dd aVersion_ch
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
option_box_draw dd aOption_box_draw
|
|
|
|
|
option_box_mouse dd aOption_box_mouse
|
|
|
|
|
version_op dd aVersion_op
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2022-01-03 22:03:06 +01:00
|
|
|
|
dd 0,0
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2022-01-03 22:03:06 +01:00
|
|
|
|
aEdit_box_draw db 'edit_box_draw',0
|
2013-06-21 18:28:04 +02:00
|
|
|
|
aEdit_box_key db 'edit_box_key',0
|
|
|
|
|
aEdit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
aVersion_ed db 'version_ed',0
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
aInit_checkbox db 'init_checkbox2',0
|
|
|
|
|
aCheck_box_draw db 'check_box_draw2',0
|
|
|
|
|
aCheck_box_mouse db 'check_box_mouse2',0
|
|
|
|
|
aVersion_ch db 'version_ch2',0
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
|
|
aOption_box_draw db 'option_box_draw',0
|
|
|
|
|
aOption_box_mouse db 'option_box_mouse',0
|
2013-06-21 18:28:04 +02:00
|
|
|
|
aVersion_op db 'version_op',0
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
check1 check_box2 (10 shl 16 + 12),(45 shl 16 + 12),5,0x80AABBCC,0,0,check_text1,ch_flag_en
|
|
|
|
|
check2 check_box2 (10 shl 16 + 12),(60 shl 16 + 12),6,0x80AABBCC,0,0,check_text2
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2009-10-13 20:29:41 +02:00
|
|
|
|
edit1 edit_box 350,3,5,0xffffff,0x6f9480,0,0xAABBCC,0,308,hed,mouse_dd,ed_focus,hed_end-hed-1,hed_end-hed-1
|
|
|
|
|
edit2 edit_box 350,3,25,0xffffff,0x6a9480,0,0,0,99,ed_buffer,mouse_dd,ed_figure_only
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
op1 option_box option_group1,10,90,6,12,0xffffff,0,0,op_text.1,op_text.e1-op_text.1
|
|
|
|
|
op2 option_box option_group1,10,105,6,12,0xFFFFFF,0,0,op_text.2,op_text.e2-op_text.2
|
|
|
|
|
op3 option_box option_group1,10,120,6,12,0xffffff,0,0,op_text.3,op_text.e3-op_text.3
|
2009-02-13 10:04:33 +01:00
|
|
|
|
op11 option_box option_group2,120,90,6,12,0xffffff,0,0,op_text.1,op_text.e1-op_text.1
|
|
|
|
|
op12 option_box option_group2,120,105,6,12,0xffffff,0,0,op_text.2,op_text.e2-op_text.2
|
|
|
|
|
op13 option_box option_group2,120,120,6,12,0xffffff,0,0,op_text.3,op_text.e3-op_text.3
|
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
option_group1 dd op1 ;㪠<><E3AAA0>⥫<EFBFBD>, <20><><EFBFBD> <20>⮡ࠦ<E2AEA1><E0A0A6><EFBFBD><EFBFBD><EFBFBD> <20><> 㬮<>砭<EFBFBD><E7A0AD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20>뢮<EFBFBD><EBA2AE><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
option_group2 dd op12 ;<3B>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
Option_boxs dd op1,op2,op3,0
|
|
|
|
|
Option_boxs2 dd op11,op12,op13,0
|
|
|
|
|
|
|
|
|
|
hed db 'BOXs load from lib <Lrz> date 27.04.2009',0
|
2009-02-13 10:04:33 +01:00
|
|
|
|
hed_end:
|
2013-06-21 18:28:04 +02:00
|
|
|
|
|
2009-02-13 10:04:33 +01:00
|
|
|
|
rb 256
|
2013-06-21 18:28:04 +02:00
|
|
|
|
check_text1 db 'First checkbox',0
|
|
|
|
|
check_text2 db 'Second checkbox',0
|
|
|
|
|
|
|
|
|
|
op_text: ; <20><><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD>騩 ⥪<><E2A5AA> <20><><EFBFBD> Optionbox'<27>
|
|
|
|
|
.1 db 'Option_Box #1'
|
2009-02-13 10:04:33 +01:00
|
|
|
|
.e1:
|
|
|
|
|
.2 db 'Option_Box #2'
|
|
|
|
|
.e2:
|
|
|
|
|
.3 db 'Option_Box #3'
|
|
|
|
|
.e3:
|
2013-06-21 18:28:04 +02:00
|
|
|
|
ed_buffer rb 100
|
2009-04-15 14:18:53 +02:00
|
|
|
|
;-----------------------
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;sc system_colors
|
2009-10-13 20:29:41 +02:00
|
|
|
|
|
2013-06-21 18:28:04 +02:00
|
|
|
|
mouse_dd rd 1
|
|
|
|
|
p_info process_information
|
|
|
|
|
cur_dir_path rb 4096
|
|
|
|
|
library_path rb 4096
|
2009-02-13 10:04:33 +01:00
|
|
|
|
i_end:
|
|
|
|
|
rb 1024
|
|
|
|
|
mem:
|