Rev 7573 | Rev 7576 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7573 | Rev 7575 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | start: |
37 | start: |
38 | mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors |
38 | mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors |
Line 39... | Line 39... | ||
39 | 39 | ||
40 | mcall SF_SYS_MISC,SSF_HEAP_INIT |
40 | mcall SF_SYS_MISC,SSF_HEAP_INIT |
- | 41 | or eax,eax |
|
41 | or eax,eax |
42 | jnz @f |
- | 43 | call ted_Exit |
|
Line 42... | Line 44... | ||
42 | jz button.exit |
44 | @@: |
43 | 45 | ||
Line 44... | Line 46... | ||
44 | mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code |
46 | mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code |
Line 198... | Line 200... | ||
198 | 200 | ||
199 | align 16 |
201 | align 16 |
200 | still: |
202 | still: |
201 | mcall SF_WAIT_EVENT |
203 | mcall SF_WAIT_EVENT |
- | 204 | cmp dword[exit_code],1 |
|
202 | cmp dword[exit_code],1 |
205 | jne @f |
- | 206 | call ted_Exit |
|
- | 207 | jmp still |
|
Line 203... | Line 208... | ||
203 | je button.exit |
208 | @@: |
204 | 209 | ||
205 | cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª |
210 | cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª |
206 | jz red_win |
211 | jz red_win |
207 | cmp al,2 |
212 | cmp al,2 |
208 | jz key |
213 | jz key |
209 | cmp al,3 |
214 | cmp al,3 |
210 | jz button |
215 | jz button |
211 | cmp al,6 ;¬ëèì |
216 | cmp al,6 ;¬ëèì |
212 | jne @f |
217 | jne @f |
213 | jmp mouse |
218 | call mouse |
Line 214... | Line 219... | ||
214 | @@: |
219 | @@: |
215 | jmp still |
220 | jmp still |
Line 226... | Line 231... | ||
226 | jg .no_edit |
231 | jg .no_edit |
227 | mcall SF_MOUSE_GET,SSF_BUTTON_EXT |
232 | mcall SF_MOUSE_GET,SSF_BUTTON_EXT |
228 | bt eax,24 ;¤¢®©®© 饫çñª «¥¢®© ª®¯ª®© |
233 | bt eax,24 ;¤¢®©®© 饫çñª «¥¢®© ª®¯ª®© |
229 | jnc @f |
234 | jnc @f |
230 | stdcall [ted_but_select_word], tedit0 |
235 | stdcall [ted_but_select_word], tedit0 |
231 | jmp still |
236 | ret |
232 | @@: |
237 | @@: |
233 | stdcall [ted_mouse], tedit0 |
238 | stdcall [ted_mouse], tedit0 |
234 | .no_edit: |
239 | .no_edit: |
Line 235... | Line 240... | ||
235 | 240 | ||
Line 239... | Line 244... | ||
239 | @@: |
244 | @@: |
240 | cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX ;if not panel |
245 | cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX ;if not panel |
241 | jne @f |
246 | jne @f |
242 | stdcall [tl_mouse], tree1 |
247 | stdcall [tl_mouse], tree1 |
243 | @@: |
248 | @@: |
244 | jmp still |
249 | ret |
245 | ;--------------------------------------------------------------------- |
250 | ;--------------------------------------------------------------------- |
Line 246... | Line 251... | ||
246 | 251 | ||
247 | ;output: |
252 | ;output: |
248 | ; ah = symbol |
253 | ; ah = symbol |