home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
misc
/
gold03.lzh
/
GF_003
/
ICONEXEC
/
POSTER
< prev
next >
Wrap
Text File
|
1991-04-28
|
2KB
|
51 lines
Article 751 of net.micro.amiga:
Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site unisoft.UUCP
Path: unisoft!lll-lcc!lll-crg!seismo!harvard!talcott!panda!genrad!decvax!mcnc!ncsu!jcz
From: jcz@ncsu.UUCP
Newsgroups: net.micro.amiga
Subject: ICONEXEC utility
Message-ID: <3010@ncsu.UUCP>
Date: 21 Feb 86 05:04:53 GMT
Date-Received: 22 Feb 86 07:15:57 GMT
Sender: jcz@ncsu.UUCP
Organization: SAS Institute Inc.
Lines: 256
Here are two simple utilities that may make it easier to write code that
runs from workbench. The second utility IconExec allows you to run any
arbitrary command from an Icon WITHOUT having to recompile a program
everytime you wish to change what is run. The other utility allows you
to set the default window that will be used when an Icon is selected.
As a matter of short explaination, whenever an Icon is selected, the
ToolWindow field is (supposed to be) copied into the initial startup
message that is passed to your program. The startup code (c.o) looks
at that message and opens up that window by default. In this way you can
always associate a window with a program without having to open it in
your code. Unfortunately, Intuition (or whomever is responsible) fails
to copy the ToolWindow field over and no window is opened currently.
ICONEXEC takes that into account and opens up the window anyway (Until
the parameter gets copied correctly in a later OS release) and sets it
as the default window.
Once a window is established, the commands that are contained in the
ToolTypes arrays are then executed one at a time. More detailed information
about how the Icons are organizied is in Chapter 4 of Volume1 in the 1.1
Rom Kernal Manual, although the information is not critical to using
the program. If enough interest exists, I will create a tutorial on
using Icons or whatever other information is desired in creating/accessing
them from a program.
These programs were created in response to a request for being able to run
programs such as MUSICRAFT which have no ICONS without Having to modify
the program. If you plan on using ICONEXEC for a commercial product, just
contact me first.
Good Luck,
John A. Toebes, VIII through ...!mcnc!ncsu!jcz
120 H Northington Place
Cary NC 27511 (919)-469-4210
Disclaimer: My Amiga thinks it's an A.I. machine and wrote the above itself