Reflection Desktop VBA Guide
HowTos / Customize the Open Systems Display
In This Topic
    Customize the Open Systems Display
    In This Topic

    You can use a macro to change the dimensions (rows and columns) of an Open Systems display.

    If you prefer to run macros in pre-configured sessions instead of creating your own sessions, you can download the VBA Sample Sessions and open the change-display-when-certain-strings-are-received.rdox (Open Systems) file. The download package contains everything you need to run the macros in this file. See Download the VBA Sample Sessions.

     You can run this macro automatically when certain strings are returned by the host or when specific events occur (see Navigating Through Open Systems Sessions and Using Reflection Events).

    This sample applies only to Open Systems terminals.

    To run this sample

    1. In an Open Systems session, on the Tools tab, open the VBA Editor and create a new code module.
    2. Paste this sample into the module code window and then run the sample.
      Sub ChangeDisplay()           
          'Set the number of rows and columns
          ThisScreen.DisplayColumns = 100
          ThisScreen.DisplayRows = 40
      End Sub
      
    The valid range for the number of rows is 24 - 4000. The valid range for the number of columns is 80 - 999.
    See Also