Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » GS/OS. If I wanted to know....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
GS/OS. If I wanted to know.... [message #387795] Tue, 15 October 2019 14:25 Go to next message
Anonymous
Karma:
Originally posted by: Leon Sargent

For the fun of it? Yes. For the fun of it!

I would like to understand where menu item names are stored, how they are called and how to change their names. Are they in a resource fork, data fork perhaps called from a tool?

If someone could point me both to a textual resource and an app appropriate for looking at this data and altering them I would appreciate it...

Leon
Re: GS/OS. If I wanted to know.... [message #387796 is a reply to message #387795] Tue, 15 October 2019 14:50 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: fadden

On Tuesday, October 15, 2019 at 11:25:09 AM UTC-7, Leon Sargent wrote:
> I would like to understand where menu item names are stored, how they are called and how to change their names. Are they in a resource fork, data fork perhaps called from a tool?

IIRC, menus can be created from code or resources. For code, you can find scans of the IIgs toolbox reference online. Chapter 13 (volume 1) explains the Menu Manager routines. Chapter 37 (volume 3) has some updates.

For resources, IIgs toolbox chapter 45 (volume 3) documents the Resource Manager generally. You should look into the format of Rez files, which are text source files fed into the resource compiler. They look like this:

resource rMenu (Edit_Menu, $C018) {
$0003, // menuID
$A008, // menuFlag
Edit_pString, { // menuTitleRef
Undo_Menu_Item,
Cut_Menu_Item,
Copy_Menu_Item,
Paste_Menu_Item,
Clear_Menu_Item
};
};

(I dug this out of the HardPressed SPRE app. The code was generated by Genesys... hand-creating rez files is a bit tedious.) The menu structure is in one resource, the actual strings are in a different resource.

So... if the app created the menus with code, you'd need to find the strings in the code segment. If they're in the resource fork, it's a bit easier to find and fiddle with, as a resource editor can modify individual resources.
Re: GS/OS. If I wanted to know.... [message #387800 is a reply to message #387796] Tue, 15 October 2019 15:50 Go to previous message
Antoine Vignau is currently offline  Antoine Vignau
Messages: 1860
Registered: October 2012
Karma: 0
Senior Member
Make it simple, menus are text strings with a specific format and that is all.

If one wants to use them, go and get Toolbox reference volumes 1-3.

Antoine
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mountain Computer Music System fix
Next Topic: absent DMA
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Apr 24 10:57:12 EDT 2024

Total time taken to generate the page: 0.05299 seconds