Width property (Display object)
Returns or sets the external width of the display window in pixels, including the borders and any scroll bars. Read/write. Long.
The value assigned to this property must be greater than or equal to zero.
If a display is docked, this property is read-only.
Syntax
Display
.Width
[ = value
]where
Display
– is the name of a Display object or an expression that evaluates to a Display object.value
– is the external width, in pixels, of the display.Remarks
- You can change the value of this property even if the optionSize to Main Window at Runtimeis specified, or the optionAllow Display to be Resizedis not specified.
- When the display is minimized, the width changes to match the width of the window icon in the lower left portion of the containing window.
- When the display is maximized, the width changes to match the width of the containing window.
- Attempts to move or size a display that is minimized, maximized, or docked, raises the error gfxErrorMoveResize.
Provide Feedback