AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
R0 = file length
R1 = pointer to filename (pathname or leafname)
R2 = file type
R3 = pointer to data
R4 = zero to allow files to be saved to your own task, non-zero otherwise
R5 = pointer to Wimp_GetPointerInfo block if >=&8000, otherwise file will be
saved to current mouse position
Exit:
R0 = 0 if failed due to attempt to save to own task, non-zero otherwise

Used to save a file from your program to a filer or to another task. When you
receive the User_Drag_Box event after the user has dragged the icon to where
they want it put, call WimpExt_DataSave to handle the data transfer. R5
allows you to use this call to save to a specified place - just use R5=0 if
you want to save to the pointer position. If R4 is non-zero on entry, then if
the user has dragged the file to a window or icon belonging to your task then
no action will be taken, and R0 will be zero on exit. Otherwise, when the
transfer has finished, WimpExtension will send you a message, number &45782,
with the word at R1+20 having the following meaning:
0 = file not saved. Error block at R1+24
1 = file saved but is 'unsafe' (eg. saved to another task)
2 = file saved. Filename at R1+24

[sh-index] Back to list of manuals