duncant@mbunix.mitre.org (Thomson) (12/05/89)
I need help on the correct usage of GetDiskObject(). It works fine for me when I use it on a project, tool, trashcan, or drawer icon, but it won't work on a disk icon. First, what should I give to GetDiskObject as the icon name for a disk icon? ".info" will be appended to whatever I give, so if I want to get the icon for disk MYDISK: shouldn't I give "MYDISK:" as the argument to GDO(), resulting in "MYDISK:.icon" being read? (Doesn't work) Second, what is the GetWBObject() function? Should I be using this instead of GetDiskObject for disk icons? Any help would be appreciated. In return I'll send a copy of my program, which will allow you to essentially "diskcopy" a floppy into a drawer (for example copy a fred fish disk into a drawer on your hard disk) by clicking on the floppy disk icon, and a drawer icon. The floppy icon will be used to create a new drawer icon (within the drawer which was clicked on) and then all files will be copied into the new drawer. Thanks, Duncan Thomson
bartonr@jove.cs.pdx.edu (Robert Barton) (12/06/89)
duncant@mbunix.mitre.org (Thomson) writes: > First, what should I give to GetDiskObject as the icon name for a disk icon? > ".info" will be appended to whatever I give, so if I want to get the icon > for disk MYDISK: shouldn't I give "MYDISK:" as the argument to GDO(), > resulting in "MYDISK:.icon" being read? (Doesn't work) The file you need to read is MYDISK:Disk.info, so you have to pass the name "MYDISK:Disk" (even though there is no file called Disk on MYDISK:). This is somewhat non-orthogonal, but that's how it works. > Second, what is the GetWBObject() function? Should I be using this > instead of GetDiskObject for disk icons? No. GetWBObject() isn't even documented in the new autodocs, so C-A seems to be discouraging its use.
mks@cbmvax.UUCP (Michael Sinz - CATS) (12/07/89)
In article <81720@linus.UUCP> duncant@mbunix.mitre.org (Thomson) writes: >I need help on the correct usage of GetDiskObject(). It works fine for me >when I use it on a project, tool, trashcan, or drawer icon, but it won't >work on a disk icon. > >First, what should I give to GetDiskObject as the icon name for a disk icon? >".info" will be appended to whatever I give, so if I want to get the icon >for disk MYDISK: shouldn't I give "MYDISK:" as the argument to GDO(), >resulting in "MYDISK:.icon" being read? (Doesn't work) Use "MYDISK:disk" which loads "MYDISK:disk.info" which is the icon for the disk. There are, however, times when the disk does not have a disk.info file since it is using a default icon. Then you will have to assume a default and build your own... >Thanks, >Duncan Thomson /----------------------------------------------------------------------\ | /// Michael Sinz -- CATS/Amiga Software Engineer | | /// PHONE 215-431-9422 UUCP ( uunet | rutgers ) !cbmvax!mks | | /// | |\\\/// When people are free to do as they please, | | \XX/ they usually imitate each other. | \----------------------------------------------------------------------/