home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / isconn_1 / pagesetu.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-31  |  10.9 KB  |  386 lines

  1. VERSION 5.00
  2. Begin VB.Form Form3 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Page setup"
  5.    ClientHeight    =   3735
  6.    ClientLeft      =   45
  7.    ClientTop       =   285
  8.    ClientWidth     =   5985
  9.    LinkTopic       =   "Form3"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3735
  13.    ScaleWidth      =   5985
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.CommandButton Command11 
  17.       BackColor       =   &H00FF0000&
  18.       Height          =   375
  19.       Left            =   3840
  20.       Style           =   1  'Graphical
  21.       TabIndex        =   11
  22.       Top             =   3240
  23.       Width           =   735
  24.    End
  25.    Begin VB.CommandButton Command10 
  26.       Caption         =   "..."
  27.       Height          =   255
  28.       Left            =   4320
  29.       TabIndex        =   7
  30.       Top             =   2160
  31.       Width           =   255
  32.    End
  33.    Begin VB.TextBox Text6 
  34.       Height          =   285
  35.       Left            =   1680
  36.       Locked          =   -1  'True
  37.       TabIndex        =   25
  38.       TabStop         =   0   'False
  39.       Top             =   2160
  40.       Width           =   2655
  41.    End
  42.    Begin VB.CommandButton Command9 
  43.       Caption         =   "..."
  44.       Height          =   255
  45.       Left            =   4320
  46.       TabIndex        =   6
  47.       Top             =   1800
  48.       Width           =   255
  49.    End
  50.    Begin VB.TextBox Text5 
  51.       Height          =   285
  52.       Left            =   1680
  53.       Locked          =   -1  'True
  54.       TabIndex        =   22
  55.       TabStop         =   0   'False
  56.       Top             =   1800
  57.       Width           =   2655
  58.    End
  59.    Begin VB.CommandButton Command8 
  60.       BackColor       =   &H00000000&
  61.       Height          =   375
  62.       Left            =   1560
  63.       Style           =   1  'Graphical
  64.       TabIndex        =   9
  65.       Top             =   3240
  66.       Width           =   735
  67.    End
  68.    Begin VB.CommandButton Command7 
  69.       BackColor       =   &H00000080&
  70.       Height          =   375
  71.       Left            =   1560
  72.       Style           =   1  'Graphical
  73.       TabIndex        =   8
  74.       Top             =   2760
  75.       Width           =   735
  76.    End
  77.    Begin VB.CommandButton Command6 
  78.       BackColor       =   &H00FFFFFF&
  79.       Height          =   375
  80.       Left            =   3840
  81.       Style           =   1  'Graphical
  82.       TabIndex        =   10
  83.       Top             =   2760
  84.       Width           =   735
  85.    End
  86.    Begin VB.CommandButton Command5 
  87.       Caption         =   "Close"
  88.       Height          =   255
  89.       Left            =   4800
  90.       TabIndex        =   13
  91.       Top             =   120
  92.       Width           =   1095
  93.    End
  94.    Begin VB.CommandButton Command3 
  95.       Caption         =   ">"
  96.       Height          =   255
  97.       Left            =   4320
  98.       TabIndex        =   4
  99.       Top             =   960
  100.       Width           =   255
  101.    End
  102.    Begin VB.CommandButton Command4 
  103.       Caption         =   "<"
  104.       Height          =   255
  105.       Left            =   4080
  106.       TabIndex        =   3
  107.       Top             =   960
  108.       Width           =   255
  109.    End
  110.    Begin VB.CommandButton Command2 
  111.       Caption         =   ">"
  112.       Height          =   255
  113.       Left            =   4320
  114.       TabIndex        =   2
  115.       Top             =   600
  116.       Width           =   255
  117.    End
  118.    Begin VB.CommandButton Command1 
  119.       Caption         =   "<"
  120.       Height          =   255
  121.       Left            =   4080
  122.       TabIndex        =   1
  123.       Top             =   600
  124.       Width           =   255
  125.    End
  126.    Begin VB.TextBox Text4 
  127.       Height          =   285
  128.       Left            =   1680
  129.       ScrollBars      =   3  'Both
  130.       TabIndex        =   5
  131.       Top             =   1440
  132.       Width           =   2895
  133.    End
  134.    Begin VB.TextBox Text3 
  135.       Height          =   285
  136.       Left            =   1680
  137.       TabIndex        =   17
  138.       TabStop         =   0   'False
  139.       Top             =   960
  140.       Width           =   2295
  141.    End
  142.    Begin VB.TextBox Text2 
  143.       Height          =   285
  144.       Left            =   1680
  145.       TabIndex        =   12
  146.       TabStop         =   0   'False
  147.       Top             =   600
  148.       Width           =   2295
  149.    End
  150.    Begin VB.TextBox Text1 
  151.       Height          =   285
  152.       Left            =   1680
  153.       Locked          =   -1  'True
  154.       TabIndex        =   0
  155.       Top             =   120
  156.       Width           =   2895
  157.    End
  158.    Begin VB.Label Label10 
  159.       AutoSize        =   -1  'True
  160.       BackStyle       =   0  'Transparent
  161.       Caption         =   "Link color:"
  162.       Height          =   195
  163.       Left            =   2400
  164.       TabIndex        =   26
  165.       Top             =   3360
  166.       Width           =   735
  167.    End
  168.    Begin VB.Label Label9 
  169.       AutoSize        =   -1  'True
  170.       BackStyle       =   0  'Transparent
  171.       Caption         =   "Background picture:"
  172.       Height          =   195
  173.       Left            =   120
  174.       TabIndex        =   24
  175.       Top             =   2280
  176.       Width           =   1440
  177.    End
  178.    Begin VB.Line Line3 
  179.       X1              =   120
  180.       X2              =   4680
  181.       Y1              =   2640
  182.       Y2              =   2640
  183.    End
  184.    Begin VB.Label Label8 
  185.       AutoSize        =   -1  'True
  186.       BackStyle       =   0  'Transparent
  187.       Caption         =   "Background sound: "
  188.       Height          =   195
  189.       Left            =   120
  190.       TabIndex        =   23
  191.       Top             =   1800
  192.       Width           =   1440
  193.    End
  194.    Begin VB.Label Label7 
  195.       AutoSize        =   -1  'True
  196.       BackStyle       =   0  'Transparent
  197.       Caption         =   "Text color:- "
  198.       Height          =   195
  199.       Left            =   120
  200.       TabIndex        =   21
  201.       Top             =   3360
  202.       Width           =   840
  203.    End
  204.    Begin VB.Label Label6 
  205.       AutoSize        =   -1  'True
  206.       BackStyle       =   0  'Transparent
  207.       Caption         =   "Visited link:-"
  208.       Height          =   195
  209.       Left            =   120
  210.       TabIndex        =   20
  211.       Top             =   2880
  212.       Width           =   840
  213.    End
  214.    Begin VB.Label Label5 
  215.       AutoSize        =   -1  'True
  216.       BackStyle       =   0  'Transparent
  217.       Caption         =   "Background color:-"
  218.       Height          =   195
  219.       Left            =   2400
  220.       TabIndex        =   19
  221.       Top             =   2880
  222.       Width           =   1350
  223.    End
  224.    Begin VB.Label Label4 
  225.       AutoSize        =   -1  'True
  226.       Caption         =   "Title:-"
  227.       Height          =   195
  228.       Left            =   120
  229.       TabIndex        =   18
  230.       Top             =   1440
  231.       Width           =   390
  232.    End
  233.    Begin VB.Line Line2 
  234.       X1              =   120
  235.       X2              =   4560
  236.       Y1              =   1320
  237.       Y2              =   1320
  238.    End
  239.    Begin VB.Line Line1 
  240.       X1              =   120
  241.       X2              =   4560
  242.       Y1              =   480
  243.       Y2              =   480
  244.    End
  245.    Begin VB.Label Label3 
  246.       AutoSize        =   -1  'True
  247.       Caption         =   "Page height:-"
  248.       Height          =   195
  249.       Left            =   120
  250.       TabIndex        =   16
  251.       Top             =   1000
  252.       Width           =   945
  253.    End
  254.    Begin VB.Label Label2 
  255.       AutoSize        =   -1  'True
  256.       Caption         =   "Page width:-"
  257.       Height          =   195
  258.       Left            =   120
  259.       TabIndex        =   15
  260.       Top             =   660
  261.       Width           =   885
  262.    End
  263.    Begin VB.Label Label1 
  264.       AutoSize        =   -1  'True
  265.       Caption         =   "Filename:-"
  266.       Height          =   195
  267.       Left            =   120
  268.       TabIndex        =   14
  269.       Top             =   160
  270.       Width           =   720
  271.    End
  272. Attribute VB_Name = "Form3"
  273. Attribute VB_GlobalNameSpace = False
  274. Attribute VB_Creatable = False
  275. Attribute VB_PredeclaredId = True
  276. Attribute VB_Exposed = False
  277. Private Sub Command1_Click()
  278. On Error Resume Next
  279. Text2.Text = Val(Text2.Text) - 100
  280. End Sub
  281. Private Sub Command10_Click()
  282. On Error GoTo er
  283. MDI.CommonDialog1.Filter = "Gif images(*.gif)|*.gif|Jpeg inmages(*.jpg)|*.jpg|Windows bitmap(*.bmp)|*.bmp|Windows Metafile(*.wmf)|*.wmf|Icons(*.ico)|*.ico|Cursers(*.cur)|*.cur|"
  284. MDI.CommonDialog1.ShowOpen
  285. Text6.Text = MDI.CommonDialog1.filename
  286. MDI.Picture11.Tag = MDI.CommonDialog1.filename
  287. MDI.Picture11.Picture = LoadPicture(MDI.CommonDialog1.filename)
  288. Exit Sub
  289. If Err.Number <> 32755 Then
  290. MsgBox Err.Description
  291. End If
  292. End Sub
  293. Private Sub Command11_Click()
  294. On Error GoTo er
  295. MDI.CommonDialog1.ShowColor
  296. Command11.BackColor = MDI.CommonDialog1.Color
  297. lclr = Command11.BackColor
  298. Exit Sub
  299. If Err.Number <> 32755 Then
  300. MsgBox Err.Description
  301. End If
  302. End Sub
  303. Private Sub Command2_Click()
  304. On Error Resume Next
  305. Text2.Text = Val(Text2.Text) + 100
  306. End Sub
  307. Private Sub Command3_Click()
  308. On Error Resume Next
  309. Text3.Text = Val(Text3.Text) + 100
  310. End Sub
  311. Private Sub Command4_Click()
  312. On Error Resume Next
  313. Text3.Text = Val(Text3.Text) - 100
  314. End Sub
  315. Private Sub Command5_Click()
  316. Unload Me
  317. End Sub
  318. Private Sub Command6_Click()
  319. On Error GoTo er
  320. MDI.CommonDialog1.ShowColor
  321. Command6.BackColor = MDI.CommonDialog1.Color
  322. bgclr = Command6.BackColor
  323. Form1.BackColor = Command6.BackColor
  324. Exit Sub
  325. If Err.Number <> 32755 Then
  326. MsgBox Err.Description
  327. End If
  328. End Sub
  329. Private Sub Command7_Click()
  330. On Error GoTo er
  331. MDI.CommonDialog1.ShowColor
  332. Command7.BackColor = MDI.CommonDialog1.Color
  333. vclr = Command7.BackColor
  334. Exit Sub
  335. If Err.Number <> 32755 Then
  336. MsgBox Err.Description
  337. End If
  338. End Sub
  339. Private Sub Command8_Click()
  340. On Error GoTo er
  341. MDI.CommonDialog1.ShowColor
  342. Command8.BackColor = MDI.CommonDialog1.Color
  343. tclr = Command8.BackColor
  344. Exit Sub
  345. If Err.Number <> 32755 Then
  346. MsgBox Err.Description
  347. End If
  348. End Sub
  349. Private Sub Command9_Click()
  350. On Error GoTo er
  351. MDI.CommonDialog1.Filter = "Wav files(*.wav)|*.wav|Midi(*.mid)|*.mid|Aiff sound(*.aif;*.aifc;*.aiff)|*.aif;*.aifc;*.aiff|AU sound(*.au;*.snd)|*.au;*.snd|"
  352. MDI.CommonDialog1.ShowOpen
  353. Text5.Text = MDI.CommonDialog1.filename
  354. Exit Sub
  355. If Err.Number <> 32755 Then
  356. MsgBox Err.Description
  357. End If
  358. End Sub
  359. Private Sub Form_Load()
  360. On Error Resume Next
  361. Text1.Text = curfile
  362. Text2.Text = Form1.Width
  363. Text3.Text = Form1.Height
  364. Text4.Text = Form1.Tag
  365. Text5.Text = bgsound
  366. Text6.Text = MDI.Picture11.Tag
  367. Command6.BackColor = bgclr
  368. Command7.BackColor = vclr
  369. Command8.BackColor = tclr
  370. Command11.BackColor = lclr
  371. End Sub
  372. Private Sub Text2_Change()
  373.  Form1.Width = Text2.Text
  374. End Sub
  375. Private Sub Text3_Change()
  376.  Form1.Height = Text3.Text
  377. End Sub
  378. Private Sub Text4_Change()
  379. On Error Resume Next
  380.  Form1.Tag = Text4.Text
  381. End Sub
  382. Private Sub Text5_Change()
  383. On Error Resume Next
  384. bgsound = Text5.Text
  385. End Sub
  386.