Move method (Display object)
Moves the display to the specified position and optionally resizes it. This does not affect the focus or tab index of the display.
Syntax
Display
.Move
Left
, [Top
], [Width
], [Height
]where
Display
– is the name of a Display object or an expression that evaluates to a Display object.Left
– is a parameter of the type Long that specifies the distance, in pixels, between the external left edge of a display and the internal left edge of the containing window.Top
– is an optional parameter of the type Long that specifies the distance, in pixels, between the external top edge of a display and the internal top edge of the containing window.Width
– is an optional parameter of the type Long that specifies the external width of the display window, in pixels, including the borders and any scroll bars.Height
– is an optional parameter of the type Long that specifies the external height of the display window, in pixels, including the borders and any scroll bars.Remarks
- You can change the position of a display even if the optionSize to Main Window at Runtimeis checked, or the optionAllow Display to be Resizedis not checked.
- A display can be positioned so that no part of it is visible in the viewing area.
- The Top and Left parameters can be negative values.
- Attempting to move or resize a display that is minimized, maximized, or docked, raises the error gfxErrorMoveResize.
- The Move method does not apply to docked displays. Attempting to do so raises the error gfxErrorMoveResize.
Provide Feedback