Configure a screen saver

Configure a screen saver to hide application interface after specified inactivity period.
  1. Configure a screen saver object:
    1. Add a rectangle or a different container and configure the child objects to create a screen saver.
      For more information, see Graphic objects.
    2. In
      Project view
      , select the screen saver object and in
      Properties
      , set these values:
      • Visible
        . Set to
        False
        .
      • Hit Test Visible
        . Set to
        True
        .
    3. In
      Events
      , next to
      MouseDown event
      , select
      Add
      and then select
      Commands
      Variable commands
      Set variable value
      .
    4. Under
      Input arguments
      , in
      VariableToModify
      , select
      Select node
      ,and then select the
      Visible
      property of the screen saver object.
    5. Set
      Value
      to
      False
      .
    6. Make sure the screen saver object is in the highest Z order by dragging the screen saver object to the bottom of the container in
      Project view
      .
  2. From the toolbar, select
    Template Libraries
    and then search for
    Idle Timeout
  3. Under
    Components
    , drag
    Idle Timeout
    directly into
    MainWindow (type)
    or the screen in
    Project view
    to display the screen saver.
    For more information about screens, see Screen.
  4. In
    Libraries
    , select
    Close
    .
  5. In
    Project view
    , select
    IdleTimeoutLogic
    and set these values in
    Properties
    :
    • Enabled
      . Set to
      True
    • Duration
      . Set the idle timeout.
  6. In
    Project view
    , expand the imported
    IdleTimeoutLogic
    and select
    OnTimeout
    .
  7. In
    Properties
    , in the
    OnTimeout
    value, select
    Edit
    and then select
    Commands
    Variable commands
    Set variable value
    .
  8. Under
    Input arguments
    , in
    VariableToModify
    , choose
    Select node
    and select the
    Visible
    property of the screen saver object.
  9. Set
    Value
    to
    True
    .
Download a sample project:
ScreenSaver.zip.
TIP: You can create a login screen to appear after an automatic logout. An example login screen may include an initially hidden rectangle object that adjusts to the size of the main window and has
Visibility
set to
False
.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.