Rev 5416 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5416 | Rev 5444 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //BOX_LIB - Asper |
1 | //BOX_LIB - Asper |
2 | dword boxlib = #aEdit_box_lib; |
2 | dword boxlib = #aEdit_box_lib; |
3 | char aEdit_box_lib[22]="/sys/lib/box_lib.obj\0"; |
3 | char aEdit_box_lib[]="/sys/lib/box_lib.obj"; |
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | dword box_lib_init = #aboxlib_init; |
5 | dword box_lib_init = #aboxlib_init; |
6 | 6 | ||
Line 23... | Line 23... | ||
23 | 23 | ||
24 | dword check_box_draw = #aCheck_box_draw; |
24 | dword check_box_draw = #aCheck_box_draw; |
25 | dword check_box_mouse = #aCheck_box_mouse; |
25 | dword check_box_mouse = #aCheck_box_mouse; |
Line -... | Line 26... | ||
- | 26 | dword version_ch = #aVersion_ch; |
|
- | 27 | ||
26 | dword version_ch = #aVersion_ch; |
28 | dword frame_draw = #aFrame_draw; |
Line 27... | Line 29... | ||
27 | 29 | ||
28 | $DD 2 dup 0 |
30 | $DD 2 dup 0 |
29 | 31 | ||
30 | char aEdit_box_draw [9] = "edit_box\0"; |
32 | char aEdit_box_draw [] = "edit_box"; |
31 | char aEdit_box_key [13] = "edit_box_key\0"; |
33 | char aEdit_box_key [] = "edit_box_key"; |
32 | char aEdit_box_mouse[15] = "edit_box_mouse\0"; |
34 | char aEdit_box_mouse[] = "edit_box_mouse"; |
33 | char aVersion_ed [11] = "version_ed\0"; |
35 | char aVersion_ed [] = "version_ed"; |
34 | 36 | ||
35 | char aboxlib_init[9] = "lib_init\0"; |
37 | char aboxlib_init[] = "lib_init"; |
36 | char aScrollbar_v_draw [17] = "scrollbar_v_draw\0"; |
38 | char aScrollbar_v_draw [] = "scrollbar_v_draw"; |
37 | char aScrollbar_v_mouse[18] = "scrollbar_v_mouse\0"; |
39 | char aScrollbar_v_mouse[] = "scrollbar_v_mouse"; |
38 | char aScrollbar_h_draw [17] = "scrollbar_h_draw\0"; |
40 | char aScrollbar_h_draw [] = "scrollbar_h_draw"; |
39 | char aScrollbar_h_mouse[18] = "scrollbar_h_mouse\0"; |
41 | char aScrollbar_h_mouse[] = "scrollbar_h_mouse"; |
40 | char aVersion_scrollbar[18] = "version_scrollbar\0"; |
42 | char aVersion_scrollbar[] = "version_scrollbar"; |
41 | 43 | ||
42 | char aCheck_box_draw [15] = "check_box_draw2\0"; |
44 | char aCheck_box_draw [] = "check_box_draw2"; |
43 | char aCheck_box_mouse [16] = "check_box_mouse2\0"; |
45 | char aCheck_box_mouse [] = "check_box_mouse2"; |
44 | char aVersion_ch [11] = "version_ch2\0"; |
46 | char aVersion_ch [] = "version_ch2"; |
45 | 47 | ||
- | 48 | char aOption_box_draw [] = "option_box_draw"; |
|
- | 49 | char aOption_box_mouse [] = "option_box_mouse"; |
|
- | 50 | char aVersion_op [] = "version_op" ; |
|
Line 46... | Line 51... | ||
46 | char aOption_box_draw [16] = "option_box_draw\0"; |
51 | |
47 | char aOption_box_mouse [17] = "option_box_mouse\0"; |
52 | char aPathShow_prepare [] = "PathShow_prepare"; |
Line 48... | Line 53... | ||
48 | char aVersion_op [11] = "version_op\0" ; |
53 | char aPathShow_draw [] = "PathShow_draw"; |
49 | - | ||
Line 50... | Line 54... | ||
50 | char aPathShow_prepare [17] = "PathShow_prepare\0"; |
54 | |
51 | char aPathShow_draw [14] = "PathShow_draw\0"; |
55 | char aProgressbar_draw [] = "progressbar_draw"; |
52 | 56 | char aProgressbar_progress[] = "progressbar_progress"; |
|
53 | char aProgressbar_draw [17] = "progressbar_draw\0"; |
57 | |
54 | char aProgressbar_progress[21] = "progressbar_progress\0"; |
58 | char aFrame_draw[] = "frame_draw"; |
55 | 59 | ||
56 | 60 | ||
57 | struct PathShow_data |
61 | struct PathShow_data |
58 | { |
62 | { |
59 | dword type;// dd 0 ;+0 |
63 | dword type; |
60 | word start_y,// dw 28 ;+4 |
64 | word start_y, |
61 | start_x,// dw 172 ;+6 |
65 | start_x, |
62 | font_size_x,// dw 6 ;+8 ; 6 - for font 0, 8 - for font 1 |
66 | font_size_x, // 6 - for font 0, 8 - for font 1 |
63 | area_size_x;// dw 200 ;+10 |
67 | area_size_x; |
64 | dword font_number,// dd 0 ;+12 ; 0 - monospace, 1 - variable |
68 | dword font_number, // 0 - monospace, 1 - variable |
65 | background_flag,// dd 0 ;+16 |
69 | background_flag, |
66 | font_color,// dd 0x0 ;+20 |
70 | font_color, |
67 | background_color,// dd 0x0 ;+24 |
71 | background_color, |
68 | text_pointer,// dd openfile_pach ;+28 |
72 | text_pointer, |
Line 80... | Line 84... | ||
80 | struct edit_box{ |
84 | struct edit_box{ |
81 | dword width, left, top, color, shift_color, focus_border_color, blur_border_color, |
85 | dword width, left, top, color, shift_color, focus_border_color, blur_border_color, |
82 | text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old; |
86 | text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old; |
83 | }; |
87 | }; |
Line 84... | Line 88... | ||
84 | 88 | ||
- | 89 | struct checkbox2 |
|
- | 90 | { |
|
- | 91 | dword |
|
- | 92 | left_s, |
|
85 | struct checkbox2{ |
93 | top_s, |
- | 94 | ch_text_margin, |
|
- | 95 | color, |
|
- | 96 | border_color, |
|
- | 97 | text_color, |
|
- | 98 | text, |
|
- | 99 | flags, |
|
86 | dword left_s, top_s, ch_text_margin, color, border_color, text_color, text, flags, size_of_str; |
100 | size_of_str; |
Line 87... | Line 101... | ||
87 | }; |
101 | }; |
88 | 102 | ||
89 | //flags for checkbox2 |
103 | //flags for checkbox2 |
90 | #define CH_FLAG_EN 10b |
104 | #define CH_FLAG_EN 10b |
91 | #define CH_FLAG_TOP 0x0 |
105 | #define CH_FLAG_TOP 0x0 |
Line 92... | Line 106... | ||
92 | #define CH_FLAG_MIDDLE 100b |
106 | #define CH_FLAG_MIDDLE 100b |
93 | #define CH_FLAG_BOTTOM 1000b |
107 | #define CH_FLAG_BOTTOM 1000b |
94 | 108 | ||
95 | struct scroll_bar |
109 | struct scroll_bar |
96 | { |
110 | { |
97 | word size_x,// equ [edi] |
111 | word size_x, |
98 | start_x,// equ [edi+2] |
112 | start_x, |
99 | size_y,// equ [edi+4] |
113 | size_y, |
100 | start_y;// equ [edi+6] |
114 | start_y; |
101 | dword btn_height, //equ [edi+8] |
115 | dword btn_height, |
102 | type,// equ [edi+12] |
116 | type, |
103 | max_area,// equ [edi+16] |
117 | max_area, |
104 | cur_area,// equ [edi+20] |
118 | cur_area, |
105 | position,// equ [edi+24] |
119 | position, |
106 | bckg_col,// equ [edi+28] |
120 | bckg_col, |
107 | frnt_col,// equ [edi+32] |
121 | frnt_col, |
108 | line_col,// equ [edi+36] |
122 | line_col, |
109 | redraw;// equ [edi+40] |
123 | redraw; |
110 | word delta,// equ [edi+44] |
124 | word delta, |
111 | delta2,// equ [edi+46] |
125 | delta2, |
112 | r_size_x,// equ [edi+48] |
126 | r_size_x, |
113 | r_start_x,// equ [edi+50] |
127 | r_start_x, |
114 | r_size_y,// equ [edi+52] |
128 | r_size_y, |
115 | r_start_y;// equ [edi+54] |
129 | r_start_y; |
116 | dword m_pos,// equ [edi+56] |
130 | dword m_pos, |
117 | m_pos_2,// equ [edi+60] |
131 | m_pos_2, |
118 | m_keys,// equ [edi+64] |
132 | m_keys, |
119 | run_size,// equ [edi+68] |
133 | run_size, |
120 | position2,// equ [edi+72] |
134 | position2, |
121 | work_size,// equ [edi+76] |
135 | work_size, |
Line 122... | Line 136... | ||
122 | all_redraw,// equ [edi+80] |
136 | all_redraw, |
123 | ar_offset;// equ [edi+84] |
137 | ar_offset; |
- | 138 | }; |
|
124 | }; |
139 | |
125 | 140 | struct progress_bar |
|
126 | struct pb //progressbar |
141 | { |
127 | { |
142 | dword |
128 | dword value, |
143 | value, |
129 | left, |
144 | left, |
Line 135... | Line 150... | ||
135 | max, |
150 | max, |
136 | back_color, |
151 | back_color, |
137 | progress_color, |
152 | progress_color, |
138 | frame_color; |
153 | frame_color; |
139 | }; |
154 | }; |
140 | 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 | }; |
|
- | 173 | ||
141 | 174 |