home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / DOC / TR.LOUT / ch3.11 < prev    next >
Text File  |  1994-01-25  |  999b  |  35 lines

  1. @Section
  2.    @Title { "@HScale" and "@VScale" }
  3.    @Tag { hscale }
  4. @Begin
  5. @PP
  6. hscale @Index { @@HScale symbol }
  7. vscale @Index { @@VScale symbol }
  8. scaling @Index { Scaling of object }
  9. @@HScale causes its right parameter to expand to fill the space available,
  10. by geometricallly scaling it:
  11. @ID @Code {
  12. "4i @Wide @HScale { 1 2 3 4 5 6 7 8 }"
  13. }
  14. has result
  15. @ID {
  16. 4i @Wide @HScale { 1 2 3 4 5 6 7 8 }
  17. }
  18. and
  19. @ID @Code {
  20. "0.5i @Wide @HScale { 1 2 3 4 5 6 7 8 }"
  21. }
  22. has result
  23. @ID {
  24. 0.5i @Wide @HScale { 1 2 3 4 5 6 7 8 }
  25. }
  26. @@HScale first applies @@HContract to its parameter, then horizontally
  27. scales it to the actual size.  The principal mark of the right parameter
  28. has no effect on the result; the parameter is scaled to the actual size
  29. and positioned to fill the space available.  (Taking account of alignment
  30. of the principal mark only causes trouble in practice.)
  31. @PP
  32. @@VScale is similar, but in a vertical direction.  @@HScale and @@VScale
  33. each have both a @@OneCol and a @@OneRow effect.
  34. @End @Section
  35.