home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programming Unleashed / Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso / docs / scaling.txt < prev   
Encoding:
Text File  |  1995-04-13  |  1.4 KB  |  31 lines

  1. Set the form's AutoScroll property to False to make the form scale 
  2. correctly.  AutoScroll = True means "preserve the form's width and 
  3. height by inserting scrollbars to scroll controls, if necessary".  
  4. The controls in the form will be scaled, but the form itself will 
  5. not.  AutoScroll = False means "change the size of the form when 
  6. it is scaled."
  7.  
  8. So that text labels will not be cut off by font size changes, 
  9. set the labels' Autosize property toTrue.
  10.  
  11. Also, it's a good idea to use a scaleable TrueType font 
  12. for the form font, so that the font displayed in the controls 
  13. will more closely match the required pixel height.  Bitmap fonts 
  14. (like System and MS San Serif) only scale in whole multiples 
  15. (1x, 2x, 3x), which can make your forms look awful.
  16.  
  17. Note that since scaling depends more on font sizes than on 
  18. pixel sizes, a scaled form will be noticeably larger on, say, 
  19. an 800x600 large font system than on an 800x600 small font 
  20. system.  The effect of the font is less noticeable when a 
  21. resolution change is also involved.  
  22.  
  23. Forms designed on a small font system will be noticeably 
  24. larger (but still proportional) on the other system, and 
  25. forms designed on the large font system will be scaled 
  26. smaller on the other.  Scaling to a larger size creates 
  27. less noticeble roundoff error artifacts than scaling to 
  28. a smaller size, so I advise folks to do the final touch-ups 
  29. on their forms on a small-font system.
  30.  
  31.