home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / GRAPHICS.DI$ / UISETFON.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.1 KB  |  30 lines

  1. %UISETFONT Interactively set a font by displaying a dialog box.
  2. %    H = UISETFONT(HIN, 'dialogTitle') displays a dialog box for the 
  3. %    user to fill in, and applies the selected font to the input 
  4. %    graphics object.
  5. %
  6. %    The parameters are optional and may be specified in any order.
  7. %
  8. %    If parameter HIN is used, it must specify a handle to a text or 
  9. %    axis graphics object.  The font properties currently assigned to this
  10. %    object are used to initialize the font dialog box.
  11. %
  12. %    If parameter 'dialogTitle' is used, it is a string containing the 
  13. %    title of the dialog box.
  14. %
  15. %    The output H is is a handle to a graphics object.  If HIN is specified,
  16. %    H is identical to HIN.  If HIN is not specified, a new text object
  17. %    is created with the selected font properties, and its handle is
  18. %    returned.
  19. %
  20. %    If the user presses Cancel from the dialog box, or if any error 
  21. %    occurs, the output value is set to the input handle, if provided; 
  22. %    otherwise, it is set to 0.
  23. %
  24. %    Example:
  25. %        uisetfont(hText, 'Update Font')
  26.  
  27. %    Copyright (c) 1984-92 by The MathWorks, Inc.
  28. %    Built-in function.
  29.  
  30.