3 Replies Latest reply on Dec 24, 2014 4:29 AM by Eugene Lee

    Display resolution Settings in Processbook

    punya.sahoo

      Hello,

       

      Anyone know how to set the display resolution in Processbook. I want to set the display screen size as per my desktop resolution.

        • Re: Display resolution Settings in Processbook
          wteo

          Hi Punya,

           

          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"

            End Sub


          Let me know if it helps.


          Merry X'mas!

            • Re: Display resolution Settings in Processbook
              punya.sahoo

              Hi Wilson,

               

              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.

               

              Thanks

              Punya

                • Re: Display resolution Settings in Processbook
                  Eugene Lee

                  Hi Punya,

                   

                  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

                   

                  For example:

                   

                  Sub resize()

                   

                  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

                  Next s

                   

                  End Sub