home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / fontfx1a / fotfx.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-12  |  10.3 KB  |  240 lines

  1. VERSION 5.00
  2. Begin VB.Form FontFX 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "                            Font FX"
  5.    ClientHeight    =   1800
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   5715
  9.    Icon            =   "FotFX.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   1800
  14.    ScaleWidth      =   5715
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton Command14 
  17.       Caption         =   "Diag 1"
  18.       Height          =   225
  19.       Left            =   3765
  20.       TabIndex        =   14
  21.       Top             =   1305
  22.       Width           =   615
  23.    End
  24.    Begin VB.CommandButton Command13 
  25.       Caption         =   "Diag 2"
  26.       Height          =   225
  27.       Left            =   4395
  28.       TabIndex        =   13
  29.       Top             =   1305
  30.       Width           =   615
  31.    End
  32.    Begin VB.CommandButton Command12 
  33.       Caption         =   "Start Loop"
  34.       Height          =   255
  35.       Left            =   3750
  36.       TabIndex        =   12
  37.       Top             =   1545
  38.       Width           =   1260
  39.    End
  40.    Begin VB.CommandButton Command11 
  41.       Caption         =   "Start Loop"
  42.       Height          =   255
  43.       Left            =   2490
  44.       TabIndex        =   11
  45.       Top             =   1545
  46.       Width           =   1260
  47.    End
  48.    Begin VB.CommandButton Command10 
  49.       Caption         =   "Top"
  50.       Height          =   225
  51.       Left            =   3225
  52.       TabIndex        =   10
  53.       Top             =   1305
  54.       Width           =   525
  55.    End
  56.    Begin VB.CommandButton Command9 
  57.       Caption         =   "Bottom"
  58.       Height          =   225
  59.       Left            =   2505
  60.       TabIndex        =   9
  61.       Top             =   1305
  62.       Width           =   720
  63.    End
  64.    Begin VB.CommandButton Command8 
  65.       Caption         =   "About"
  66.       Height          =   255
  67.       Left            =   5025
  68.       TabIndex        =   8
  69.       ToolTipText     =   "In msg box form"
  70.       Top             =   1290
  71.       Width           =   675
  72.    End
  73.    Begin VB.CommandButton Command7 
  74.       Caption         =   "About"
  75.       Height          =   255
  76.       Left            =   5025
  77.       TabIndex        =   7
  78.       ToolTipText     =   "In Grow/Shrink form"
  79.       Top             =   1545
  80.       Width           =   675
  81.    End
  82.    Begin VB.CommandButton Command6 
  83.       Caption         =   "Start Loop"
  84.       Height          =   255
  85.       Left            =   1320
  86.       TabIndex        =   6
  87.       Top             =   1545
  88.       Width           =   1170
  89.    End
  90.    Begin VB.CommandButton Command5 
  91.       Caption         =   "Left"
  92.       Height          =   225
  93.       Left            =   1995
  94.       TabIndex        =   5
  95.       Top             =   1305
  96.       Width           =   495
  97.    End
  98.    Begin VB.CommandButton Command4 
  99.       Caption         =   "Right"
  100.       Height          =   225
  101.       Left            =   1320
  102.       TabIndex        =   4
  103.       Top             =   1305
  104.       Width           =   675
  105.    End
  106.    Begin VB.CommandButton Command3 
  107.       Caption         =   "Start Loop"
  108.       Height          =   255
  109.       Left            =   0
  110.       TabIndex        =   3
  111.       Top             =   1545
  112.       Width           =   1320
  113.    End
  114.    Begin VB.CommandButton Command2 
  115.       Caption         =   "Shrink"
  116.       Height          =   225
  117.       Left            =   615
  118.       TabIndex        =   2
  119.       Top             =   1305
  120.       Width           =   705
  121.    End
  122.    Begin VB.CommandButton Command1 
  123.       Caption         =   "Grow"
  124.       Height          =   225
  125.       Left            =   0
  126.       TabIndex        =   1
  127.       Top             =   1305
  128.       Width           =   615
  129.    End
  130.    Begin VB.PictureBox Picture1 
  131.       AutoRedraw      =   -1  'True
  132.       BeginProperty Font 
  133.          Name            =   "Arial"
  134.          Size            =   9.75
  135.          Charset         =   0
  136.          Weight          =   400
  137.          Underline       =   0   'False
  138.          Italic          =   0   'False
  139.          Strikethrough   =   0   'False
  140.       EndProperty
  141.       ForeColor       =   &H000000FF&
  142.       Height          =   1290
  143.       Left            =   0
  144.       ScaleHeight     =   1230
  145.       ScaleWidth      =   5655
  146.       TabIndex        =   0
  147.       Top             =   0
  148.       Width           =   5715
  149.    End
  150. Attribute VB_Name = "FontFX"
  151. Attribute VB_GlobalNameSpace = False
  152. Attribute VB_Creatable = False
  153. Attribute VB_PredeclaredId = True
  154. Attribute VB_Exposed = False
  155. Private Sub Command1_Click()
  156. Call Grow("aa", 72, 8, "0.0001", Picture1) '(The Text you want to show, The Maximum font size you want, The minimum font size you want, The Pause between changing font sizes, The picture box you want it to show up in)
  157. End Sub
  158. Private Sub Command10_Click()
  159. Call TxtTop("aa", ".0005", 1, Middle, Picture1)
  160. End Sub
  161. Private Sub Command11_Click()
  162. If Command11.Caption = "Start Loop" Then 'If..Else..End If block to change the button caption to stop the loop
  163. Command11.Caption = "Stop Loop"
  164. Command11.Caption = "Start Loop"
  165. End If
  166. Do Until Command11.Caption = "Start Loop" 'Start Loop, Stop looping if the button says Start Loop
  167. Call TxtBottom("aa", ".0001", 1, Middle, Picture1) '(The Text, The Pause, the increment of movement, the possition of the y axis, top bottom or middle, the picturebox)
  168. Call TxtTop("aa", ".0001", 1, Middle, Picture1) '(The Text, The Pause, the increment of movement, the possition of the y axis, top bottom or middle, the picturebox)
  169. Loop 'Loop to beginnning
  170. End Sub
  171. Private Sub Command12_Click()
  172. If Command12.Caption = "Start Loop" Then 'If..Else..End If block to change the button caption to stop the loop
  173. Command12.Caption = "Stop Loop"
  174. Command12.Caption = "Start Loop"
  175. End If
  176. Do Until Command12.Caption = "Start Loop" 'Start loop, Stop looping if the button says Start Loop
  177. Call TxtDiagTopRight("aa", ".005", Picture1)
  178. Call TxtDiagTopLeft("aa", ".005", Picture1)
  179. Loop 'Loop to beggning
  180. End Sub
  181. Private Sub Command13_Click()
  182. Call TxtDiagTopRight("aa", ".005", Picture1)
  183. End Sub
  184. Private Sub Command14_Click()
  185. Call TxtDiagTopLeft("aa", ".005", Picture1)
  186. End Sub
  187. Private Sub Command2_Click()
  188. Call Shrink("aa", 72, 8, "0.0001", Picture1) '(The Text you want to show, The Maximum font size you want, The minimum font size you want, The Pause between changing font sizes, The picture box you want it to show up in)
  189. End Sub
  190. Private Sub Command3_Click()
  191. If Command3.Caption = "Start Loop" Then 'If..Else..End If block to change the button caption to stop the loop
  192. Command3.Caption = "Stop Loop"
  193. Command3.Caption = "Start Loop"
  194. End If
  195. Do Until Command3.Caption = "Start Loop" 'Start loop, Stop looping if the button says Start Loop
  196. Call Grow("aa", 72, 8, "0.0001", Picture1) '(The Text you want to show, The Maximum font size you want, The minimum font size you want, The Pause between changing font sizes, The picture box you want it to show up in)
  197. Call Shrink("aa", 72, 8, "0.0001", Picture1) '(The Text you want to show, The Maximum font size you want, The minimum font size you want, The Pause between changing font sizes, The picture box you want it to show up in)
  198. Loop 'Loop to beginning
  199. End Sub
  200. Private Sub Command4_Click()
  201. Call TxtRight("aa", ".0001", 1, Bottom, Picture1) '(The Text you want to show, The pause between the increments, the increment of movement, the possition of the y axis, top bottom or middle, The picture box you want it to show up in)
  202. End Sub
  203. Private Sub Command5_Click()
  204. Call TxtLeft("aa", ".0001", 1, Bottom, Picture1) '(The Text you want to show, The pause between the increments, the increment of movement, the possition of the y axis, top bottom or middle, The picture box you want it to show up in)
  205. End Sub
  206. Private Sub Command6_Click()
  207. If Command6.Caption = "Start Loop" Then 'If..Else..End If block to change the button caption to stop the loop
  208. Command6.Caption = "Stop Loop"
  209. Command6.Caption = "Start Loop"
  210. End If
  211. Do Until Command6.Caption = "Start Loop" 'Start loop, Stop looping if the button says Start Loop
  212. Call TxtRight("aa", ".0001", 1, Bottom, Picture1) '(The Text, The Pause, the increment of movement, the possition of the y axis, top bottom or middle, the picturebox)
  213. Call TxtLeft("aa", ".0001", 1, Bottom, Picture1) '(The Text, The Pause, the increment of movement, the possition of the y axis, top bottom or middle, the picturebox)
  214. Loop 'Loop to beggning
  215. End Sub
  216. Private Sub Command7_Click()
  217. Call Grow("Font FX", 40, 8, ".005", Picture1)
  218. Call Shrink("By: Stephen", 50, 8, ".005", Picture1)
  219. Call Grow("Email: MaRZ001@juno.com", 40, 8, ".1", Picture1)
  220. Call Shrink("Send some Comments/Suggestions/Questions/Complaints", 50, 8, ".1", Picture1)
  221. Call Grow("Oh, yea...", 40, 8, ".005", Picture1)
  222. Call Shrink("More to come By 09/11/99", 40, 8, ".005", Picture1)
  223. Call Grow("Just wanted to get this out", 40, 8, ".005", Picture1)
  224. Call Shrink("I will improve the Grow/Shrink", 40, 8, ".005", Picture1)
  225. Call Grow("so that the min size can't", 40, 8, ".005", Picture1)
  226. Call Shrink("go below zero", 40, 8, ".005", Picture1)
  227. Call Grow("I need to think up of some", 40, 8, ".005", Picture1)
  228. Call Shrink("more FX besides TxtTop", 40, 8, ".005", Picture1)
  229. Call Grow("and TxtBottom, I could", 40, 8, ".005", Picture1)
  230. Call Shrink("work on TxtDiagonal1 and 2", 40, 8, ".005", Picture1)
  231. Call Grow("PS.", 40, 8, ".005", Picture1)
  232. Call Shrink("Happy B-day MOM!(06/04/99)", 40, 8, ".005", Picture1)
  233. End Sub
  234. Private Sub Command8_Click()
  235. MsgBox "Font FX" & Chr(10) & Chr(13) & "By: Stephen" & Chr(10) & Chr(13) & "Email:MaRZ001@juno.com" & Chr(10) & Chr(13) & "Send some Comments/Suggestions/Questions/Complaints" & Chr(10) & Chr(13) & "Oh yea..." & Chr(10) & Chr(13) & "More to come By 09/11/99" & Chr(10) & Chr(13) & "Just wanted to get this out" & Chr(10) & Chr(13) & "I will improve the Grow/Shrink" & Chr(10) & Chr(13) & "so that the min size can't" & Chr(10) & Chr(13) & "go below zero" & Chr(10) & Chr(13) & "I need tot think up of some" & Chr(10) & Chr(13) & "more FX besides TxtTop" & Chr(10) & Chr(13) & "and TxtBottom, I could" & Chr(10) & Chr(13) & "Work on TxtDiagonal1 and 2" & Chr(10) & Chr(13) & "PS." & Chr(10) & Chr(13) & "Happy B-day MOM!(06/04/99)", vbOKOnly, "Font FX"
  236. End Sub
  237. Private Sub Command9_Click()
  238. Call TxtBottom("aa", ".0005", 1, Middle, Picture1)
  239. End Sub
  240.