advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
AutoRedraw Property Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 {[form.][picturebox.]AutoRedraw[ = boolean%]
 
 Usage Notes
   ■ AutoRedraw automatically redraws the output from the PRINT method on a
     form or in a picture box. For example, the object is resized or
     redisplayed after being hidden by another form. See: PRINT Method
 
   ■ When AutoRedraw is set to True (-1), no Paint events are generated.
     See: Paint Event
 
   ■ Regardless of the state of AutoRedraw, if you set the BackColor
     property, all graphics and print output, including the background image,
     is erased. In general, all print output should be redisplayed in a Paint
     event unless AutoRedraw is set to True (-1). See: BackColor Property
 
   ■ When AutoRedraw is set to False (0), if you clear the drawing area with
     the CLS method, background characters are not deleted. To clear the
     background graphics, set AutoRedraw to True (-1) and then use the CLS
     method. See: CLS Method
 
   ■ You can save a substantial amount of memory by setting AutoRedraw to
     False (0) on forms that do not need to be repainted.
 
   ■ For sizable forms, the background image is the size of the screen. For
     nonsizable forms, the background image is the size of the form.
 
   ■ If the form size is changed at run time, a new background image is
     created with the new size. Any newly exposed areas are filled in with
     the background color or pattern.