home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / TCL_alpha2 / tcl.lzh / tcl / docs / tcla / display.doc < prev    next >
Encoding:
Text File  |  1990-05-04  |  1.5 KB  |  54 lines

  1.  
  2.  
  3. The display command provides a rudimentary interface to display handling
  4. on the Amiga.  It should be fairly apparent how to go about extending it.
  5.  
  6. Once you have called Tcla_Init, you may execute the following commands:
  7.  
  8. The display command draws into the current window as set by the window
  9. command.
  10.  
  11.     display draw x y
  12.  
  13.     display move x y
  14.         move the current drawing position to window-relative (x,y)
  15.  
  16.     display text message
  17.         write text message at the current drawing position
  18.  
  19.     display apen value
  20.         set the color of the A-pen to value
  21.  
  22.     display bpen value
  23.         set the color of the B-pen to value
  24.  
  25.     display mode [jam1] [jam2] [complement] [inversvid]
  26.         set the draw mode to the logical OR of all the specifiers
  27.         following "mode"
  28.  
  29.     display pixel x y
  30.         draw a pixel at window-relative location (x,y)
  31.  
  32.     display textwidth text
  33.         determine the width "text" would occupy if output
  34.         to the current window with the current attributes
  35.  
  36.     display fontheight
  37.         return the height of the current font in pixels
  38.  
  39.     display font fonthandle
  40.         select for the current window the font identified by fonthandle,
  41.         where fonthandle was returned by a "font open" command
  42.  
  43.     display fontstyle [normal] [underlined] [bold] [italic] [extended]
  44.         do a SetSoftStyle on the font for the current window to be
  45.         the logical "or" of underlined, bold, italic and extended.
  46.  
  47.  
  48. BUGS
  49.  
  50. These routines use atoi and they shouldn't, they should do whatever
  51. Tcl does to handle strings that aren't numeric when they're expected.
  52. This occurs in lots of places in Tcla.
  53.  
  54.