VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "Richtx32.ocx"
Begin VB.Form frmViewer 
   Caption         =   "Virtual Hypnotist"
   ClientHeight    =   6615
   ClientLeft      =   2745
   ClientTop       =   1680
   ClientWidth     =   6915
   Icon            =   "frmViewer.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   6615
   ScaleWidth      =   6915
   Begin RichTextLib.RichTextBox RT1 
      Height          =   5895
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Visible         =   0   'False
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   10398
      _Version        =   393217
      Enabled         =   -1  'True
      ReadOnly        =   -1  'True
      ScrollBars      =   3
      AutoVerbMenu    =   -1  'True
      TextRTF         =   $"frmViewer.frx":08CA
   End
   Begin VB.PictureBox Picture1 
      Height          =   5895
      Left            =   120
      ScaleHeight     =   5835
      ScaleWidth      =   6555
      TabIndex        =   3
      Top             =   120
      Visible         =   0   'False
      Width           =   6615
   End
   Begin VB.CommandButton Command1 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   2880
      TabIndex        =   1
      Top             =   6120
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   5895
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   2
      Top             =   120
      Visible         =   0   'False
      Width           =   6615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   9
      Left            =   720
      Top             =   1920
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   8
      Left            =   0
      Top             =   1920
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   0
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   1
      Left            =   0
      Top             =   480
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   2
      Left            =   0
      Top             =   960
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   3
      Left            =   0
      Top             =   1440
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   4
      Left            =   720
      Top             =   0
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   5
      Left            =   720
      Top             =   480
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   6
      Left            =   720
      Top             =   960
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Shape CustShape 
      BackColor       =   &H80000006&
      BorderColor     =   &H80000009&
      Height          =   375
      Index           =   7
      Left            =   720
      Top             =   1440
      Visible         =   0   'False
      Width           =   615
   End
End
Attribute VB_Name = "frmViewer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Virtual Hypnotist
'©2003-2008 FollowTheWatch Software
'http://vhypno.sourceforge.net
'http://sourceforge.net/projects/vhypno
'Contact - followthewatch55@yahoo.com

'This program is free software; you can redistribute it and/or
'modify it under the terms of the GNU General Public License
'as published by the Free Software Foundation; either version 2
'of the License, or (at your option) any later version.

'This program is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with this program; if not, write to the Free Software
'Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Option Explicit
Private ModeID As Integer

Public Sub View(mode As Integer, FormCaption As String, WndState As Integer, Optional TextValue As String)
Me.Caption = FormCaption
Me.WindowState = WndState

If mode = 1 Then
    ModeID = 1
    Text1.Text = TextValue
    Text1.Visible = True
    Picture1.Visible = False
    RT1.Visible = False
End If
If mode = 2 Then
    ModeID = 2
    Text1.Visible = False
    Picture1.Visible = True
    RT1.Visible = False
End If
If mode = 3 Then
    ModeID = 3
    RT1.TextRTF = TextValue
    Text1.Visible = False
    Picture1.Visible = False
    RT1.Visible = True
End If
Me.Show
End Sub

Private Sub Command1_Click()
Unload Me
End Sub

Private Sub Form_Activate()
If ModeID = 2 Then VisualMaker.SetFocus
End Sub

Private Sub Form_Load()
Me.Left = (ScreenX / 2) - (Me.Width / 2)
Me.top = (ScreenY / 2) - (Me.Height / 2)
Command1.Left = (Me.Width / 2) - (Command1.Width / 2)
End Sub

Private Sub Form_Resize()
Command1.Left = (Me.Width / 2) - (Command1.Width / 2)
Command1.top = Me.Height - 900
Picture1.Width = Me.Width - 420
Picture1.Height = Me.Height - 1125
Text1.Width = Me.Width - 420
Text1.Height = Me.Height - 1125
RT1.Width = Me.Width - 420
RT1.Height = Me.Height - 1125
Picture1.Cls
If ModeID = 2 And VisualMode = 3 Then Call SetCustomShapes(Me)
End Sub

