Does anybody know much about the mechanism behind leaving and icon on the workbench and putting one away? I'd like to programmatically do this technique from within an application but I don't know where to look for APIs or information about the mechanism behind this functionality.
I can't remember 100% off-hand (I'll check when I get home) but I think from 3.5 up you can carry this function out using ARexx commands. Might be the simplest way to do it - issue an "RX ADDRESS 'WORKBENCH'
" from your application.
Also, is it possible to add an icon that doesn't represent something on the filesystem. It seems like it should be possible given things like Iconify seem to work similarly. Any info on this would also be appreciated.
This is called an "App Icon" and it's how YAM puts an icon on the desktop showing the status of your mailbox, PPaint lets you load files by dragging and dropping onto its app icon, and so on. I'm sure there's something in the SDK documents about setting up an app icon. It basically triggers an event which your application then acts upon as you desire.