Rev 7498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7498 | Rev 7507 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | char lib_path[] = "/sys/lib/box_lib.obj"; |
39 | char lib_path[] = "/sys/lib/box_lib.obj"; |
40 | dword lib_path_addr = (dword)lib_path; |
40 | dword lib_path_addr = (dword)lib_path; |
41 | dword dummy = 0; |
41 | dword dummy = 0; |
Line -... | Line 42... | ||
- | 42 | ||
- | 43 | //editbox flags |
|
- | 44 | #define ed_pass 1 |
|
- | 45 | #define ed_focus 2 //focused |
|
- | 46 | #define ed_shift 4 //flag is set when Shift is pressed |
|
- | 47 | #define ed_shift_on 8 |
|
- | 48 | #define ed_shift_bac 16 //bit for Shift reset, if set the smth is selected |
|
- | 49 | #define ed_left_fl 32 |
|
- | 50 | #define ed_offset_fl 64 |
|
- | 51 | #define ed_insert 128 |
|
- | 52 | #define ed_mouse_on 256 |
|
- | 53 | #define ed_mouse_adn_b 280 |
|
- | 54 | #define ed_disabled 2048 |
|
- | 55 | #define ed_always_focus 16384 |
|
- | 56 | #define ed_figure_only 32768 //numbers only |
|
- | 57 | #define ed_shift_cl 65507 |
|
- | 58 | #define ed_shift_mcl 65531 |
|
- | 59 | #define ed_shift_off 65531 |
|
- | 60 | #define ed_shift_on_off 65527 |
|
- | 61 | #define ed_shift_bac_cl 65519 |
|
- | 62 | #define ed_right_fl 65503 |
|
- | 63 | #define ed_offset_cl 65471 |
|
- | 64 | #define ed_insert_cl 65407 |
|
- | 65 | #define ed_mouse_on_off 65279 |
|
42 | 66 | ||
43 | struct edit_box{ |
67 | struct edit_box{ |
44 | dword width, |
68 | dword width, |
45 | left, |
69 | left, |
46 | top, |
70 | top, |
Line 59... | Line 83... | ||
59 | cl_curs_x, |
83 | cl_curs_x, |
60 | cl_curs_y, |
84 | cl_curs_y, |
61 | shift, |
85 | shift, |
62 | shift_old, |
86 | shift_old, |
63 | ed_height, |
87 | height, |
64 | ed_char_width; |
88 | ed_char_width; |
65 | }; |
89 | }; |
66 | 90 | ||
Line 67... | Line 91... | ||
67 | struct scroll_bar{ |
91 | struct scroll_bar{ |
68 | word w, |
92 | word w, |