home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / phones_1 / options.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-06-08  |  5.7 KB  |  182 lines

  1. VERSION 2.00
  2. Begin Form frmOptions 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Options"
  6.    ClientHeight    =   1692
  7.    ClientLeft      =   3300
  8.    ClientTop       =   3408
  9.    ClientWidth     =   4248
  10.    ControlBox      =   0   'False
  11.    Height          =   2112
  12.    Left            =   3252
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   1692
  15.    ScaleWidth      =   4248
  16.    Top             =   3036
  17.    Width           =   4344
  18.    Begin VideoSoftElastic VSElastic1 
  19.       Align           =   5  'Fill Container
  20.       BevelChildren   =   1  'No Graphical
  21.       BevelInner      =   7  'Shadow
  22.       BevelInnerWidth =   4
  23.       ConvInfo        =   OPTIONS.FRX:0000
  24.       Height          =   1692
  25.       IntBkg          =   &H00C0C0C0&
  26.       Left            =   0
  27.       TabIndex        =   0
  28.       Top             =   0
  29.       Width           =   4248
  30.       Begin TextBox txtUserName 
  31.          BackColor       =   &H00E0FFFF&
  32.          FontBold        =   0   'False
  33.          FontItalic      =   0   'False
  34.          FontName        =   "MS Sans Serif"
  35.          FontSize        =   7.8
  36.          FontStrikethru  =   0   'False
  37.          FontUnderline   =   0   'False
  38.          Height          =   336
  39.          Left            =   132
  40.          MaxLength       =   40
  41.          TabIndex        =   1
  42.          Tag             =   "Enter your name here. This option can only be used in the registered version."
  43.          Top             =   480
  44.          Width           =   3888
  45.       End
  46.       Begin SSCheck ob3dHelp 
  47.          Font3D          =   0  'None
  48.          Height          =   204
  49.          Left            =   2724
  50.          TabIndex        =   2
  51.          Tag             =   "Click here to turn theses annoying little messages off!"
  52.          Top             =   180
  53.          Width           =   168
  54.       End
  55.       Begin SSCommand cmdCancel 
  56.          Caption         =   "Cancel"
  57.          Font3D          =   0  'None
  58.          ForeColor       =   &H000000FF&
  59.          Height          =   348
  60.          Left            =   2472
  61.          TabIndex        =   3
  62.          Tag             =   "Press herer to cancel changes to the options menu."
  63.          Top             =   1104
  64.          Width           =   948
  65.       End
  66.       Begin SSCommand cmd3dOK 
  67.          Caption         =   "OK"
  68.          Font3D          =   0  'None
  69.          ForeColor       =   &H0000FF00&
  70.          Height          =   348
  71.          Left            =   960
  72.          TabIndex        =   4
  73.          Tag             =   "Press here to save chages to the options menu."
  74.          Top             =   1104
  75.          Width           =   948
  76.       End
  77.       Begin Label Label1 
  78.          BackColor       =   &H8000000F&
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   "Help Notes"
  81.          ForeColor       =   &H00FF0000&
  82.          Height          =   216
  83.          Left            =   3000
  84.          TabIndex        =   5
  85.          Top             =   180
  86.          Width           =   1032
  87.       End
  88.       Begin Label Label8 
  89.          BackColor       =   &H8000000F&
  90.          BackStyle       =   0  'Transparent
  91.          Caption         =   "User Name:"
  92.          ForeColor       =   &H00FF0000&
  93.          Height          =   216
  94.          Left            =   132
  95.          TabIndex        =   6
  96.          Top             =   168
  97.          Width           =   1032
  98.       End
  99.    End
  100. Option Explicit
  101. Sub cmd3dOK_Click ()
  102. Dim res%
  103. 'set help notes
  104. HelpNotes = ob3dHelp.Value
  105. 'Load User Name
  106. UserName = txtUserName.Text
  107. res% = StringToINI("USERINFO", "USER", UserName, ".\HFAX.INI")
  108. If HelpNotes = True Then
  109.     res% = StringToINI("HELP", "NOTES", "TRUE", ".\HFAX.INI")
  110.     res% = StringToINI("HELP", "NOTES", "FALSE", ".\HFAX.INI")
  111. End If
  112. Unload frmOptions
  113. End Sub
  114. Sub cmd3dOK_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  115. If HelpNotes = True Then
  116. ReadyHelpTip cmd3dOK
  117. End If
  118. End Sub
  119. Sub cmdCancel_Click ()
  120. Unload frmOptions
  121. End Sub
  122. Sub cmdCancel_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  123. If HelpNotes = True Then
  124. ReadyHelpTip cmdCancel
  125. End If
  126. End Sub
  127. Sub Form_Load ()
  128. Dim I As Integer
  129. Dim FileName As String
  130. 'setup paused button
  131. 'set help notes
  132. ob3dHelp.Value = HelpNotes
  133. If ShareWareVersion = True Then
  134.     'Load User Name
  135.     txtUserName.Text = "SHAREWARE VERSION"
  136.     'txtUserName.Enabled = False
  137.     'Load User Name
  138.     txtUserName.Text = UserName
  139. End If
  140. End Sub
  141. Sub ob3dHelp_Click (Value As Integer)
  142. 'set help notes
  143.  HelpNotes = ob3dHelp.Value
  144. End Sub
  145. Sub ob3dHelp_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  146. If HelpNotes = True Then
  147. ReadyHelpTip ob3dHelp
  148. End If
  149. End Sub
  150. Sub txtImageSetDelay_KeyPress (KeyAscii As Integer)
  151. Dim res As Integer
  152. res = MsgBox("Use spin buttons to change values.", 16, "I'm Out")
  153. KeyAscii = 0
  154. Exit Sub
  155. End Sub
  156. Sub txtMsgSpeed_KeyPress (KeyAscii As Integer)
  157. Dim res As Integer
  158. res = MsgBox("Use spin buttons to change values.", 16, "I'm Out")
  159. KeyAscii = 0
  160. Exit Sub
  161. End Sub
  162. Sub txtUserName_KeyPress (KeyAscii As Integer)
  163. frmHelpTip.Hide
  164. End Sub
  165. Sub txtUserName_LostFocus ()
  166. If ShareWareVersion = True Then
  167.     'Load User Name
  168.     txtUserName.Text = "SHAREWARE VERSION"
  169. End If
  170. End Sub
  171. Sub txtUserName_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  172. If HelpNotes = True Then
  173. ReadyHelpTip txtUserName
  174. End If
  175. End Sub
  176. Sub txtWPDefault_KeyPress (KeyAscii As Integer)
  177. Dim res As Integer
  178. res = MsgBox("Use drop down list box to change item.", 16, "I'm Out")
  179. KeyAscii = 0
  180. Exit Sub
  181. End Sub
  182.