Anyone know how to set the display resolution in Processbook. I want to set the display screen size as per my desktop resolution.
First, I would recommend you to preserve the aspect ratio of the ProcessBook display by checking the option "Preserve Aspect Ratio on resize" which can be found in Tools -> Preferences -> Display Window.
To fit the display to your desktop screen, you can click on "Select Full Screen Mode" icon in the Full Screen bar or use VBA code to do so.
Private Sub Display_Open()
ThisDisplay.Zoom = "FitAll"
Let me know if it helps.
Thank you very much. I have tried this option before. But will try for VB code also.
I thought maybe we have any option to directly set the display resolution like in other HMI system have.
There are also methods associated with the Display Class and the Symbol Class that you can use to resize and reposition your display or symbols. You can also use Application.FullScreen = True to get into Full Screen Mode via VBA
Dim s As Symbol
Application.FullScreen = True
ThisDisplay.Maximize 'Maximizes the display
syms = ThisDisplay.Symbols
'Loop through each symbol to adjust their position and size
For Each s In syms
s.Height = 600
s.Width = 1450
s.Left = -15000
s.Top = 15000
Dear Eugene, my pdi files were generated by different people for years, with different size set up. Is there an option in ActiveView or somewhere else that I could make my pdi-show always the maximized size according to my personnel's screen? Best Regards, ZYY
pbdCtrl01.Display.Zoom = "FitAll";
I failed to make my personnel's screen maximized when open the display in web browser through ActiveView.
I enclosed my code here, could you please help me check it out?
Private Sub Display_Open() On Error Resume Next Set pisdk = CreateObject("PISDK.PISDK") Set piSrv = pisdk.Servers.DefaultServer If piSrv.Connected = False Then piSrv.Open "UID=piadmin" 'Application.FullScreen = True ThisDisplay.Zoom = "FitAll"End Sub
I'm looking for solution in this repect either. I figure that your code works in ProcessBook, but how could I make my pdi shown in ActiveView to get the maxmized size according to different screen resolution?
Thanks, ZYY, 2019.04.23
Retrieving data ...