Subversion Repositories Kolibri OS

Rev

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

  1. //BOX_LIB - Asper
  2. dword boxlib = #aEdit_box_lib;
  3. char aEdit_box_lib[22]="/sys/lib/box_lib.obj\0";
  4.  
  5. dword box_lib_init   = #aboxlib_init;
  6.  
  7. dword edit_box_draw  = #aEdit_box_draw;
  8. dword edit_box_key   = #aEdit_box_key;
  9. dword edit_box_mouse = #aEdit_box_mouse;
  10. dword version_ed     = #aVersion_ed;
  11.  
  12. dword scrollbar_v_draw  = #aScrollbar_v_draw;
  13. dword scrollbar_v_mouse = #aScrollbar_v_mouse;
  14. dword scrollbar_h_draw  = #aScrollbar_h_draw;
  15. dword scrollbar_h_mouse = #aScrollbar_h_mouse;
  16. dword version_scrollbar = #aVersion_scrollbar;
  17.  
  18. dword PathShow_prepare = #aPathShow_prepare;
  19. dword PathShow_draw    = #aPathShow_draw;
  20.  
  21. dword  am__ = 0x0;
  22. dword  bm__ = 0x0;
  23.  
  24. char aEdit_box_draw [9]     = "edit_box\0";
  25. char aEdit_box_key  [13]    = "edit_box_key\0";
  26. char aEdit_box_mouse[15]    = "edit_box_mouse\0";
  27. char aVersion_ed    [11]    = "version_ed\0";
  28.  
  29. char aboxlib_init[9]        = "lib_init\0";
  30. char aScrollbar_v_draw [17] = "scrollbar_v_draw\0";
  31. char aScrollbar_v_mouse[18] = "scrollbar_v_mouse\0";
  32. char aScrollbar_h_draw [17] = "scrollbar_h_draw\0";
  33. char aScrollbar_h_mouse[18] = "scrollbar_h_mouse\0";
  34. char aVersion_scrollbar[18] = "version_scrollbar\0";
  35.  
  36. char aCheck_box_draw   [15] = "check_box_draw\0";
  37. char aCheck_box_mouse  [16] = "check_box_mouse\0";
  38. char aVersion_ch       [11] = "version_ch\0";
  39.  
  40. char aOption_box_draw  [16] = "option_box_draw\0";
  41. char aOption_box_mouse [17] = "option_box_mouse\0";
  42. char aVersion_op       [11] = "version_op\0" ;
  43.  
  44. char aPathShow_prepare [17] = "PathShow_prepare\0";
  45. char aPathShow_draw    [14] = "PathShow_draw\0";
  46.  
  47.  
  48. struct PathShow_data
  49. {
  50. dword type;//                   dd 0    ;+0
  51. word start_y,//         dw 28   ;+4
  52.         start_x,//              dw 172  ;+6
  53.         font_size_x,//          dw 6    ;+8     ; 6 - for font 0, 8 - for font 1
  54.         area_size_x;//          dw 200  ;+10
  55. dword font_number,//            dd 0    ;+12    ; 0 - monospace, 1 - variable
  56.         background_flag,//      dd 0    ;+16
  57.         font_color,//           dd 0x0  ;+20
  58.         background_color,//     dd 0x0  ;+24
  59.         text_pointer,//         dd openfile_pach        ;+28
  60.         work_area_pointer,//    dd text_work_area       ;+32
  61.         temp_text_length;//     dd 0    ;+36
  62. };
  63. /*
  64. char temp[128];
  65. PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
  66. PathShow_prepare stdcall(#PathShow);
  67. PathShow_draw stdcall(#PathShow);
  68. */
  69.  
  70.  
  71. struct edit_box{
  72. dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
  73. text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
  74. };
  75.  
  76. struct scroll_bar
  77. {
  78. word size_x,//  equ [edi]    
  79. start_x,//      equ [edi+2]
  80. size_y,//               equ [edi+4]
  81. start_y;//              equ [edi+6]
  82. dword btn_height, //equ [edi+8]
  83. type,//                 equ [edi+12]
  84. max_area,//             equ [edi+16]
  85. cur_area,//             equ [edi+20]
  86. position,//             equ [edi+24]
  87. bckg_col,//             equ [edi+28]
  88. frnt_col,//             equ [edi+32]
  89. line_col,//             equ [edi+36]
  90. redraw;//               equ [edi+40]
  91. word delta,//           equ [edi+44]
  92. delta2,//               equ [edi+46]
  93. r_size_x,//             equ [edi+48]
  94. r_start_x,//    equ [edi+50]
  95. r_size_y,//             equ [edi+52]
  96. r_start_y;//    equ [edi+54]
  97. dword m_pos,//          equ [edi+56]
  98. m_pos_2,//              equ [edi+60]
  99. m_keys,//               equ [edi+64]
  100. run_size,//             equ [edi+68]
  101. position2,//    equ [edi+72]
  102. work_size,//    equ [edi+76]
  103. all_redraw,//   equ [edi+80]
  104. ar_offset;//    equ [edi+84]
  105. };