ajk@goanna.oz (Alan Kent) (07/06/89)
There are three very simple things I would like to see added to 1.4. Workbench: How about an unsnapshot menu command so you can free up the location of an icon (just a matter of setting the X & Y values to those special values). Whenever you copy from one disk to the other by dragging the icon, it snapshots it. Workbench: When I duplicate the Empty draw icon, it allocates ALL available memory (I have 3 megs), does the copy, then frees all the memory. It actually spends more time allocating and freeing memory than actually doing the copy. Caching is a good idea, but it takes me 5 seconds to duplicate an empty draw on a hard disk! Intiution: add a MenuID to the end of struct MenuItem (unless its already there in 1.3). There is a GadgetID in gadgets so why not in menus? This means you can reorder menu items without having to change other code (at present you have to know its position in the menu). Intuition never has to look at this field so no Inutition code has to be changed. Old programs will also still work (with the shorter structure). All that needs to be done is to add it to the header file. I do the final idea myself by defining a new structure containing the MenuItem structure at the beginning and it works great. I dont care if a command came from a gadget or a menu, I just use a switch on the ID value. But its a pain casting everything all the time when dealing with menus. Dr. Alan Kent Dept. of Comp. Sci, RMIT, ACSnet: ajk@goanna.cs.rmit.oz.au GPO BOX 2476 V, ARPA:ajk%goanna.cs.rmit.oz.au@uunet.uu.net Melbourne, 3001 CSNET: ajk%goanna.cs.rmit.oz.au@australia AUSTRALIA UUCP: ...!uunet!goanna.cs.rmit.oz.au!ajk