Documentation: Message_DataLoad (Version #1)
Programmer’s Reference Manuals
» Part 7 – The Desktop
» The Window Manager
» Messages
» Message Codes
» Message_DataLoad
Message_DataLoad
(Code &3)
| Message Block | |
|---|---|
| +20 | Destination window handle |
| +24 | Destination icon handle |
| +28 | Destination screen x |
| +32 | Destination screen y |
| +36 | Estimated size, or -1 if unsafe |
| +40 | Filetype of data |
| +44 | Full pathname |
| +n | Column of file in current selection |
| n+4 | Row of file in current selection |
Use
This message is sent by the Filer to ask an application to load a file, or by a task in response to a Message_DataSaveAck message.
Notes
When replying to a Message_DataSaveAck message, the data-saving task should write its data to the temporary file specified, and reply by sending this message.
The reply to this message should be sent as a User_Message_Recorded so that if it returns unanswered, the sender can delete the temporary file and report an error.
Possible responses from data-loading task:- Task sends Message_DataLoadAck message (file successfully loaded)
- Task does not reply (error loading data / not interested in filetype)