Rev 1199 | Rev 1277 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1199 | mario79 | 1 | ;***************************************************************************** |
2 | ; Box_Lib - library of graphical components |
||
3 | ; |
||
4 | ; Authors: |
||
5 | ; Alexey Teplov aka |
||
6 | ; Marat Zakiyanov aka Mario79, aka Mario |
||
7 | ; Evtikhov Maxim aka Maxxxx32 |
||
8 | ; Eugene Grechnikov aka Diamond |
||
9 | ; hidnplayr |
||
10 | ;***************************************************************************** |
||
1032 | Lrz | 11 | |
12 | format MS COFF |
||
13 | |||
14 | public EXPORTS |
||
15 | |||
16 | section '.flat' code readable align 16 |
||
1101 | Lrz | 17 | include '../../../../macros.inc' |
1199 | mario79 | 18 | include 'editbox.mac' ;macro which should make life easier :) specially for editbox |
19 | include 'checkbox.mac' ;macro implements checkbox |
||
20 | include 'optionbox.mac' ;macro implements optionbox |
||
21 | include 'scrollbar.mac' ;macro implements scrollbar |
||
22 | include 'd_button.mac' ;macro implements dinamic_button |
||
23 | include 'menubar.mac' ;macro implements menubar |
||
24 | include 'filebrowser.mac' ;macro implements filebrowser |
||
1032 | Lrz | 25 | ;---------------------------------------------------- |
26 | ;EditBox |
||
27 | ;---------------------------------------------------- |
||
1214 | Lrz | 28 | align 16 |
1199 | mario79 | 29 | use_editbox_draw ;macro reveals the function of the display. |
1214 | Lrz | 30 | align 16 |
1199 | mario79 | 31 | use_editbox_key ;macro reveals processing function of the keypad. |
1214 | Lrz | 32 | align 16 |
1199 | mario79 | 33 | use_editbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 34 | |
35 | ;---------------------------------------------------- |
||
36 | ;CheckBox |
||
37 | ;---------------------------------------------------- |
||
1214 | Lrz | 38 | align 16 |
1199 | mario79 | 39 | use_checkbox_draw ;macro reveals the function of the display. |
1214 | Lrz | 40 | align 16 |
1199 | mario79 | 41 | use_checkbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 42 | |
43 | |||
44 | ;-------------------------------------------------- |
||
45 | ;radiobutton Group |
||
46 | ;-------------------------------------------------- |
||
1214 | Lrz | 47 | align 16 |
1199 | mario79 | 48 | use_optionbox_driver ;macro that control the operating modes |
1214 | Lrz | 49 | align 16 |
1199 | mario79 | 50 | use_optionbox_draw ;macro reveals the function of the display. |
1214 | Lrz | 51 | align 16 |
1199 | mario79 | 52 | use_optionbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 53 | |
1037 | mario79 | 54 | ;-------------------------------------------------- |
55 | ;scrollbar Group |
||
56 | ;-------------------------------------------------- |
||
1214 | Lrz | 57 | align 16 |
1037 | mario79 | 58 | use_scroll_bar |
1214 | Lrz | 59 | align 16 |
1037 | mario79 | 60 | use_scroll_bar_vertical |
1214 | Lrz | 61 | align 16 |
1037 | mario79 | 62 | use_scroll_bar_horizontal |
63 | |||
64 | ;-------------------------------------------------- |
||
65 | ;dinamic button Group |
||
66 | ;-------------------------------------------------- |
||
1214 | Lrz | 67 | align 16 |
1037 | mario79 | 68 | use_dinamic_button |
69 | |||
70 | ;-------------------------------------------------- |
||
71 | ;menubar Group |
||
72 | ;-------------------------------------------------- |
||
1214 | Lrz | 73 | align 16 |
1037 | mario79 | 74 | use_menu_bar |
75 | |||
76 | ;-------------------------------------------------- |
||
1199 | mario79 | 77 | ;filebrowser Group |
78 | ;-------------------------------------------------- |
||
1214 | Lrz | 79 | align 16 |
1199 | mario79 | 80 | use_file_browser |
81 | ;-------------------------------------------------- |
||
1214 | Lrz | 82 | ;align 16 |
1060 | hidnplayr | 83 | init: |
84 | ret |
||
85 | |||
1068 | Lrz | 86 | ;;;;;;;;;;; |
87 | ;;Data |
||
88 | ;;;;;;;;;;; |
||
1214 | Lrz | 89 | ;align 16 |
90 | ;mouse_flag dd 0x0 |
||
1060 | hidnplayr | 91 | |
1068 | Lrz | 92 | |
1032 | Lrz | 93 | align 16 |
94 | EXPORTS: |
||
95 | |||
96 | |||
1068 | Lrz | 97 | dd sz_init, init |
98 | dd sz_version, 0x00000001 |
||
1060 | hidnplayr | 99 | |
1068 | Lrz | 100 | dd sz_edit_box, edit_box |
101 | dd sz_edit_box_key, edit_box_key |
||
102 | dd sz_edit_box_mouse, edit_box_mouse |
||
103 | dd szVersion_ed, 0x00000001 |
||
1060 | hidnplayr | 104 | |
1068 | Lrz | 105 | dd sz_check_box_draw, check_box_draw |
106 | dd sz_check_box_mouse, check_box_mouse |
||
107 | dd szVersion_ch, 0x00000001 |
||
108 | |||
109 | dd sz_option_box_draw, option_box_draw |
||
110 | dd sz_option_box_mouse, option_box_mouse |
||
111 | dd szVersion_op, 0x00000001 |
||
112 | |||
113 | dd sz_Scrollbar_ver_draw, scroll_bar_vertical.draw |
||
114 | dd sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse |
||
115 | dd sz_Scrollbar_hor_draw, scroll_bar_horizontal.draw |
||
116 | dd sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse |
||
117 | dd szVersion_scrollbar, 0x00010001 |
||
118 | |||
119 | dd sz_Dbutton_draw, dinamic_button.draw |
||
120 | dd sz_Dbutton_mouse, dinamic_button.mouse |
||
121 | dd szVersion_dbutton, 0x00010001 |
||
122 | |||
123 | dd sz_Menu_bar_draw, menu_bar.draw |
||
124 | dd sz_Menu_bar_mouse, menu_bar.mouse |
||
1199 | mario79 | 125 | dd sz_Menu_bar_activate, menu_bar.activate |
126 | dd szVersion_menu_bar, 0x00010002 |
||
127 | |||
128 | dd sz_FileBrowser_draw, fb_draw_panel |
||
129 | dd sz_FileBrowser_mouse, fb_mouse |
||
130 | dd sz_FileBrowser_key, fb_key |
||
131 | dd szVersion_FileBrowser, 0x00010001 |
||
1068 | Lrz | 132 | dd 0,0 |
133 | |||
134 | |||
135 | sz_init db 'lib_init',0 |
||
136 | sz_version db 'version',0 |
||
137 | |||
138 | sz_edit_box db 'edit_box',0 |
||
1032 | Lrz | 139 | sz_edit_box_key db 'edit_box_key',0 |
140 | sz_edit_box_mouse db 'edit_box_mouse',0 |
||
1068 | Lrz | 141 | szVersion_ed db 'version_ed',0 |
142 | |||
1032 | Lrz | 143 | sz_check_box_draw db 'check_box_draw',0 |
144 | sz_check_box_mouse db 'check_box_mouse',0 |
||
1068 | Lrz | 145 | szVersion_ch db 'version_ch',0 |
146 | |||
1032 | Lrz | 147 | sz_option_box_draw db 'option_box_draw',0 |
148 | sz_option_box_mouse db 'option_box_mouse',0 |
||
1068 | Lrz | 149 | szVersion_op db 'version_op',0 |
1032 | Lrz | 150 | |
1068 | Lrz | 151 | sz_Scrollbar_ver_draw db 'scrollbar_v_draw',0 |
152 | sz_Scrollbar_ver_mouse db 'scrollbar_v_mouse',0 |
||
153 | sz_Scrollbar_hor_draw db 'scrollbar_h_draw',0 |
||
154 | sz_Scrollbar_hor_mouse db 'scrollbar_h_mouse',0 |
||
155 | szVersion_scrollbar db 'version_scrollbar',0 |
||
156 | |||
157 | sz_Dbutton_draw db 'dbutton_draw',0 |
||
158 | sz_Dbutton_mouse db 'dbutton_mouse',0 |
||
159 | szVersion_dbutton db 'version_dbutton',0 |
||
160 | |||
161 | sz_Menu_bar_draw db 'menu_bar_draw',0 |
||
162 | sz_Menu_bar_mouse db 'menu_bar_mouse',0 |
||
1199 | mario79 | 163 | sz_Menu_bar_activate db 'menu_bar_activate',0 |
1068 | Lrz | 164 | szVersion_menu_bar db 'version_menu_bar',0 |
165 | |||
1199 | mario79 | 166 | sz_FileBrowser_draw db 'FileBrowser_draw',0 |
167 | sz_FileBrowser_mouse db 'FileBrowser_mouse',0 |
||
168 | sz_FileBrowser_key db 'FileBrowser_key',0 |
||
169 | szVersion_FileBrowser db 'version_FileBrowser',0 |