Back

Topic

[KB1161]PcVue workspace adaptation on Windows resolution change

Tags: Scripting, VBA, Workspace

2 years ago
By RT
Options
Print
Applies to:

PcVue version 12.0 onwards


Summary:

The decrease of Windows resolution makes PcVue reduce its workpace. How to readapt PcVue worspace if Windows resolution increases ?


Details:

A Typical use case:

PcVue is used on a dual screen station. (e.g 2 x 1920×1080 = 3840 pixels horizontal).
By unpluging one screen, Windows decreases the resolution to 1 screen (1920 pixels), and forces PcVue to reduce its workspace.
After repluging the screen, PcVue workspace does not adapt itself.

Solution:

VBA script can be used to resize workspace.

Project:  Workspace
Object:  ThisProject
Event: ScreenResolutionChanged  allows to detect the Windows resolution change
Method: SetWorkspacePosition allows to change the workspace size

Sample of VBA implementation:
KB1161 VBAsample

 

 
 

Created on: 29 Aug 2022 Last update: 30 May 2024