home *** CD-ROM | disk | FTP | other *** search
- FN_shell_FontMenu_Init
- => None
-
- <= bool TRUE if module initialised correctly
- FALSE otherwise
-
- Normally called automatically when the library file
- is loaded by FNshell_InstallLib. If the library
- code is appended to the main program instead it will
- need to be called to initialise the fontmenu module.
-
- --------------------------------------------------------
-
- FNshell_FontMenu_IsInitialised
- => none
-
- <= bool TRUE if fontmenu module has
- been initialised, otherwise FALSE.
-
- --------------------------------------------------------
-
- FNshell_FontMenu_GetHandle
- => none
-
- <= int menu handle
-
- --------------------------------------------------------
-
- FNshell_FontMenu_OffersSystemFont
- => none
-
- <= bool TRUE if fontmenu module contains a
- 'SystemFont' item, otherwise FALSE.
-
- --------------------------------------------------------
-
- FNshell_FontMenu_GetLastSelectedFont
- => none
-
- <= str name of last valid font selected from
- the menu i.e. 'Trinity.Medium'
-
- If no valid font menu selection has been made
- the function will return "" and no action should
- be taken.
-
- --------------------------------------------------------
-
- FNshell_FontMenu_GetNrFonts
- => none
-
- <= int nr of fonts in menu
-
- --------------------------------------------------------
-
- PROCshell_AttachFontMenu()
- => int window handle
- int icon handle to attach menu to
- int icon handle to display selection
- str function to call when menu_select
- event occurs (optional, may be "")
- str function to call before the menu
- opens (optional, may be "")
-
- Use this routine to attach the FontMenu to an icon or
- a window. Attach the FontMenu to an existing menu
- structure with <PROCshell_AttachFontSubMenu>.
-
- This routine will NOT attempt to load the necessary
- 'FontMenu' support module if it is not already
- loaded. Add an entry in the !Run file to load it.
-
- Selection FN (PROCshell_AttachFontMenu)
- => int window handle
- int display icon handle
- str name of selected font i.e
- 'Trinity.Medium'.
-
- <= int no meaning
-
- PreOpen FN (PROCshell_AttachFontMenu)
- => int handle of menu
-
- <= int no meaning
-
- Example !Run file entry (FontMenu)
- RMEnsure FontMenu 1.16 RMLoad <EvntShell$Path>FontMenu
- RMEnsure FontMenu 1.16 Error Couldn't load FontMenu Module
-
- --------------------------------------------------------
-
- PROCshell_FontMenu_SelectFont()
- => str name of font to select i.e.
- 'Trinity.Medium'
-
- The font name is used by the library routines
- to decide which font name to select when the
- font menu opens. As the same font menu can be
- used by different applications it is important
- to set this up just before the menu opens.
-
- --------------------------------------------------------
-
- PROCshell_FontMenu_AllowSystemFont
- => none
-
- The 'SystemFont' item appears in the menu after this
- call.
-
- --------------------------------------------------------
-
- PROCshell_FontMenu_DisallowSystemFont
- => none
-
- The 'SystemFont' item does not appear in the menu after
- this call.
-
- --------------------------------------------------------