Is This Content Helpful?
We're glad to know this article was helpful.
The ArcView windows are the wrong size when opening a project on another PC with a different size monitor.
The project file stores windows sizes in pixels units. Windows become larger or smaller when a project is moved to a machine with a different monitor pixel size.
· Use the View's corner handles to manually resize the window. If windows have moved off the visible extent of the monitor, they can be restored by using the Window menu items, like Tile or Cascade options.
· Use Avenue to automatically update window sizes.
1. Return the monitor dimensions of the PC the project was created on.
a. Open a new script window.
b. Paste the following code into the new script.
'-- Return the dimensions of your monitor.
Size = System.ReturnScreenSizeInches
Height = Size.GetY
Width = Size. GetX
MsgBox.Info("Height ="++Height.AsString+NL+"Width ="
If the numbers seem wrong, the monitor may be out of calibration. See the ArcView Help topic 'Calibrating your monitor' for more information.
'-- Query the current monitor for its size
thisScreenHeight = System.ReturnScreenSizeInches.GetY
thisScreenWidth = System.ReturnScreenSizeInches.GetX
'-- Find the difference between this screen
'-- and the screen you built the project on.
resizeFactorY = thisScreenHeight / origScreenHeight
resizeFactorX = thisScreenWidth / origScreenWidth
'-- Get the View, and find its current size
theView = av.GetProject.FindDoc("Your View")
viewWinHeight = theView.GetWin.ReturnExtent.GetY
viewWinWidth = theView.GetWin.ReturnExtent.GetX
'-- Resize the View DocWin so it is proportional
'-- to the size of this new monitor.
newViewWinHeight = viewWinHeight * resizeFactorY
newViewWinWidth = viewWinWidth * resizeFactorX
When this project is opened the script will automatically adjust for any monitor size change.