Subversion Repositories Kolibri OS

Rev

Rev 8288 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------------------------------
  2. title:
  3.         db 'ColorDialog',0
  4.        
  5. history_text:
  6.         db ' History: ',0
  7.  
  8. communication_area      dd param
  9. ;---------------------------------------------------------------------
  10. align 4
  11. window_x:
  12. .x_size         dw 510
  13. .x_start        dw 10
  14. window_y:
  15. .y_size         dw 300
  16. .y_start        dw 10
  17. ;---------------------------------------------------------------------
  18. ;plugins_directory      db 'plugins/',0
  19. plugins_directory       db 0
  20.  
  21. system_dir_Boxlib       db '/sys/lib/box_lib.obj',0
  22.  
  23. align   4
  24. l_libs_start:
  25. library01       l_libs  system_dir_Boxlib+9,file_name,system_dir_Boxlib,\
  26. Box_lib_import,plugins_directory
  27.  
  28. end_l_libs:
  29. ;---------------------------------------------------------------------
  30. ;---------------------------------------------------------------------
  31. align   4
  32. Box_lib_import:
  33. ;init_lib       dd a_init
  34. ;version_lib    dd a_version
  35.  
  36. edit_box_draw           dd aEdit_box_draw
  37. edit_box_key            dd aEdit_box_key
  38. edit_box_mouse          dd aEdit_box_mouse
  39. edit_box_set_text       dd aEdit_box_set_text
  40. ;version_ed             dd aVersion_ed
  41.  
  42. ;check_box_draw dd aCheck_box_draw
  43. ;check_box_mouse        dd aCheck_box_mouse
  44. ;version_ch             dd aVersion_ch
  45.  
  46. ;option_box_draw        dd aOption_box_draw
  47. ;option_box_mouse       dd aOption_box_mouse
  48. ;version_op             dd aVersion_op
  49.  
  50. scrollbar_ver_draw      dd aScrollbar_ver_draw
  51. scrollbar_ver_mouse     dd aScrollbar_ver_mouse
  52. ;scrollbar_hor_draw     dd aScrollbar_hor_draw
  53. ;scrollbar_hor_mouse    dd aScrollbar_hor_mouse
  54. ;version_scrollbar      dd aVersion_scrollbar
  55.  
  56. ;dinamic_button_draw    dd aDbutton_draw
  57. ;dinamic_button_mouse   dd aDbutton_mouse
  58. ;version_dbutton        dd aVersion_dbutton
  59.  
  60. ;menu_bar_draw          dd aMenu_bar_draw
  61. ;menu_bar_mouse         dd aMenu_bar_mouse
  62. ;menu_bar_activate      dd aMenu_bar_activate
  63. ;version_menu_bar       dd aVersion_menu_bar
  64.  
  65. ;FileBrowser_draw       dd aFileBrowser_draw
  66. ;FileBrowser_mouse      dd aFileBrowser_mouse
  67. ;FileBrowser_key                dd aFileBrowser_key
  68. ;Version_FileBrowser    dd aVersion_FileBrowser
  69.  
  70. ;PathShow_prepare       dd sz_PathShow_prepare
  71. ;PathShow_draw          dd sz_PathShow_draw
  72. ;Version_path_show      dd szVersion_path_show
  73.  
  74. Frame_draw              dd sz_Frame_draw
  75. ;Version_frame          dd szVersion_frame
  76.  
  77.         dd 0,0
  78.  
  79. ;a_init                 db 'lib_init',0
  80. ;a_version              db 'version',0
  81.  
  82. aEdit_box_draw          db 'edit_box',0
  83. aEdit_box_key           db 'edit_box_key',0
  84. aEdit_box_mouse         db 'edit_box_mouse',0
  85. aEdit_box_set_text      db 'edit_box_set_text',0
  86. ;aVersion_ed            db 'version_ed',0
  87.  
  88. ;aCheck_box_draw        db 'check_box_draw',0
  89. ;aCheck_box_mouse       db 'check_box_mouse',0
  90. ;aVersion_ch            db 'version_ch',0
  91.  
  92. ;aOption_box_draw       db 'option_box_draw',0
  93. ;aOption_box_mouse      db 'option_box_mouse',0
  94. ;aVersion_op            db 'version_op',0
  95.  
  96. aScrollbar_ver_draw     db 'scrollbar_v_draw',0
  97. aScrollbar_ver_mouse    db 'scrollbar_v_mouse',0
  98. ;aScrollbar_hor_draw    db 'scrollbar_h_draw',0
  99. ;aScrollbar_hor_mouse   db 'scrollbar_h_mouse',0
  100. ;aVersion_scrollbar     db 'version_scrollbar',0
  101.  
  102. ;aDbutton_draw          db 'dbutton_draw',0
  103. ;aDbutton_mouse         db 'dbutton_mouse',0
  104. ;aVersion_dbutton       db 'version_dbutton',0
  105.  
  106. ;aMenu_bar_draw         db 'menu_bar_draw',0
  107. ;aMenu_bar_mouse                db 'menu_bar_mouse',0
  108. ;aMenu_bar_activate     db 'menu_bar_activate',0
  109. ;aVersion_menu_bar      db 'version_menu_bar',0
  110.  
  111. ;aFileBrowser_draw      db 'FileBrowser_draw',0
  112. ;aFileBrowser_mouse     db 'FileBrowser_mouse',0
  113. ;aFileBrowser_key       db 'FileBrowser_key',0
  114. ;aVersion_FileBrowser   db 'version_FileBrowser',0
  115.  
  116. ;sz_PathShow_prepare    db 'PathShow_prepare',0
  117. ;sz_PathShow_draw       db 'PathShow_draw',0
  118. ;szVersion_path_show    db 'version_PathShow',0
  119.  
  120. sz_Frame_draw           db 'frame_draw',0
  121. ;szVersion_frame        db 'version_frame',0
  122. ;---------------------------------------------------------------------
  123. align 4
  124. scroll_bar_data_red:
  125. .x:
  126. .size_x     dw 15 ;+0
  127. .start_x    dw t_start_x + p_size_y + 20
  128. .y:
  129. .size_y     dw p_size_y + p_start_y - (c_start_y + c_size_y + 10)
  130. .start_y    dw c_start_y + c_size_y + 10
  131. .btn_high   dd 15 ;+8
  132. .type       dd 2  ;+12
  133. .max_area   dd 255  ;+16
  134. .cur_area   dd 0  ;+20
  135. .position   dd 128  ;+24
  136. .bckg_col   dd 0xFFDBDB ;+28
  137. .frnt_col   dd 0xFF7777   ;0xbbddff ;+32
  138. .line_col   dd 0  ;+36
  139. .redraw     dd 0  ;+40
  140. .delta      dw 0  ;+44
  141. .delta2     dw 0  ;+46
  142. .run_x:
  143. .r_size_x   dw 0  ;+48
  144. .r_start_x  dw 0  ;+50
  145. .run_y:
  146. .r_size_y   dw 0 ;+52
  147. .r_start_y  dw 0 ;+54
  148. .m_pos      dd 0 ;+56
  149. .m_pos_2    dd 0 ;+60
  150. .m_keys     dd 0 ;+64
  151. .run_size   dd 0 ;+68
  152. .position2  dd 0 ;+72
  153. .work_size  dd 0 ;+76
  154. .all_redraw dd 1 ;+80
  155. .ar_offset  dd 10 ;+84
  156. ;---------------------------------------------------------------------
  157. align 4
  158. scroll_bar_data_green:
  159. .x:
  160. .size_x     dw 15 ;+0
  161. .start_x    dw t_start_x + p_size_y + 45
  162. .y:
  163. .size_y     dw p_size_y + p_start_y - (c_start_y + c_size_y + 10)
  164. .start_y    dw c_start_y + c_size_y + 10
  165. .btn_high   dd 15 ;+8
  166. .type       dd 2  ;+12
  167. .max_area   dd 255  ;+16
  168. .cur_area   dd 0  ;+20
  169. .position   dd 128  ;+24
  170. .bckg_col   dd 0xDBFFDB ;+28
  171. .frnt_col   dd 0x77FF77   ;0xbbddff ;+32
  172. .line_col   dd 0  ;+36
  173. .redraw     dd 0  ;+40
  174. .delta      dw 0  ;+44
  175. .delta2     dw 0  ;+46
  176. .run_x:
  177. .r_size_x   dw 0  ;+48
  178. .r_start_x  dw 0  ;+50
  179. .run_y:
  180. .r_size_y   dw 0 ;+52
  181. .r_start_y  dw 0 ;+54
  182. .m_pos      dd 0 ;+56
  183. .m_pos_2    dd 0 ;+60
  184. .m_keys     dd 0 ;+64
  185. .run_size   dd 0 ;+68
  186. .position2  dd 0 ;+72
  187. .work_size  dd 0 ;+76
  188. .all_redraw dd 1 ;+80
  189. .ar_offset  dd 10 ;+84
  190. ;---------------------------------------------------------------------
  191. align 4
  192. scroll_bar_data_blue:
  193. .x:
  194. .size_x     dw 15 ;+0
  195. .start_x    dw t_start_x + p_size_y + 70
  196. .y:
  197. .size_y     dw p_size_y + p_start_y - (c_start_y + c_size_y + 10)
  198. .start_y    dw c_start_y + c_size_y + 10
  199. .btn_high   dd 15 ;+8
  200. .type       dd 2  ;+12
  201. .max_area   dd 255  ;+16
  202. .cur_area   dd 0  ;+20
  203. .position   dd 128  ;+24
  204. .bckg_col   dd 0xDBDBFF ;+28
  205. .frnt_col   dd 0x7777FF   ;0xbbddff ;+32
  206. .line_col   dd 0  ;+36
  207. .redraw     dd 0  ;+40
  208. .delta      dw 0  ;+44
  209. .delta2     dw 0  ;+46
  210. .run_x:
  211. .r_size_x   dw 0  ;+48
  212. .r_start_x  dw 0  ;+50
  213. .run_y:
  214. .r_size_y   dw 0 ;+52
  215. .r_start_y  dw 0 ;+54
  216. .m_pos      dd 0 ;+56
  217. .m_pos_2    dd 0 ;+60
  218. .m_keys     dd 0 ;+64
  219. .run_size   dd 0 ;+68
  220. .position2  dd 0 ;+72
  221. .work_size  dd 0 ;+76
  222. .all_redraw dd 1 ;+80
  223. .ar_offset  dd 10 ;+84
  224. ;---------------------------------------------------------------------
  225. frame_data:
  226. .type                   dd 0 ;+0
  227. .x:
  228. .x_size                 dw 0 ;+4
  229. .x_start                dw 0 ;+6
  230. .y:
  231. .y_size                 dw 0 ;+8
  232. .y_start                dw 0 ;+10
  233. .ext_fr_col             dd 0x0 ;+12
  234. .int_fr_col             dd 0xffffff ;+16
  235. .draw_text_flag         dd 1 ;+20
  236. .text_pointer           dd 0 ;+24
  237. .text_position          dd 0 ;+28
  238. .font_number            dd 0 ;+32
  239. .font_size_y            dd 9 ;+36
  240. .font_color             dd 0x0 ;+40
  241. .font_backgr_color      dd 0xEEEeee ;+44
  242. ;---------------------------------------------------------------------
  243. mouse_dd dd edit1
  244. edit1 edit_box ed_size_x, c_start_x+c_size_x+5, c_start_y, 0xffffff, 0xa0a0a0, 0xff, 0, 0x10000000, 6, string1, mouse_dd, 0
  245. sz_0x db '______',0,0
  246. string1 rb 8
  247. ;---------------------------------------------------------------------
  248. OK_Cancel db 'OK              Cancel',0