home *** CD-ROM | disk | FTP | other *** search
- This extension library should be installed using the
- FNshell_InstallLib routine so that the variables
- and storage space can be set up. Alternatively append
- the library to your program and call
- FN_shell_FontPick_Init.
-
- Additionally the messages from the file 'Resources.UK.
- colourpick' should be added to the application's message
- file.
-
- This library implements a font selector dialog box
- similar to the one specified in the Style Guide.
-
- ------------------------------------------------------------------------------
-
- PROCshell_AttachPopupFontPicker()
- => int window handle
- int menu icon handle
- int display icon handle (optional, may be -1)
- str selection function (optional, may be "")
- str preopen function (optional, may be "")
-
- Provides for automatic updating of a display
- icon when a selection is made from the
- fontpicker dbox.
-
- The button type of the menu icon is changed
- to 3 to ensure the menu opens when <SELECT>
- is used.
-
- Selection FN (PROCshell_AttachPopupFontPicker)
- => str selected font name
- real font width in pts
- real font height in pts
-
- <= int no meaning
-
- Called when a valid selection has been made from
- the fontpicker dbox.
-
- Preopen FN (PROCshell_AttachPopupFontPicker)
- => int window handle of fontpicker dbox
-
- <= int no meaning
-
- Called just before the fontpicker opens so that the
- appearance of the dbox can be adjusted. For example
- the title can be changed with PROCshell_FontPicker_SetTitle,
- and the current font can be set with a call to the
- routine PROCshell_FontPicker_SelectFont.
-
- ------------------------------------------------------------------------------
-
- PROCshell_FontPicker_SelectFont()
- => str font name
- int width in pts
- int height in pts
-
- This routine sets the state of the fontpicker
- dbox before it opens.
-
- ------------------------------------------------------------------------------
-
- PROCshell_FontPicker_SetTitle()
- => str new title for dbox
-
- ------------------------------------------------------------------------------