Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!munnari!moncskermit!goanna!yabbie!rcopm From: rcopm@yabbie.oz (Paul Menon) Newsgroups: net.micro.mac Subject: Re: ICONS in buttons (HELP)? Message-ID: <231@yabbie.oz> Date: Sat, 17-May-86 02:25:01 EDT Article-I.D.: yabbie.231 Posted: Sat May 17 02:25:01 1986 Date-Received: Mon, 19-May-86 00:51:07 EDT References: <245@sivax.UUCP> <58@uva.UUCP> Distribution: net Organization: RMIT Comm & Elec Eng, Melbourne, Australia. Lines: 46 Summary: user items, List Manager, new ROM. In article <58@uva.UUCP>, dolf@uva.UUCP (Dolf Starreveld) writes: > > They only real solution to your problem seems to be the writing > of a new control definition procedure. > There you could handle button type control that does not have a title, > but which does have an icon instead. > There are a couple of other solutions... (i) Create a user item (a la Dialog Manager) which can just be a rectangle. You dictate exactly what happens when mousy poops in it. You have to take care of drawing (via a user filter) updating etc... but at least it is on the same (dialog) level. An example of user items in dialog boxes can be found in MacTutor June '85. The code has some redundancies (controls being drawn twice... note that the DM takes care of drawing all controls in a window for an update event) and glaring inconsistencies (illustrations are not a result of the program... take careful not of the scrollbar positions wrt the selection box). However, it gives one a good feel about what's happening at the highest level of the Mac, the only level (opinion only) to really be programming at. I wrote a TML Pascal example program using this as an outline, I might still have it somewhere... (ii)If you are lucky enough to have a MacPlus (grrrr!!), then you can make full use of the List Manager (huh? I hear the replies already). A good example can be found in Mactutor (once again) May '86. I have not examined it thoroughly or even implemented it. Further, since the List Manager is a relatively new arrival, I am still naive on the subject. It seems a powerful package though, and could satisfy your needs. GOOD LUCK Paul Menon. Dept of Communication & Electronic Engineering, Royal Melbourne Institute of Technology, 124 Latrobe St, Melbourne, 3000, Australia ACSnet: rcopm@yabbie UUCP: ...!siesmo!munnari!yabbie.rmit.oz!rcopm CSNET: rcopm@yabbie.rmit.oz ARPA: rcopm%yabbie.rmit.oz@seismo BITNET: rcopm%yabbie.rmit.oz@CSNET-RELAY PHONE: +61 3 660 2619. "Views held within are mine, nobody else would be dumb enough to claim them". D