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.
MOVE Method Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 [form.][ctlname.]MOVE left%[,top%[,width%[,height%]]]
 
 Usage Notes
   ■ Only the left% argument is required with the MOVE method. However, to
     specify any other arguments, you must specify all arguments that appear
     in the syntax before the argument you want to specify. For example, you
     cannot specify width% without specifying left% and top%. Any trailing
     arguments that are unspecified remain unchanged.
 
   ■ When a form or control is moved, the Left, Top, Width, and Height
     properties are automatically set to the new values specified by the
     MOVE method arguments. However, the height value for combo boxes (with
     Style = 0 or 2) and drive list boxes cannot be changed using the MOVE
     method. The Height property is read-only for these controls.
     See: Left Property  Height Property
          Top Property   Width Property
 
   ■ Coordinates are measured in characters. Moving a form on the screen or
     moving a control within a frame is always relative to the origin - that
     is, the upper-left corner of the container (0,0). Note: A "container" is
     usually a form or the screen; however, it can also be a frame or picture
     box. See: Form  Frame Control  Picture Box Control
 
   ■ You can move a hidden form or control. For example, moving a visible
     picture box control with several child controls can take a long time.
     To get the desired visual effect quickly:
     • Set the Visible property of the picture box to False (0)
     • Move the container
     • Set the Visible property to True (-1)