[comp.sys.amiga] Workbench support

dillon@CORY.BERKELEY.EDU (Matt Dillon) (05/02/87)

	I've been getting DME to work with the workbench, and have a question:

	When you writeout a new filename (no associated name.info file), you
	have to create one using PutDiskObject() in the ICON library.  I've
	got this working fine, but would like to know if there is any 
	'standard' icons (e.g. Gadget Structures) for things like text files???

	Right now, I have to setup my own Image structure.  This works fine,
	but it would be almost impossible for a user to make the Image 
	programmable since it's hardwired into the code... I could have an
	extra S: file, but that would be getting a bit messy (I like things
	to be as self-contained as possible!).

					-Matt

cmcmanis@sun.uucp (Chuck McManis) (05/04/87)

In article <8705020329.AA21815@cory.Berkeley.EDU>, (Matt Dillon) writes:
> 	When you writeout a new filename (no associated name.info file), you
> 	have to create one using PutDiskObject() in the ICON library.  I've
> 	got this working fine, but would like to know if there is any 
> 	'standard' icons (e.g. Gadget Structures) for things like text files???

Probably one of the easiest things to do might by to appropriate the NotePads
document icon. The user should be able to start DME (with an extended select)
and have it use the icon of the file selected.

> 	Right now, I have to setup my own Image structure.  This works fine,
> 	but it would be almost impossible for a user to make the Image 
> 	programmable since it's hardwired into the code... I could have an
> 	extra S: file, but that would be getting a bit messy (I like things
> 	to be as self-contained as possible!).
> 					-Matt

Maybe you could have the default icon called something like DME.default.icon 
or something. That way the workbench wouldn't display it but you would have
a good idea of what the file was. And thus copy it when moving the file. 


-- 
--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These views are my own and no one elses. They could be yours too, just
call MrgCop() and then ReThinkDisplay()!