$INCLUDE: 'C:\FG\INTRFACE.FOR'

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      REAL*8 HALF
      INTEGER*2 FG_GETMODE
      REAL*8 FG_SWLENGTH

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(16)
      CALL FG_INITW
      CALL FG_SETWORLD(0.0,6.39,0.0,3.49)
      CALL FG_SETSIZEW(0.21)

      CALL FG_SETCOLOR(7)
      HALF = FG_SWLENGTH(' Hello there. ',14) * 0.5
      CALL FG_RECTW(3.2-HALF,3.2+HALF,1.6,1.9)

      CALL FG_SETCOLOR(10)
      CALL FG_MOVEW(3.2,1.65)
      CALL FG_SWTEXT('Hello there.',12,0)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
