ScriptPro Editor

This topic is for use by scriptwriters who are using ScriptPro Editor to create custom scripts for their agencies.

Agents can go to Using ScriptPro Scripts for more information about using custom or standard scripts within Travelport Smartpoint.

 

Image Control

Images can be added to the dialog box. Image file types that are supported are .jpg, .png, .gif, .bmp, and .tif. The image will always be overlaid by any controls placed on top of it. An image may be re-sized by the scriptwriter.

Bitmap examples with button commands are identified in the dialog box below.

Creating an Image control and associated attributes

  1. Right-click anywhere in the background of the dialog box.

  2. Select Label. A new control is added in the Appearance section.

  3. Select Image in the ContentType of the Behavior section.
  4. Enter the FileName for your image. The default path for the image is in the Bitmap folder.

     

    Dynamic FileNames can be created by using a variable for the FileName.

    Code example:

    VARIABLES

    RET_CODE=0

    airline = ""

    $StrButton = ""

    filenumber=""

    ROUTINES

    BEGIN

     

    filenumber="02"

    airline="Block" + filenumber +".jpg"

     

    DIALOG ("TestImageWithVariable.dlg" , RET_CODE, $StrButton )

     

    END

    ENDS

Example of a dialog box with a jpg image