home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / eventshel1 / Docs / Fonts < prev    next >
Encoding:
Text File  |  1994-01-10  |  2.5 KB  |  97 lines

  1. PROCshell_FontGetHandle()
  2. Params =>
  3.          str  font name
  4.          real height of font (in points)
  5.          real width  of font (in points)
  6.  
  7. This routine returns a handle for the specified
  8. font at the given size. It also causes the font
  9. to be cached for later use.
  10.  
  11. Taken from BLibII library 'Draw' by Tom Hughes.
  12.  
  13. --------------------------------------------------------
  14.  
  15. PROCshell_FontForgetFont()
  16. Params =>
  17.          str  font handle
  18.  
  19. This routine should be called when a program
  20. has finished with a font. It tells the font
  21. manager that it may uncache the font if it
  22. wishes, as it is no longer being used.
  23.  
  24. Taken from BLibII library 'Draw' by Tom Hughes.
  25.  
  26. --------------------------------------------------------
  27.  
  28. PROCshell_FontSetColour()
  29. Params =>
  30.          int foreground colour
  31.          int background colour
  32.  
  33. This procedure sets the colours used for
  34. plotting outline fonts. Each of the
  35. specified colours is given as a word of
  36. the form &BBRRGG00. 
  37.  
  38. Taken from BLibII library 'Draw' by Tom Hughes.
  39.  
  40.  
  41. --------------------------------------------------------
  42.  
  43. PROCshell_AttachFontSubMenu()
  44. Params =>
  45.          int item handle
  46.          str function to call when menu_warning
  47.              message is received (optional, may
  48.              be "")
  49.  
  50. This routine will attempt to load the necessary
  51. 'FontMenu' support module if it is not already
  52. loaded. It expects to find it in the
  53. EvntShellSystem$Path (usually in !ShellSys).
  54.  
  55. User FN (PROCshell_AttachFontSubMenu) 
  56. Params => 
  57.          int window handle
  58.          int icon handle
  59.  
  60.        <=
  61.          int junk
  62.  
  63. This function can be used to set the currently
  64. selected font in the menu about to be opened.
  65. Use PROCshell_FontMenuSelectFont to do this.
  66.  
  67. --------------------------------------------------------
  68.  
  69. FNshell_FontMenuGetLastSelectedFont
  70. Params =>
  71.          None
  72.  
  73.        <=
  74.          str font name (could be "")
  75.  
  76. This routine should be used in the function
  77. called when a menu_select event has occurred to
  78. discover if font menu selection has been made,
  79. and if so the name of the font.
  80.  
  81. If no valid font menu selection has been made
  82. the function will return "" and no action should
  83. be taken.
  84.  
  85. --------------------------------------------------------
  86.  
  87. PROCshell_FontMenuSelectFont()
  88. Params =>
  89.          str name of font to select
  90.  
  91. The font name is used by the library routines
  92. to decide which font name to select when the
  93. font menu opens. As the same font menu can be
  94. used by different applications it is important
  95. to set this up just before the menu opens.
  96.  
  97. --------------------------------------------------------