home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Mandelbrot2141371232009.psc / Form2.frm < prev    next >
Text File  |  2009-01-17  |  19KB  |  638 lines

  1. VERSION 5.00
  2. Begin VB.Form Form2 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "MSSS Configuration"
  5.    ClientHeight    =   7095
  6.    ClientLeft      =   45
  7.    ClientTop       =   345
  8.    ClientWidth     =   3015
  9.    Icon            =   "Form2.frx":0000
  10.    LinkTopic       =   "Form2"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   7095
  14.    ScaleWidth      =   3015
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.HScrollBar HScroll11 
  17.       Height          =   255
  18.       Left            =   2040
  19.       Max             =   255
  20.       TabIndex        =   34
  21.       Top             =   5040
  22.       Width           =   855
  23.    End
  24.    Begin VB.HScrollBar HScroll1 
  25.       Height          =   255
  26.       Left            =   2040
  27.       Max             =   255
  28.       Min             =   1
  29.       TabIndex        =   7
  30.       Top             =   360
  31.       Value           =   1
  32.       Width           =   855
  33.    End
  34.    Begin VB.HScrollBar HScroll10 
  35.       Height          =   255
  36.       Left            =   2040
  37.       Max             =   255
  38.       Min             =   1
  39.       TabIndex        =   31
  40.       Top             =   4680
  41.       Value           =   1
  42.       Width           =   855
  43.    End
  44.    Begin VB.HScrollBar HScroll9 
  45.       Height          =   255
  46.       Left            =   2040
  47.       Max             =   255
  48.       Min             =   1
  49.       TabIndex        =   29
  50.       Top             =   4320
  51.       Value           =   1
  52.       Width           =   855
  53.    End
  54.    Begin VB.ComboBox Combo1 
  55.       Height          =   315
  56.       ItemData        =   "Form2.frx":164A
  57.       Left            =   1560
  58.       List            =   "Form2.frx":165A
  59.       TabIndex        =   25
  60.       Text            =   "Ocean"
  61.       Top             =   1320
  62.       Width           =   1335
  63.    End
  64.    Begin VB.CheckBox Check1 
  65.       Caption         =   "No Highlight Box"
  66.       Height          =   375
  67.       Left            =   120
  68.       TabIndex        =   24
  69.       Top             =   3600
  70.       Width           =   1575
  71.    End
  72.    Begin VB.HScrollBar HScroll8 
  73.       Height          =   255
  74.       LargeChange     =   16
  75.       Left            =   240
  76.       Max             =   255
  77.       TabIndex        =   19
  78.       Top             =   3240
  79.       Value           =   255
  80.       Width           =   735
  81.    End
  82.    Begin VB.HScrollBar HScroll7 
  83.       Height          =   255
  84.       LargeChange     =   16
  85.       Left            =   1200
  86.       Max             =   255
  87.       TabIndex        =   18
  88.       Top             =   3240
  89.       Value           =   255
  90.       Width           =   735
  91.    End
  92.    Begin VB.HScrollBar HScroll6 
  93.       Height          =   255
  94.       LargeChange     =   16
  95.       Left            =   2160
  96.       Max             =   255
  97.       TabIndex        =   17
  98.       Top             =   3240
  99.       Value           =   255
  100.       Width           =   735
  101.    End
  102.    Begin VB.CommandButton Command2 
  103.       Caption         =   "Test and Exit"
  104.       Height          =   375
  105.       Left            =   1800
  106.       TabIndex        =   16
  107.       Top             =   2520
  108.       Width           =   1095
  109.    End
  110.    Begin VB.HScrollBar HScroll5 
  111.       Height          =   255
  112.       Left            =   2040
  113.       Max             =   255
  114.       Min             =   1
  115.       TabIndex        =   15
  116.       Top             =   720
  117.       Value           =   1
  118.       Width           =   855
  119.    End
  120.    Begin VB.HScrollBar HScroll4 
  121.       Height          =   255
  122.       LargeChange     =   16
  123.       Left            =   2160
  124.       Max             =   255
  125.       TabIndex        =   10
  126.       Top             =   2160
  127.       Value           =   255
  128.       Width           =   735
  129.    End
  130.    Begin VB.HScrollBar HScroll3 
  131.       Height          =   255
  132.       LargeChange     =   16
  133.       Left            =   1200
  134.       Max             =   255
  135.       TabIndex        =   9
  136.       Top             =   2160
  137.       Value           =   255
  138.       Width           =   735
  139.    End
  140.    Begin VB.HScrollBar HScroll2 
  141.       Height          =   255
  142.       LargeChange     =   16
  143.       Left            =   240
  144.       Max             =   255
  145.       TabIndex        =   8
  146.       Top             =   2160
  147.       Value           =   255
  148.       Width           =   735
  149.    End
  150.    Begin VB.OptionButton Option3 
  151.       Caption         =   "Custom Colour:"
  152.       Height          =   255
  153.       Left            =   120
  154.       TabIndex        =   6
  155.       Top             =   1800
  156.       Width           =   1455
  157.    End
  158.    Begin VB.OptionButton Option2 
  159.       Caption         =   "Grey Scale"
  160.       Height          =   255
  161.       Left            =   120
  162.       TabIndex        =   5
  163.       Top             =   1560
  164.       Width           =   1455
  165.    End
  166.    Begin VB.OptionButton Option1 
  167.       Caption         =   "Preset Theme:"
  168.       Height          =   255
  169.       Left            =   120
  170.       TabIndex        =   4
  171.       Top             =   1320
  172.       Value           =   -1  'True
  173.       Width           =   1455
  174.    End
  175.    Begin VB.CommandButton Command1 
  176.       Caption         =   "OK"
  177.       Height          =   375
  178.       Left            =   2280
  179.       TabIndex        =   1
  180.       Top             =   3600
  181.       Width           =   615
  182.    End
  183.    Begin VB.Label Label17 
  184.       Caption         =   "Zoom Skip: 0"
  185.       Height          =   255
  186.       Left            =   120
  187.       TabIndex        =   33
  188.       Top             =   5040
  189.       Width           =   1935
  190.    End
  191.    Begin VB.Line Line6 
  192.       X1              =   0
  193.       X2              =   3000
  194.       Y1              =   5400
  195.       Y2              =   5400
  196.    End
  197.    Begin VB.Line Line1 
  198.       X1              =   0
  199.       X2              =   3000
  200.       Y1              =   6240
  201.       Y2              =   6240
  202.    End
  203.    Begin VB.Line Line4 
  204.       X1              =   0
  205.       X2              =   3000
  206.       Y1              =   4080
  207.       Y2              =   4080
  208.    End
  209.    Begin VB.Line Line3 
  210.       X1              =   0
  211.       X2              =   3000
  212.       Y1              =   3000
  213.       Y2              =   3000
  214.    End
  215.    Begin VB.Line Line2 
  216.       X1              =   0
  217.       X2              =   3000
  218.       Y1              =   1080
  219.       Y2              =   1080
  220.    End
  221.    Begin VB.Label Label16 
  222.       Caption         =   "Hover mouse over text for description..."
  223.       Height          =   855
  224.       Left            =   0
  225.       TabIndex        =   32
  226.       Top             =   6240
  227.       Width           =   3015
  228.    End
  229.    Begin VB.Label Label15 
  230.       Caption         =   "Zoom Area Size: 0 "
  231.       Height          =   255
  232.       Left            =   120
  233.       TabIndex        =   30
  234.       Top             =   4680
  235.       Width           =   1935
  236.    End
  237.    Begin VB.Label Label14 
  238.       Caption         =   "Distance From Edge: 0"
  239.       Height          =   255
  240.       Left            =   120
  241.       TabIndex        =   28
  242.       Top             =   4320
  243.       Width           =   1935
  244.    End
  245.    Begin VB.Label Label13 
  246.       Caption         =   "Automatic Zoom Rules:"
  247.       Height          =   255
  248.       Left            =   120
  249.       TabIndex        =   27
  250.       Top             =   4080
  251.       Width           =   2775
  252.    End
  253.    Begin VB.Shape Shape2 
  254.       BorderColor     =   &H00000000&
  255.       FillColor       =   &H00FFFFFF&
  256.       FillStyle       =   0  'Solid
  257.       Height          =   375
  258.       Left            =   1800
  259.       Top             =   3600
  260.       Width           =   375
  261.    End
  262.    Begin VB.Label Label11 
  263.       Caption         =   "Highlight Box Colour (black equals off):"
  264.       Height          =   255
  265.       Left            =   120
  266.       TabIndex        =   23
  267.       Top             =   3000
  268.       Width           =   2775
  269.    End
  270.    Begin VB.Label Label10 
  271.       Caption         =   "R"
  272.       Height          =   255
  273.       Left            =   120
  274.       TabIndex        =   22
  275.       Top             =   3240
  276.       Width           =   255
  277.    End
  278.    Begin VB.Label Label9 
  279.       Caption         =   "G"
  280.       Height          =   255
  281.       Left            =   1080
  282.       TabIndex        =   21
  283.       Top             =   3240
  284.       Width           =   135
  285.    End
  286.    Begin VB.Label Label8 
  287.       Caption         =   "B"
  288.       Height          =   255
  289.       Left            =   2040
  290.       TabIndex        =   20
  291.       Top             =   3240
  292.       Width           =   135
  293.    End
  294.    Begin VB.Label Label7 
  295.       Caption         =   "Detail (Accuracy): 0"
  296.       Height          =   255
  297.       Left            =   120
  298.       TabIndex        =   14
  299.       Top             =   720
  300.       Width           =   1815
  301.    End
  302.    Begin VB.Shape Shape1 
  303.       BorderColor     =   &H00000000&
  304.       FillColor       =   &H00FFFFFF&
  305.       FillStyle       =   0  'Solid
  306.       Height          =   375
  307.       Left            =   120
  308.       Top             =   2520
  309.       Width           =   1575
  310.    End
  311.    Begin VB.Label Label6 
  312.       Caption         =   "B"
  313.       Height          =   255
  314.       Left            =   2040
  315.       TabIndex        =   13
  316.       Top             =   2160
  317.       Width           =   135
  318.    End
  319.    Begin VB.Label Label5 
  320.       Caption         =   "G"
  321.       Height          =   255
  322.       Left            =   1080
  323.       TabIndex        =   12
  324.       Top             =   2160
  325.       Width           =   135
  326.    End
  327.    Begin VB.Label Label4 
  328.       Caption         =   "R"
  329.       Height          =   255
  330.       Left            =   120
  331.       TabIndex        =   11
  332.       Top             =   2160
  333.       Width           =   255
  334.    End
  335.    Begin VB.Label Label3 
  336.       Caption         =   "Theme:"
  337.       Height          =   255
  338.       Left            =   120
  339.       TabIndex        =   3
  340.       Top             =   1080
  341.       Width           =   2655
  342.    End
  343.    Begin VB.Label Label2 
  344.       Alignment       =   2  'Center
  345.       Caption         =   "Software made by Ashley Newson. Mandelbrot Set Screen Saver V1.2.0 (C) Ashley Newson 2009."
  346.       Height          =   615
  347.       Left            =   0
  348.       TabIndex        =   2
  349.       Top             =   5520
  350.       Width           =   3015
  351.    End
  352.    Begin VB.Label Label1 
  353.       Caption         =   "Detail (Resolution): 0"
  354.       Height          =   255
  355.       Left            =   120
  356.       TabIndex        =   0
  357.       Top             =   360
  358.       Width           =   1815
  359.    End
  360.    Begin VB.Label Label12 
  361.       Alignment       =   2  'Center
  362.       Caption         =   "Mandelbrot Set SS"
  363.       BeginProperty Font 
  364.          Name            =   "MS Sans Serif"
  365.          Size            =   12
  366.          Charset         =   0
  367.          Weight          =   700
  368.          Underline       =   0   'False
  369.          Italic          =   0   'False
  370.          Strikethrough   =   0   'False
  371.       EndProperty
  372.       Height          =   375
  373.       Left            =   0
  374.       TabIndex        =   26
  375.       Top             =   0
  376.       Width           =   3015
  377.    End
  378. End
  379. Attribute VB_Name = "Form2"
  380. Attribute VB_GlobalNameSpace = False
  381. Attribute VB_Creatable = False
  382. Attribute VB_PredeclaredId = True
  383. Attribute VB_Exposed = False
  384.  
  385. Private Sub Check1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  386. Label16.Caption = "Disables zoom area highlighting."
  387. End Sub
  388.  
  389. Private Sub Combo1_Click()
  390. Option1.Value = True
  391. End Sub
  392.  
  393. Private Sub Command1_Click()
  394. det = HScroll1.Value
  395. Open "mandelss.ini" For Binary As #1
  396. Put #1, 1, det
  397. If Option2.Value = True Then
  398. rr = 255
  399. rg = 255
  400. rb = 255
  401. Else
  402. rr = HScroll2.Value
  403. rg = HScroll3.Value
  404. rb = HScroll4.Value
  405. mi = HScroll5.Value
  406. End If
  407. hr = HScroll8.Value
  408. hg = HScroll7.Value
  409. hb = HScroll6.Value
  410. theme = Combo1.ListIndex
  411. zd = HScroll9.Value
  412. zl = HScroll10.Value
  413. zskip = HScroll11.Value
  414. If Option1.Value = True Then
  415. rr = 0
  416. rg = 0
  417. rb = 0
  418. End If
  419. If Check1.Value = 1 Then
  420. hr = 0
  421. hg = 0
  422. hb = 0
  423. End If
  424. Put #1, 2, rr
  425. Put #1, 3, rg
  426. Put #1, 4, rb
  427. Put #1, 5, mi
  428. Put #1, 6, hr
  429. Put #1, 7, hg
  430. Put #1, 8, hb
  431. Put #1, 9, theme
  432. Put #1, 10, zd
  433. Put #1, 11, zl
  434. Put #1, 12, zskip
  435. Close #1
  436. End
  437. End Sub
  438.  
  439. Private Sub Command2_Click()
  440. If Option2.Value = True Then
  441. rr = 255
  442. rg = 255
  443. rb = 255
  444. Else
  445. rr = HScroll2.Value
  446. rg = HScroll3.Value
  447. rb = HScroll4.Value
  448. hr = HScroll8.Value
  449. hg = HScroll7.Value
  450. hb = HScroll6.Value
  451. theme = Combo1.ListIndex
  452. zd = HScroll9.Value
  453. zl = HScroll10.Value
  454. zskip = HScroll11.Value
  455. End If
  456. If Option1.Value = True Then
  457. rr = 0
  458. rg = 0
  459. rb = 0
  460. End If
  461. If Check1.Value = 1 Then
  462. hr = 0
  463. hg = 0
  464. hb = 0
  465. End If
  466. mi = HScroll5.Value
  467. det = HScroll1.Value
  468. preview = True
  469. Load Form1
  470. Form1.Show
  471. End Sub
  472.  
  473. Private Sub Form_Load()
  474. Unload Form1
  475. Open "mandelss.ini" For Binary As #1
  476. Get #1, 1, det
  477. Get #1, 2, rr
  478. Get #1, 3, rg
  479. Get #1, 4, rb
  480. Get #1, 5, mi
  481. Get #1, 6, hr
  482. Get #1, 7, hg
  483. Get #1, 8, hb
  484. Get #1, 9, theme
  485. Get #1, 10, zd
  486. Get #1, 11, zl
  487. Get #1, 12, zskip
  488. HScroll2.Value = rr
  489. HScroll3.Value = rg
  490. HScroll4.Value = rb
  491. HScroll8.Value = hr
  492. HScroll7.Value = hg
  493. HScroll6.Value = hb
  494. Close #1
  495. If det = 0 Then det = 60
  496. If mi = 0 Then mi = 128
  497. If zd = 0 Then zd = 15
  498. If zl = 0 Then zl = 30
  499. HScroll5.Value = mi
  500. HScroll1.Value = det
  501. HScroll9.Value = zd
  502. HScroll10.Value = zl
  503. HScroll11.Value = zskip
  504. Option3.Value = True
  505. If rr = 0 And rg = 0 And rb = 0 Then Option1.Value = True
  506. If hr = 0 And hg = 0 And hb = 0 Then Check1.Value = 1
  507. If rr = 255 And rg = 255 And rb = 255 Then Option2.Value = True
  508. Combo1.ListIndex = theme
  509. End Sub
  510.  
  511. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  512. Label16.Caption = "Hover mouse over text for description..."
  513. End Sub
  514.  
  515. Private Sub Form_Unload(Cancel As Integer)
  516. End
  517. End Sub
  518.  
  519. Private Sub HScroll1_Change()
  520. Label1.Caption = "Detail (Resolution):" + Str$(HScroll1.Value)
  521. End Sub
  522.  
  523. Private Sub HScroll11_Change()
  524. Label17.Caption = "Zoom Skip:" + Str$(HScroll11.Value)
  525. End Sub
  526.  
  527. Private Sub HScroll2_Change()
  528. Shape1.FillColor = RGB(HScroll2.Value, HScroll3.Value, HScroll4.Value)
  529. End Sub
  530.  
  531. Private Sub HScroll3_Change()
  532. Shape1.FillColor = RGB(HScroll2.Value, HScroll3.Value, HScroll4.Value)
  533. End Sub
  534.  
  535. Private Sub HScroll4_Change()
  536. Shape1.FillColor = RGB(HScroll2.Value, HScroll3.Value, HScroll4.Value)
  537. End Sub
  538.  
  539. Private Sub HScroll5_Change()
  540. Label7.Caption = "Detail (Accuracy):" + Str$(HScroll5.Value)
  541. End Sub
  542.  
  543. Private Sub HScroll6_Change()
  544. Shape2.FillColor = RGB(HScroll8.Value, HScroll7.Value, HScroll6.Value)
  545. End Sub
  546.  
  547. Private Sub HScroll7_Change()
  548. Shape2.FillColor = RGB(HScroll8.Value, HScroll7.Value, HScroll6.Value)
  549. End Sub
  550.  
  551. Private Sub HScroll8_Change()
  552. Shape2.FillColor = RGB(HScroll8.Value, HScroll7.Value, HScroll6.Value)
  553. End Sub
  554.  
  555. Private Sub HScroll9_Change()
  556. Label14.Caption = "Distance from edge:" + Str$(HScroll9.Value)
  557. End Sub
  558.  
  559. Private Sub HScroll10_Change()
  560. Label15.Caption = "Zoom Level:" + Str$(HScroll10.Value)
  561. End Sub
  562.  
  563. Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  564. Label16.Caption = "Resolution of image (for example: 15 being 1 image pixel displayed over 1 screen pixel or 30 being 1 image pixel displayed over 2 screen pixels)."
  565. End Sub
  566.  
  567. Private Sub Label10_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  568. Label16.Caption = "Red amount."
  569. End Sub
  570.  
  571. Private Sub Label11_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  572. Label16.Caption = "Sets the appearence of the zoom highlight box if any."
  573. End Sub
  574.  
  575. Private Sub Label12_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  576. Label16.Caption = "This program was run with the arguments: " + Command$
  577. End Sub
  578.  
  579. Private Sub Label13_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  580. Label16.Caption = "Defines the rules for the automatic zoom."
  581. End Sub
  582.  
  583. Private Sub Label14_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  584. Label16.Caption = "Sets the distance from the mandelbrot set to the point of zoom in pixels."
  585. End Sub
  586.  
  587. Private Sub Label15_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  588. Label16.Caption = "Sets the size of the zoom area height in pixels."
  589. End Sub
  590.  
  591. Private Sub Label17_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  592. Label16.Caption = "Sets the number of images to skip after restart."
  593. End Sub
  594.  
  595. Private Sub label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  596. Label16.Caption = "This software was made by Ashley Newson. Thank you for using MSSS."
  597. End Sub
  598.  
  599. Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  600. Label16.Caption = "Sets the colour scheme of the mandelbrot set. Use either a preset theme or a custom colour."
  601. End Sub
  602.  
  603. Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  604. Label16.Caption = "Red amount."
  605. End Sub
  606.  
  607. Private Sub Label5_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  608. Label16.Caption = "Green amount."
  609. End Sub
  610.  
  611. Private Sub Label6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  612. Label16.Caption = "Blue amount."
  613. End Sub
  614.  
  615. Private Sub Label7_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  616. Label16.Caption = "Colour Accuracy measured in max iterations (for example: accuracy 2 is higher accuracy than accuracy 1)."
  617. End Sub
  618.  
  619. Private Sub Label8_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  620. Label16.Caption = "Blue amount."
  621. End Sub
  622.  
  623. Private Sub Label9_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  624. Label16.Caption = "Green amount."
  625. End Sub
  626.  
  627. Private Sub Option1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  628. Label16.Caption = "Use the preset theme on the right."
  629. End Sub
  630.  
  631. Private Sub Option2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  632. Label16.Caption = "Grey Scale Mandelbrot (from white to black)."
  633. End Sub
  634.  
  635. Private Sub Option3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  636. Label16.Caption = "Use a custom colour using the colour chooser below using red, green and blue amounts. (From colour to black)."
  637. End Sub
  638.