[comp.sys.mac] Editing item numbers in resources

cjn@calmasd.CALMA.UUCP (Cheryl Nemeth) (12/28/86)

I have a dialog with many editable text boxes, and I'd like to change
the item numbers for them.  How do I go about doing this?  I thought I
could just decompile the resource using REdit, but that file won't run
through RMaker.  What do I do now?

oster@lapis.berkeley.edu (David Phillip Oster) (12/31/86)

You can renumber the editable text items in a dialog with ResEdit. Open
the DITL, and select an item.  Choosing "Send To Front" from the DITL menu
puts that item at the END of the resource list. Select another item and do
the same. The new item is now the end, and the previous item is just
before the end. A little thought will get you the renumbering you want.

(I use MockWrite to build the RMaker script by hand from the dialog: I
open each dialog item to get its bounding rect, then write the spec into
my MockWrite window.  I find it easier to work in MockWrite to get my
boxes to line up, than it is in ResEdit.)

sdh@thumper.UUCP (12/31/86)

> I have a dialog with many editable text boxes, and I'd like to change
> the item numbers for them.  How do I go about doing this?  I thought I
> could just decompile the resource using REdit, but that file won't run
> through RMaker.  What do I do now?

This may help:
In ResEdit there is a way to open resource files without using the fancy 
interfacing.  I believe in this mode, if you are looking at a DITL, you
should be able to select an item, and use the Get Info (clover-I) feature to
edit its resource ID number.  I think holding the option key down when
opening a resource uses a general editor.

Retief of the CDT
bellcore!sdh