Rev 1101 | Rev 1214 | 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 | ;---------------------------------------------------- |
||
1068 | Lrz | 28 | align 4 |
1199 | mario79 | 29 | use_editbox_draw ;macro reveals the function of the display. |
1068 | Lrz | 30 | align 4 |
1199 | mario79 | 31 | use_editbox_key ;macro reveals processing function of the keypad. |
1068 | Lrz | 32 | align 4 |
1199 | mario79 | 33 | use_editbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 34 | |
35 | ;---------------------------------------------------- |
||
36 | ;CheckBox |
||
37 | ;---------------------------------------------------- |
||
1068 | Lrz | 38 | align 4 |
1199 | mario79 | 39 | use_checkbox_draw ;macro reveals the function of the display. |
1068 | Lrz | 40 | align 4 |
1199 | mario79 | 41 | use_checkbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 42 | |
43 | |||
44 | ;-------------------------------------------------- |
||
45 | ;radiobutton Group |
||
46 | ;-------------------------------------------------- |
||
1068 | Lrz | 47 | align 4 |
1199 | mario79 | 48 | use_optionbox_driver ;macro that control the operating modes |
1068 | Lrz | 49 | align 4 |
1199 | mario79 | 50 | use_optionbox_draw ;macro reveals the function of the display. |
1068 | Lrz | 51 | align 4 |
1199 | mario79 | 52 | use_optionbox_mouse ;macro reveals processing function of the mouse. |
1032 | Lrz | 53 | |
1037 | mario79 | 54 | ;-------------------------------------------------- |
55 | ;scrollbar Group |
||
56 | ;-------------------------------------------------- |
||
1068 | Lrz | 57 | align 4 |
1037 | mario79 | 58 | use_scroll_bar |
1068 | Lrz | 59 | align 4 |
1037 | mario79 | 60 | use_scroll_bar_vertical |
1068 | Lrz | 61 | align 4 |
1037 | mario79 | 62 | use_scroll_bar_horizontal |
63 | |||
64 | ;-------------------------------------------------- |
||
65 | ;dinamic button Group |
||
66 | ;-------------------------------------------------- |
||
1068 | Lrz | 67 | align 4 |
1037 | mario79 | 68 | use_dinamic_button |
69 | |||
70 | ;-------------------------------------------------- |
||
71 | ;menubar Group |
||
72 | ;-------------------------------------------------- |
||
1068 | Lrz | 73 | align 4 |
1037 | mario79 | 74 | use_menu_bar |
75 | |||
76 | ;-------------------------------------------------- |
||
1199 | mario79 | 77 | ;filebrowser Group |
78 | ;-------------------------------------------------- |
||
79 | align 4 |
||
80 | use_file_browser |
||
81 | ;-------------------------------------------------- |
||
1060 | hidnplayr | 82 | init: |
83 | ret |
||
84 | |||
1068 | Lrz | 85 | ;;;;;;;;;;; |
86 | ;;Data |
||
87 | ;;;;;;;;;;; |
||
88 | align 4 |
||
89 | mouse_flag dd 0x0 |
||
1060 | hidnplayr | 90 | |
1068 | Lrz | 91 | |
1032 | Lrz | 92 | align 16 |
93 | EXPORTS: |
||
94 | |||
95 | |||
1068 | Lrz | 96 | dd sz_init, init |
97 | dd sz_version, 0x00000001 |
||
1060 | hidnplayr | 98 | |
1068 | Lrz | 99 | dd sz_edit_box, edit_box |
100 | dd sz_edit_box_key, edit_box_key |
||
101 | dd sz_edit_box_mouse, edit_box_mouse |
||
102 | dd szVersion_ed, 0x00000001 |
||
1060 | hidnplayr | 103 | |
1068 | Lrz | 104 | dd sz_check_box_draw, check_box_draw |
105 | dd sz_check_box_mouse, check_box_mouse |
||
106 | dd szVersion_ch, 0x00000001 |
||
107 | |||
108 | dd sz_option_box_draw, option_box_draw |
||
109 | dd sz_option_box_mouse, option_box_mouse |
||
110 | dd szVersion_op, 0x00000001 |
||
111 | |||
112 | dd sz_Scrollbar_ver_draw, scroll_bar_vertical.draw |
||
113 | dd sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse |
||
114 | dd sz_Scrollbar_hor_draw, scroll_bar_horizontal.draw |
||
115 | dd sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse |
||
116 | dd szVersion_scrollbar, 0x00010001 |
||
117 | |||
118 | dd sz_Dbutton_draw, dinamic_button.draw |
||
119 | dd sz_Dbutton_mouse, dinamic_button.mouse |
||
120 | dd szVersion_dbutton, 0x00010001 |
||
121 | |||
122 | dd sz_Menu_bar_draw, menu_bar.draw |
||
123 | dd sz_Menu_bar_mouse, menu_bar.mouse |
||
1199 | mario79 | 124 | dd sz_Menu_bar_activate, menu_bar.activate |
125 | dd szVersion_menu_bar, 0x00010002 |
||
126 | |||
127 | dd sz_FileBrowser_draw, fb_draw_panel |
||
128 | dd sz_FileBrowser_mouse, fb_mouse |
||
129 | dd sz_FileBrowser_key, fb_key |
||
130 | dd szVersion_FileBrowser, 0x00010001 |
||
1068 | Lrz | 131 | dd 0,0 |
132 | |||
133 | |||
134 | sz_init db 'lib_init',0 |
||
135 | sz_version db 'version',0 |
||
136 | |||
137 | sz_edit_box db 'edit_box',0 |
||
1032 | Lrz | 138 | sz_edit_box_key db 'edit_box_key',0 |
139 | sz_edit_box_mouse db 'edit_box_mouse',0 |
||
1068 | Lrz | 140 | szVersion_ed db 'version_ed',0 |
141 | |||
1032 | Lrz | 142 | sz_check_box_draw db 'check_box_draw',0 |
143 | sz_check_box_mouse db 'check_box_mouse',0 |
||
1068 | Lrz | 144 | szVersion_ch db 'version_ch',0 |
145 | |||
1032 | Lrz | 146 | sz_option_box_draw db 'option_box_draw',0 |
147 | sz_option_box_mouse db 'option_box_mouse',0 |
||
1068 | Lrz | 148 | szVersion_op db 'version_op',0 |
1032 | Lrz | 149 | |
1068 | Lrz | 150 | sz_Scrollbar_ver_draw db 'scrollbar_v_draw',0 |
151 | sz_Scrollbar_ver_mouse db 'scrollbar_v_mouse',0 |
||
152 | sz_Scrollbar_hor_draw db 'scrollbar_h_draw',0 |
||
153 | sz_Scrollbar_hor_mouse db 'scrollbar_h_mouse',0 |
||
154 | szVersion_scrollbar db 'version_scrollbar',0 |
||
155 | |||
156 | sz_Dbutton_draw db 'dbutton_draw',0 |
||
157 | sz_Dbutton_mouse db 'dbutton_mouse',0 |
||
158 | szVersion_dbutton db 'version_dbutton',0 |
||
159 | |||
160 | sz_Menu_bar_draw db 'menu_bar_draw',0 |
||
161 | sz_Menu_bar_mouse db 'menu_bar_mouse',0 |
||
1199 | mario79 | 162 | sz_Menu_bar_activate db 'menu_bar_activate',0 |
1068 | Lrz | 163 | szVersion_menu_bar db 'version_menu_bar',0 |
164 | |||
1199 | mario79 | 165 | sz_FileBrowser_draw db 'FileBrowser_draw',0 |
166 | sz_FileBrowser_mouse db 'FileBrowser_mouse',0 |
||
167 | sz_FileBrowser_key db 'FileBrowser_key',0 |
||
168 | szVersion_FileBrowser db 'version_FileBrowser',0 |