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.
Height, Width Properties Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 {[form.][ctlname.] | SCREEN.}Height[ = height%]
 {[form.][ctlname.] | SCREEN.}Width[ = width%]
 
 Usage Notes
   ■ Height and Width values are always expressed in terms of characters.
 
   ■ For a form or control, the values for these properties change as the
     object is sized by the user or by code.
 
   ■ A Height or Width setting less than 0 is an error. If Height or Width
     is changed to less than MinHeight or MinWidth, but greater than 0, the
     change is accepted, but ignored. For example, setting the Height of a
     resizable form to 1 sets Height to 4 (MinHeight); subsequent reads of
     the Height property will list 4.
 
   ■ Changing the number of displayable lines on screen may cause a form to
     be resized. For example, when all forms are invisible or hidden, the
     Height property of a form with Height greater than NewScreenHeight will
     change to the new ScreenHeight value when the form is made visible
     again.
 
   ■ By default, the values of the Height and Width properties at run time
     are equivalent to the height and width of the object at design time.
 
   ■ For forms and the SCREEN object, maximum Height and Width properties
     depend on the screen display characteristics of your computer.
     See: ◄Screen Mode Summary►
 
   ■ The height and width of a control can range from 1 to an absolute
     maximum of 254. If moving a control causes Height or Width to exceed
     254, the move attempt is ignored. If resizing a control causes Width
     to exceed 254, the maximum relative value within the 254 absolute range
     is used.
 
   ■ Use Height and Width and their related properties, Left and Top, for
     operations or calculations based on an object's total area, such as
     sizing or moving the object. See: ◄Left Property►  ◄Top Property►
 
   ■ Use the ScaleHeight and ScaleWidth properties for operations or
     calculations based only on an object's internal area, such as printing
     or moving objects within a form or picture box.
     See: ◄ScaleHeight Property►  ◄ScaleWidth Property►