Subversion Repositories Kolibri OS

Rev

Rev 5444 | Rev 5503 | Go to most recent revision | 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[]="/sys/lib/box_obj";
  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 progressbar_draw = #aProgressbar_draw;
  22. dword progressbar_progress = #aProgressbar_progress;
  23.  
  24. dword check_box_draw = #aCheck_box_draw;
  25. dword check_box_mouse = #aCheck_box_mouse;
  26. dword version_ch = #aVersion_ch;
  27.  
  28. dword frame_draw = #aFrame_draw;
  29.  
  30. $DD 2 dup 0
  31.  
  32. char aEdit_box_draw []     = "edit_box";
  33. char aEdit_box_key  []    = "edit_box_key";
  34. char aEdit_box_mouse[]    = "edit_box_mouse";
  35. char aVersion_ed    []    = "version_ed";
  36.  
  37. char aboxlib_init[]        = "lib_init";
  38. char aScrollbar_v_draw [] = "scrollbar_v_draw";
  39. char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
  40. char aScrollbar_h_draw [] = "scrollbar_h_draw";
  41. char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
  42. char aVersion_scrollbar[] = "version_scrollbar";
  43.  
  44. char aCheck_box_draw   [] = "check_box_draw2";
  45. char aCheck_box_mouse  [] = "check_box_mouse2";
  46. char aVersion_ch       [] = "version_ch2";
  47.  
  48. char aOption_box_draw  [] = "option_box_draw";
  49. char aOption_box_mouse [] = "option_box_mouse";
  50. char aVersion_op       [] = "version_op" ;
  51.  
  52. char aPathShow_prepare [] = "PathShow_prepare";
  53. char aPathShow_draw    [] = "PathShow_draw";
  54.  
  55. char aProgressbar_draw  [] = "progressbar_draw";
  56. char aProgressbar_progress[] = "progressbar_progress";
  57.  
  58. char aFrame_draw[] = "frame_draw";
  59.  
  60.  
  61. struct PathShow_data
  62. {
  63. dword type;
  64. word start_y,
  65.         start_x,
  66.         font_size_x,    // 6 - for font 0, 8 - for font 1
  67.         area_size_x;
  68. dword font_number,  // 0 - monospace, 1 - variable
  69.         background_flag,
  70.         font_color,
  71.         background_color,
  72.         text_pointer,
  73.         work_area_pointer,
  74.         temp_text_length;
  75. };
  76. /*
  77. char temp[128];
  78. PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
  79. PathShow_prepare stdcall(#PathShow);
  80. PathShow_draw stdcall(#PathShow);
  81. */
  82.  
  83.  
  84. struct edit_box{
  85. dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
  86. text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
  87. };
  88.  
  89. struct checkbox2
  90. {
  91.   dword
  92.         left_s,
  93.         top_s,
  94.         ch_text_margin,
  95.         color,
  96.         border_color,
  97.         text_color,
  98.         text,
  99.         flags,
  100.         size_of_str;
  101. };
  102.  
  103. //flags for checkbox2
  104. #define CH_FLAG_EN 10b      
  105. #define CH_FLAG_TOP 0x0    
  106. #define CH_FLAG_MIDDLE 100b
  107. #define CH_FLAG_BOTTOM 1000b
  108.  
  109. struct scroll_bar
  110. {
  111.         word size_x,
  112.         start_x,
  113.         size_y,
  114.         start_y;
  115.         dword btn_height,
  116.         type,
  117.         max_area,
  118.         cur_area,
  119.         position,
  120.         bckg_col,
  121.         frnt_col,
  122.         line_col,
  123.         redraw;
  124.         word delta,
  125.         delta2,
  126.         r_size_x,
  127.         r_start_x,
  128.         r_size_y,
  129.         r_start_y;
  130.         dword m_pos,
  131.         m_pos_2,
  132.         m_keys,
  133.         run_size,
  134.         position2,
  135.         work_size,
  136.         all_redraw,
  137.         ar_offset;
  138. };
  139.  
  140. struct progress_bar
  141. {
  142.   dword
  143.         value,
  144.         left,
  145.         top,
  146.         width,
  147.         height,
  148.         style,
  149.         min,
  150.         max,
  151.         back_color,
  152.         progress_color,
  153.         frame_color;
  154. };
  155.  
  156. struct frame
  157. {
  158.         dword type;
  159.         word size_x;                  
  160.         word start_x;                
  161.         word size_y;                  
  162.         word start_y;                
  163.         dword ext_col;            
  164.         dword int_col;            
  165.         dword draw_text_flag;  // 0-not,1-yes
  166.         dword text_pointer;          
  167.         dword text_position;   //  0-up,1-bottom
  168.         dword font_number;     //  0-monospace,1-variable
  169.         dword font_size_y;          
  170.         dword font_color;            
  171.         dword font_backgr_color;
  172. };