receiving_20dropped_20files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
receiving_20dropped_20files [2018/03/31 13:19] – external edit 127.0.0.1 | receiving_20dropped_20files [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Receiving dropped files===== | =====Receiving dropped files===== | ||
- | //by Richard Russell, June 2010//\\ \\ The article [[/ | + | //by Richard Russell, June 2010//\\ \\ The article [[/ |
+ | |||
+ | <code bb4w> | ||
WM_DROPFILES = &233 | WM_DROPFILES = &233 | ||
*SYS 1 | *SYS 1 | ||
Line 11: | Line 13: | ||
ON SYS PROCsys(@msg%, | ON SYS PROCsys(@msg%, | ||
SYS " | SYS " | ||
- | Once this code has been executed, a file (or files) being dropped onto your program' | + | </ |
+ | |||
+ | Once this code has been executed, a file (or files) being dropped onto your program' | ||
+ | |||
+ | <code bb4w> | ||
REPEAT | REPEAT | ||
WAIT 1 | WAIT 1 | ||
Line 25: | Line 31: | ||
UNTIL FALSE | UNTIL FALSE | ||
END | END | ||
- | Here the information about the dropped files is simply printed to the screen, but in practice you are likely to want to do something different!\\ \\ Finally, here is the **ON SYS** handler for processing the **WM_DROPFILES** message:\\ | + | </ |
+ | |||
+ | Here the information about the dropped files is simply printed to the screen, but in practice you are likely to want to do something different!\\ \\ Finally, here is the **ON SYS** handler for processing the **WM_DROPFILES** message: | ||
+ | |||
+ | <code bb4w> | ||
DEF PROCsys(M%, | DEF PROCsys(M%, | ||
CASE M% OF | CASE M% OF | ||
Line 43: | Line 53: | ||
ENDCASE | ENDCASE | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
+ | |||
Needless to say, if there are other **ON SYS** interrupts that need to be handled by your program (e.g. menu selections, button clicks etc.) then you must add the necessary code to this handler (probably in a **WHEN WM_COMMAND: | Needless to say, if there are other **ON SYS** interrupts that need to be handled by your program (e.g. menu selections, button clicks etc.) then you must add the necessary code to this handler (probably in a **WHEN WM_COMMAND: |
receiving_20dropped_20files.1522502377.txt.gz · Last modified: 2024/01/05 00:16 (external edit)