For your information, with last 11.1 Update
To solve an hot case, two new VBA methods and a new VBA event on the Project object (11.1 update and > )
The event :
Private Sub fvProject_ScreenResolutionChanged(ByVal newWidth As Long, ByVal newHeight As Long) End Sub
This event is raised when the screen(s) resolution is changes, for example when, on a video wall, one of the screen lose communication newWidth : the new horizontal screen(s) resolution newHeigh : the new vertical screen(s) resolution
The Methods:
Private Sub RestoreWorkspacePosition ()
End Sub
This subroutine reinitialize the workspace size and position (the one at startup)
Private Sub SetWorkspacePosition (Left as Long, Top as long, Height as long, Width as long) End Sub
This subroutine allow moving and sizing the workspace
If height and width are( 0, 0 ) then only the left and top parameters are taken in account (no sizing)
What a nice KB article this post could be 😉
I guess it will replace to good old batch file that was copying the reference paramws.dat prior to PcVue start-up?


