home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp48 / 4276 < prev    next >
Encoding:
Text File  |  1992-08-16  |  3.5 KB  |  82 lines

  1. Newsgroups: comp.sys.hp48
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!aurora.cc.monash.edu.au!ins534z
  3. From: ins534z@aurora.cc.monash.edu.au (Quetzal)
  4. Subject: Undocumented CST menu feature
  5. Message-ID: <ins534z.714022807@aurora.cc.monash.edu.au>
  6. Summary: You too can have completely customisable icons in your CST menu . . .
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. Date: Mon, 17 Aug 1992 03:40:07 GMT
  10. Lines: 70
  11.  
  12.  
  13. A feature of the HP48's CST menu that is undocumented (in the manuals
  14. at least) involves assigning customised labels to the menu keys.
  15.  
  16. A key entry in CST may look as follows:
  17.  
  18. FNYNN
  19.  
  20. which (assuming FNYNN is a variable) gives this entry normal action
  21. with respect to unshifted-left-shifted-right-shifted planes.
  22.  
  23. It is common knowledge (i.e., it's in the manuals) that if you want
  24. a different label then you put in a key entry as a list containing a
  25. string, then the object, e.g.
  26.  
  27. { "SPOD" FNYNN }
  28.  
  29. so that, while the HP48 will display SPOD, pressing it will actually
  30. access FNYNN.
  31.  
  32. All this is fine, but there are occasions when this string is not
  33. flexible enough for the menus that you might want.  For instance, say
  34. you have a CST menu key that changes to a directory (call it ECKY) after
  35. displaying the PLOT menu.  You could do this by putting this list in CST:
  36.  
  37. { "ECKY" \<< 31 MENU ECKY \>> }
  38.  
  39. 31 being the MENU number for the PLOT menu.  When you press the CST key,
  40. sure enough, there is ECKY, but it is a normal menu item, without the
  41. little "folder" tab to show that ECKY is a directory.  (After all, it's
  42. a program that gets run when you press "ECKY"; the HP48 doesn't know
  43. that it should be displaying a directory icon).
  44.  
  45. What you need is a way to display anything you like on the menu bar; in
  46. this case, with the five pixels on the top of the item to mark it as
  47. a directory.  What HP's manuals don't say, and what many probably have
  48. guessed after reading the RPL manual in TOOLS, is that there is such a way.
  49. The CST menu will not only take a string as the new label, but also any
  50. 21 by 8 GROB.  So you can make absolutely any icon you like to display
  51. in your custom menus.
  52.  
  53. An easy way to make your own icon from one that is nearly what you want is
  54. to edit it in the Graphics Environment.  Just type LCD\-> PICT STO to put
  55. the entire screen in PICT, then press GRAPH, cursor down to the menu keys
  56. and fiddle around with DOT+.  When you're finished, simply SUB the 21 by 8
  57. GROB (don't include the blank column of pixels just to the right of the icon)
  58. and paste it in (via the interactive stack) into the CST variable in
  59. place of the string.  Our example becomes:
  60.  
  61. { GROB 21 8 E30000FFFFF136A5D1BBB6D13A3FE1BBBEE136ARE1FFFFF1
  62.   \<< 31 MENU ECKY \>> }
  63.  
  64. Pressing CST produces the desired result.
  65.  
  66. Other uses for this are: lower case, Greek or other unsupported characters;
  67. extremely cute but cryptic symbols, such as an explosion (in 21 by 8
  68. pixels!  :) ) in place of an EXIT key; making a menu key entirely disappear
  69. ( use #21d #8d BLANK ).
  70.  
  71. Only 21 by 8 GROBs will be interpreted in this way; others simply display
  72. the first four letters of "Graphic size x size" (whatever size you chose).
  73. Note that a menu GROB of these dimensions takes up 34 bytes; a string will
  74. always be more compact - consider this if memory is a problem.  Also
  75. remember that, if you choose pictures or lower case for your icons, they may
  76. be difficult to read or understand, otherwise HP would have included them
  77. in the HP48, or at least the manual.
  78.  
  79. Tim Pickett
  80. -No fancy .signature, just loads of sincerity :)
  81.  
  82.