Welcome, Guest. Please login or register.

Author Topic: Coding: I would like to be able to "Leave Out" or "Put Away" icons programmatically  (Read 2292 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Daedalus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 893
    • Show all replies
    • http://www.robthenerd.com
Quote from: nyteschayde;674906
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.

Quote
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.
Engineers do it with precision
--
http://www.robthenerd.com