[comp.sys.mac.programmer] ResEdit question

deragon@acf8.UUCP (John Paul Deragon) (04/07/88)

I was using ResEdit last night (latest version, forgot #) and
was fooling around with some key combinations. What exactly happens when
you hold down shift-option-command and select 'about ResEdit' from the
menu. I get a standard dialog box with the Joker, in the mac and the big
"ON" with an arrow pointing up. If I do it again I get 'OFF'. What 
exactly does it do?

   Thanks in adavance.

         _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
	 | John P.Deragon      -->       deragon@acf8                |
         | N.Y.U Robotics Laboratory   | cadman!deragon              |   
         |_-_-_-_-_-_-_-_-_-_-_-_-_-_-_| DELPHI: JPDERAGON           |
	    	    	    	       | CompuServe: 72160,2010	     |
	    	    	    	       -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 
           -------------------------------------------------------           

ephraim@think.COM (ephraim vishniac) (04/07/88)

In article <22780003@acf8.UUCP> deragon@acf8.UUCP (John Paul Deragon) writes:
>I was using ResEdit last night (latest version, forgot #) and
>was fooling around with some key combinations. What exactly happens when
>you hold down shift-option-command and select 'about ResEdit' from the
>menu. I get a standard dialog box with the Joker, in the mac and the big
>"ON" with an arrow pointing up. If I do it again I get 'OFF'. What 
>exactly does it do?

You've discovered "pig mode."  In some versions of ResEdit, the alerts
say "Flipping pig mode ON" and "Flipping pig mode off."

What's pig mode?  A debugging tool for ResEdit.  When on, it forces
resource purging and memory compaction very frequently.  Needless to
say, this constant purging of resources makes ResEdit a real pig.


Ephraim Vishniac					  ephraim@think.com
Thinking Machines Corporation / 245 First Street / Cambridge, MA 02142-1214

     On two occasions I have been asked, "Pray, Mr. Babbage, if you put
     into the machine wrong figures, will the right answers come out?"

tedj@hpcilzb.HP.COM (Ted Johnson) (08/14/88)

Does anyone know what the proper way is for resizing a window in
a ResEdit DLOG resource?  Sometimes holding down pretzel and shift
and dragging with the mouse works, sometimes it doesn't.   :-(

When I resize the DITL that the DLOG window corresponds to,
it always goes back to it's former size, so I *think* that you're
supposed to resize it from the DLOG.

ANY CLUES ARE GREATLY APPRECIATED!!!

BTW, thanks to all who helped me with the hierarchical menus.  I'm
sending a short LSC program (and source) to comp.binaries.mac
so everyone who wants to see how it is done won't have to struggle
as much as I did.

-Ted

beard@ux1.lbl.gov (Patrick C Beard) (08/18/88)

In article <730057@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes:
>
>Does anyone know what the proper way is for resizing a window in
>a ResEdit DLOG resource?  Sometimes holding down pretzel and shift
>and dragging with the mouse works, sometimes it doesn't.   :-(
>

When you bring up the miniature version of the dialog, you can click
in the lower left corner of it to resize the window, or, under the DLOG
menu, you can view the DLOG as text and specify the exact rectangle.

>When I resize the DITL that the DLOG window corresponds to,
>it always goes back to it's former size, so I *think* that you're
>supposed to resize it from the DLOG.
>

True.  The DLOG causes the DITL resource to be resized, but not vice
versa.  I hope this helps.

Patrick Beard
Lawrence Berkeley Laboratory
beard@ux1.lbl.gov

laba-5ai@e260-1e.berkeley.edu (Glenn McElhoe) (08/30/88)

In article <730057@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes:

>Does anyone know what the proper way is for resizing a window in
>a ResEdit DLOG resource?  Sometimes holding down pretzel and shift
>and dragging with the mouse works, sometimes it doesn't.   :-(

>When you bring up the miniature version of the dialog, you can click
>in the lower left corner of it to resize the window, or, under the DLOG
>menu, you can view the DLOG as text and specify the exact rectangle.

The most dependable way that I have found to resize my DLOGs is to estimate
how much more room I need, changing to text representation (DLOG menu), and
changing the numbers there.  To double check, re-open the DITL and choose the
Use owner window option.

By the way, does anyone know of something better than ResEdit, or a newer
version then 1.1?  I mean, ResEdit is a much better way than RMaker to generate
and alter resources, but it's got soooo many problems.  (Multi-Finder incom-
patibility for one)  Maybe with the Mac II, the people at apple could put
together a new version with a color icon and clut picker.

Just some ideas, because I can't believe everyone gets along with a program as
unreliable as ResEdit.

--
Glenn McElhoe
mcelhoe@zen.berkeley.edu

"This message has been brought to you by the number 5 and the letter F"

shane@chianti.cc.umich.edu (Shane Looker) (08/30/88)

In article <13685@agate.BERKELEY.EDU> laba-5ai@e260-1e.berkeley.edu (Glenn McElhoe) writes:
>
>By the way, does anyone know of something better than ResEdit, or a newer
>version then 1.1?  I mean, ResEdit is a much better way than RMaker to generate
>and alter resources, but it's got soooo many problems.  (Multi-Finder incom-
>patibility for one)  Maybe with the Mac II, the people at apple could put
>together a new version with a color icon and clut picker.
>
>Just some ideas, because I can't believe everyone gets along with a program as
>unreliable as ResEdit.
>
>--
>Glenn McElhoe


You should try the ResEdit 1.2 version.  (Check Sumex.)  I agree that ResEdit
can be very clunky to use for many things.  That's why there will soon be
something much nicer to use for all those messy resouce problems.  (Well, not 
all, but many.)
 
