Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------------------------------
  2. ;---  ÄÀÍÍÛÅ ÏÐÎÃÐÀÌÌÛ  ----------------------------------------------
  3. ;---------------------------------------------------------------------
  4. header_1 db 'Box_lib Control Demo by Mario79',0
  5.  
  6. ok_btn db 'Ok',0
  7.        
  8. labelt3 db 'About program',0
  9. ;---------------------------------------------------------------------
  10. icons_file_name: db 'reload_16x16_8b.bmp',0
  11.  
  12. plugin_BMP_name db 'cnv_bmp.obj',0
  13. boxlib_name db 'box_lib.obj',0
  14.  
  15. system_dir db '/sys/lib/box_lib.obj',0
  16. ;---------------------------------------------------------------------
  17. fileinfo:
  18.      dd 5
  19.      dd 0
  20.      dd 0
  21.      dd 0
  22.      dd file_info
  23. string:
  24.     db 0
  25.         dd      file_name
  26.        
  27. plugin       dd 0
  28. ;---------------------------------------------------------------------
  29. ; not change this section!!!
  30. ; start section
  31. ;---------------------------------------------------------------------
  32. image_file     dd 0
  33. raw_pointer    dd 0
  34. return_code    dd 0
  35. img_size       dd 0
  36. deflate_unpack dd 0
  37. ;---------------------------------------------------------------------
  38. ; end section
  39. ;---------------------------------------------------------------------
  40.  
  41. ;---------------------------------------------------------------------
  42. align 4
  43. myimport:  
  44.  
  45. edit_box_draw   dd      aEdit_box_draw
  46. edit_box_key    dd      aEdit_box_key
  47. edit_box_mouse  dd      aEdit_box_mouse
  48. version_ed      dd      aVersion_ed
  49.  
  50. check_box_draw  dd      aCheck_box_draw
  51. check_box_mouse dd      aCheck_box_mouse
  52. version_ch      dd      aVersion_ch
  53.  
  54. option_box_draw  dd      aOption_box_draw
  55. option_box_mouse dd      aOption_box_mouse
  56. version_op       dd      aVersion_op
  57.  
  58. scrollbar_ver_draw              dd aScrollbar_ver_draw
  59. scrollbar_ver_mouse             dd aScrollbar_ver_mouse
  60. scrollbar_hor_draw              dd aScrollbar_hor_draw
  61. scrollbar_hor_mouse             dd aScrollbar_hor_mouse
  62. version_scrollbar               dd aVersion_scrollbar
  63.  
  64. dinamic_button_draw             dd      aDbutton_draw
  65. dinamic_button_mouse    dd      aDbutton_mouse
  66. version_dbutton                 dd      aVersion_dbutton
  67.  
  68. menu_bar_draw                   dd      aMenu_bar_draw
  69. menu_bar_mouse                  dd      aMenu_bar_mouse
  70. version_menu_bar                dd      aVersion_menu_bar
  71.                 dd      0
  72.                 dd      0
  73.  
  74. aEdit_box_draw  db 'edit_box',0
  75. aEdit_box_key   db 'edit_box_key',0
  76. aEdit_box_mouse db 'edit_box_mouse',0
  77. aVersion_ed     db 'version_ed',0
  78.  
  79. aCheck_box_draw  db 'check_box_draw',0
  80. aCheck_box_mouse db 'check_box_mouse',0
  81. aVersion_ch      db 'version_ch',0
  82.  
  83. aOption_box_draw  db 'option_box_draw',0
  84. aOption_box_mouse db 'option_box_mouse',0
  85. aVersion_op       db 'version_op',0
  86.  
  87. aScrollbar_ver_draw             db 'scrollbar_v_draw',0
  88. aScrollbar_ver_mouse    db 'scrollbar_v_mouse',0
  89. aScrollbar_hor_draw             db 'scrollbar_h_draw',0
  90. aScrollbar_hor_mouse    db 'scrollbar_h_mouse',0
  91. aVersion_scrollbar              db 'version_scrollbar',0
  92.  
  93. aDbutton_draw                   db 'dbutton_draw',0
  94. aDbutton_mouse                  db 'dbutton_mouse',0
  95. aVersion_dbutton                db 'version_dbutton',0
  96.  
  97. aMenu_bar_draw                  db 'menu_bar_draw',0
  98. aMenu_bar_mouse                 db 'menu_bar_mouse',0
  99. aVersion_menu_bar               db 'version_menu_bar',0
  100. ;---------------------------------------------------------------------
  101.  
  102. ;---------------------------------------------------------------------   
  103. align 4
  104. scroll_bar_data_vertical:
  105. .x:
  106. .size_x     dw 15 ;+0
  107. .start_x    dw 370 ;+2
  108. .y:
  109. .size_y     dw 300 ;+4
  110. .start_y    dw 50 ;+6
  111. .btn_high   dd 15 ;+8
  112. .type       dd 1  ;+12
  113. .max_area   dd 300  ;+16
  114. .cur_area   dd 30  ;+20
  115. .position   dd 140  ;+24
  116. .bckg_col   dd 0xeeeeee ;+28
  117. .frnt_col   dd 0xbbddff ;+32
  118. .line_col   dd 0  ;+36
  119. .redraw     dd 0  ;+40
  120. .delta      dw 0  ;+44
  121. .delta2     dw 0  ;+46
  122. .run_x:
  123. .r_size_x   dw 0  ;+48
  124. .r_start_x  dw 0  ;+50
  125. .run_y:
  126. .r_size_y   dw 0 ;+52
  127. .r_start_y  dw 0 ;+54
  128. .m_pos      dd 0 ;+56
  129. .m_pos_2    dd 0 ;+60
  130. .m_keys     dd 0 ;+64
  131. .run_size   dd 0 ;+68
  132. .position2  dd 0 ;+72
  133. .work_size  dd 0 ;+76
  134. .all_redraw dd 0 ;+80
  135. .ar_offset      dd 10 ;+84
  136. ;---------------------------------------------------------------------
  137. align 4
  138. scroll_bar_data_horizontal:
  139. .x:
  140. .size_x     dw 300  ;0 ;+0
  141. .start_x    dw 30   ;0 ;+2
  142. .y:
  143. .size_y     dw 15   ;0 ;+4
  144. .start_y    dw 370    ;0 ;+6
  145. .btn_high   dd 15 ;+8
  146. .type       dd 1  ;+12
  147. .max_area   dd 300  ;+16
  148. .cur_area   dd 30  ;+20
  149. .position   dd 140  ;+24
  150. .bckg_col   dd 0xeeeeee ;+28
  151. .frnt_col   dd 0xbbddff ;+32
  152. .line_col   dd 0  ;+36
  153. .redraw     dd 0  ;+40
  154. .delta      dw 0  ;+44
  155. .delta2     dw 0  ;+46
  156. .run_x:
  157. .r_size_x   dw 0  ;+48
  158. .r_start_x  dw 0  ;+50
  159. .run_y:
  160. .r_size_y   dw 0 ;+52
  161. .r_start_y  dw 0 ;+54
  162. .m_pos      dd 0 ;+56
  163. .m_pos_2    dd 0 ;+60
  164. .m_keys     dd 0 ;+64
  165. .run_size   dd 0 ;+68
  166. .position2  dd 0 ;+72
  167. .work_size  dd 0 ;+76
  168. .all_redraw dd 0 ;+80
  169. .ar_offset      dd 10 ;+84
  170. ;---------------------------------------------------------------------
  171. align 4
  172. menu_data_1:
  173. .type:                  dd 0   ;+0
  174. .x:
  175. .size_x                 dw 40  ;+4
  176. .start_x                dw 20   ;+6
  177. .y:
  178. .size_y                 dw 15   ;+8
  179. .start_y                dw 25  ;+10
  180. .text_pointer:  dd menu_text_area  ;0 ;+12
  181. .pos_pointer:   dd menu_text_area.1 ;0 ;+16
  182. .text_end               dd menu_text_area.end ;0 ;+20
  183. .mouse_pos              dd 0  ;+24
  184. .mouse_keys             dd 0  ;+28
  185. .x1:
  186. .size_x1                dw 40  ;+32
  187. .start_x1               dw 20   ;+34
  188. .y1:
  189. .size_y1                dw 100   ;+36
  190. .start_y1               dw 40  ;+38
  191. .bckg_col       dd 0xeeeeee ;+40
  192. .frnt_col       dd 0xff ;+44
  193. .menu_col       dd 0xffffff ;+48
  194. .select         dd 0 ;+52
  195. .out_select     dd 0 ;+56
  196. .buf_adress             dd 0 ;+60
  197. .procinfo               dd 0 ;+64
  198. .click                  dd 0 ;+68
  199. .cursor                 dd 0 ;+72
  200. .cursor_old             dd 0 ;+76
  201. .interval               dd 16 ;+80
  202. .cursor_max             dd 0 ;+84
  203. .extended_key   dd 0 ;+88
  204. .menu_sel_col   dd 0x00cc00 ;+92
  205. .bckg_text_col  dd 0 ; +96
  206. .frnt_text_col  dd 0xffffff ;+100
  207. .mouse_keys_old dd 0 ;+104
  208. .font_height    dd 8 ;+108
  209. .cursor_out             dd 0 ;+112
  210. .get_mouse_flag dd 0 ;+116
  211. ;-------------------------
  212. menu_text_area:
  213. db 'File',0
  214. .1:
  215. db 'Test1',0
  216. db 'Test2',0
  217. db 'Exit',0
  218. .end:
  219. db 0
  220. ;---------------------------------------------------------------------
  221. align 4
  222. menu_data_2:
  223. .type:                  dd 0   ;+0
  224. .x:
  225. .size_x                 dw 40  ;+4
  226. .start_x                dw 60   ;+6
  227. .y:
  228. .size_y                 dw 15   ;+8
  229. .start_y                dw 25  ;+10
  230. .text_pointer:  dd menu_text_area_2  ;0 ;+12
  231. .pos_pointer:   dd menu_text_area_2.1 ;0 ;+16
  232. .text_end               dd menu_text_area_2.end ;0 ;+20
  233. .mouse_pos              dd 0  ;+24
  234. .mouse_keys             dd 0  ;+28
  235. .x1:
  236. .size_x1                dw 50  ;+32
  237. .start_x1               dw 60   ;+34
  238. .y1:
  239. .size_y1                dw 100   ;+36
  240. .start_y1               dw 40  ;+38
  241. .bckg_col       dd 0xeeeeee ;+40
  242. .frnt_col       dd 0xff ;+44
  243. .menu_col       dd 0xffffff ;+48
  244. .select         dd 0 ;+52
  245. .out_select     dd 0 ;+56
  246. .buf_adress             dd 0 ;+60
  247. .procinfo               dd 0 ;+64
  248. .click                  dd 0 ;+68
  249. .cursor                 dd 0 ;+72
  250. .cursor_old             dd 0 ;+76
  251. .interval               dd 16 ;+80
  252. .cursor_max             dd 0 ;+84
  253. .extended_key   dd 0 ;+88
  254. .menu_sel_col   dd 0x00cc00 ;+92
  255. .bckg_text_col  dd 0 ; +96
  256. .frnt_text_col  dd 0xffffff ;+100
  257. .mouse_keys_old dd 0 ;+104
  258. .font_height    dd 8 ;+108
  259. .cursor_out             dd 0 ;+112
  260. .get_mouse_flag dd 0 ;+116
  261. ;------------------------
  262. menu_text_area_2:
  263. db 'Help',0
  264. .1:
  265. db 'Test1',0
  266. db 'About',0
  267. .end:
  268. db 0
  269. ;---------------------------------------------------------------------
  270. align 4
  271. dinamic_button_data_1:
  272. .type                   dd 0 ;+0
  273. .x:
  274. .size_x                 dw 20 ;+4
  275. .start_x                dw 150 ;+6
  276. .y:
  277. .size_y                 dw 20 ;+8
  278. .start_y                dw 25 ;+10
  279. .mouse_pos              dd 0 ;+12
  280. .mouse_keys             dd 0 ;+16
  281. .mouse_keys_old dd 0 ;+20
  282. .active_raw             dd 0 ;+24
  283. .passive_raw    dd 0 ;+28
  284. .click_raw              dd 0 ;+32
  285. .resolution_raw dd 0 ;+36
  286. .palette_raw    dd 0 ;+40
  287. .offset_raw             dd 0 ;+44
  288. .select                 dd 0 ;+48
  289. .click                  dd 0 ;+52
  290. ;---------------------------------------------------------------------
  291. align 4
  292. dinamic_button_data_2:
  293. .type                   dd 0 ;+0
  294. .x:
  295. .size_x                 dw 20 ;+4
  296. .start_x                dw 180 ;+6
  297. .y:
  298. .size_y                 dw 20 ;+8
  299. .start_y                dw 25 ;+10
  300. .mouse_pos              dd 0 ;+12
  301. .mouse_keys             dd 0 ;+16
  302. .mouse_keys_old dd 0 ;+20
  303. .active_raw             dd 0 ;+24
  304. .passive_raw    dd 0 ;+28
  305. .click_raw              dd 0 ;+32
  306. .resolution_raw dd 0 ;+36
  307. .palette_raw    dd 0 ;+40
  308. .offset_raw             dd 0 ;+44
  309. .select                 dd 0 ;+48
  310. .click                  dd 0 ;+52
  311. ;---------------------------------------------------------------------