(Watch this keyboard for an exciting announcement in the very near future.)

Shane Looker
Looker@um.cc.umich.edu

jordan@Apple.COM (Jordan Mattson) (08/30/88)

	The version of ResEdit that you should be using is ResEdit 1.2B2.  It
is available from APDA, the various electronic distribution services - not
including SUMEX.  They reason that ResEdit is not available from SUMEX or posted
to USENET is a legal one, doing with how the copyright law says you have to 
protect certian classes of software.


Jordan Mattson				UUCP:   jordan@apple.apple.com       
Apple Computer, Inc.			CSNET: 	jordan@apple.CSNET
Tools & Languages Product Management
20525 Mariani Avenue, MS 27S
Cupertino, CA 95014
408-973-4601
			"Joy is the serious business of heaven."
					C.S. Lewis

dan@Apple.COM (Dan Allen) (08/30/88)

In article <13685@agate.BERKELEY.EDU> laba-5ai@e260-1e.berkeley.edu (Glenn McElhoe) writes:
>By the way, does anyone know of something better than ResEdit, or a newer
>version then 1.1?  I mean, ResEdit is a much better way than RMaker to generate
>and alter resources, but it's got soooo many problems.  (Multi-Finder incom-
>patibility for one)  Maybe with the Mac II, the people at apple could put
>together a new version with a color icon and clut picker.

ResEdit 1.1 was released just before MultiFinder, and it DOES have
problems under MF.  However, ResEdit 1.2 works pretty well with MF. As
to its availability... check APDA.

Dan Allen
Apple Computer

jmh@utacs.UTA.FI (Matti Heimonen) (08/30/88)

I have had no problems in resizing and moving the DLOG box in ResEdit.

To resize it: drag the miniature of DLOG box near the right bottom corner.
To move it: drag it any on other place.

I am currently using version 1.2d1 and I am quite happy with it (so far!).
There is anyway one thing that annoys me.  I *want* to define my DLOGs as 
resources but I would also like to have them well fitted to screens of 
varying sizes, e.g. in the middle or the right bottom corner of the screen. 
How can I get both of these??

Juha-Matti Heimonen		jmh@utacs.UUCP

marc@rna.UUCP (Marc Johnson) (08/31/88)

In article <16308@apple.Apple.COM> dan@apple.com.UUCP (Dan Allen) writes:
+
+ResEdit 1.1 was released just before MultiFinder, and it DOES have
+problems under MF.  However, ResEdit 1.2 works pretty well with MF. As
+to its availability... check APDA.
+

What is APDA?  And how do I get to it?  Is there a phone #?

Thanx
Marc Johnson
Rockefeller Univ.

jordan@Apple.COM (Jordan Mattson) (09/01/88)

Dear Marc -

 	APDA is the Apple Programmers and Developers Association.  It is a
division of the A.P.P.L.E Coop which, with Apple's blessing, has become the 
source for developer products from Apple.
	The address for the APDA is the following:

		Apple Programmers and Developers Association
		290 SW 43rd Street
		Renton, WA 98055
		206-251-6548

	APDA is a membership organization and requires that you pay $20.00
a year to be a member.  



Jordan Mattson				UUCP:   jordan@apple.apple.com       
Apple Computer, Inc.			CSNET: 	jordan@apple.CSNET
Tools & Languages Product Management
20525 Mariani Avenue, MS 27S
Cupertino, CA 95014
408-973-4601
			"Joy is the serious business of heaven."
					C.S. Lewis

nopuklic@ndsuvax.UUCP (Blayne Puklich) (09/01/88)

In article <554@utacs.UTA.FI> jmh@utacs.UUCP (Juha-Matti Heimonen) writes:
[ ... ]
>
>I am currently using version 1.2d1 and I am quite happy with it (so far!).
>There is anyway one thing that annoys me.  I *want* to define my DLOGs as
>resources but I would also like to have them well fitted to screens of
>varying sizes, e.g. in the middle or the right bottom corner of the screen.
>How can I get both of these??
>
>Juha-Matti Heimonen                jmh@utacs.UUCP

	One way to do this is to load the resource template for the DLOG
into a DialogTHndl and fiddle with the boundsRect of the DLOG BEFORE
calling GetNewDialog.  You can then move it around as you wish by
computing a coordinate based either on screenBits.bounds or, as IM vol
V says on pp 121-122, GrayRgn's rgnBBox, which will give you the Rgn
for all screens attached if you want to place it on a different screen.
You need to make the DialogTHndl unpurgeable before playing with it, also.
You can stuff the Rect you compute back into the boundsRect, and then
call GetNewDialog, which will draw it at the new location.
	One thing to keep in mind is that if the DLOG has a window
definition ID of documentProc, noGropwDocProc, or rDocProc, the title
bar is NOT included in the DLOG template's boundsRect, so you'll have
to adjust things 20 pixels accordingly.
	Oh, remember to make it purgeable again if you won't be needing
it anymore.

||+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++||
||	Blayne Puklich			nopuklic@plains.NoDak.edu	   ||
||	NDSU Student ACM     		NU087763@NDSUVM1.bitnet		   ||
||	Chairperson		  North Dakota State University, Fargo, ND ||
||									   ||
||		"Everyone should have a Corvette, I think."		   ||
||	NOTE: If nopuklic@plains.NoDak.edu bounces, revert to		   ||
||		nopuklic@ndsuvax.EDU.					   ||
||-------------------------------------------------------------------------||