home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / SolidWorks3069010232001.psc / frmBatchPlot.frm (.txt) next >
Encoding:
Visual Basic Form  |  2001-10-23  |  8.0 KB  |  278 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Begin VB.Form frmBatchPlot 
  4.    Caption         =   "Solidworks 2001 Batch Plotting"
  5.    ClientHeight    =   6435
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   8820
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   6435
  11.    ScaleWidth      =   8820
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton cmdPreviewAll 
  14.       Caption         =   "Preview All"
  15.       Height          =   375
  16.       Left            =   7560
  17.       TabIndex        =   18
  18.       Top             =   4200
  19.       Visible         =   0   'False
  20.       Width           =   1215
  21.    End
  22.    Begin VB.PictureBox picHidden 
  23.       Height          =   495
  24.       Left            =   8040
  25.       ScaleHeight     =   435
  26.       ScaleMode       =   0  'User
  27.       ScaleWidth      =   69
  28.       TabIndex        =   17
  29.       Top             =   1800
  30.       Visible         =   0   'False
  31.       Width           =   495
  32.    End
  33.    Begin VB.CommandButton cmdAbout 
  34.       Caption         =   "About..."
  35.       Height          =   375
  36.       Left            =   7560
  37.       TabIndex        =   16
  38.       Top             =   120
  39.       Width           =   1215
  40.    End
  41.    Begin MSComctlLib.StatusBar StatusBar1 
  42.       Align           =   2  'Align Bottom
  43.       Height          =   375
  44.       Left            =   0
  45.       TabIndex        =   15
  46.       Top             =   6060
  47.       Width           =   8820
  48.       _ExtentX        =   15558
  49.       _ExtentY        =   661
  50.       _Version        =   393216
  51.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  52.          NumPanels       =   1
  53.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  54.             Object.Width           =   15769
  55.             MinWidth        =   15769
  56.          EndProperty
  57.       EndProperty
  58.    End
  59.    Begin VB.ListBox lstPrinters 
  60.       Height          =   255
  61.       Left            =   1440
  62.       TabIndex        =   14
  63.       Top             =   5760
  64.       Width           =   6015
  65.    End
  66.    Begin VB.CommandButton cmdSubmit 
  67.       Caption         =   "Submit Batch"
  68.       Height          =   495
  69.       Left            =   7560
  70.       TabIndex        =   13
  71.       Top             =   5520
  72.       Width           =   1215
  73.    End
  74.    Begin VB.ListBox lstCopies 
  75.       Height          =   255
  76.       Left            =   7560
  77.       TabIndex        =   11
  78.       Top             =   5160
  79.       Width           =   855
  80.    End
  81.    Begin VB.CommandButton cmdClearAll 
  82.       Caption         =   "Clear All"
  83.       Height          =   375
  84.       Left            =   7560
  85.       TabIndex        =   10
  86.       Top             =   3720
  87.       Width           =   1215
  88.    End
  89.    Begin VB.CommandButton cmdRemItem 
  90.       Caption         =   "Remove Item"
  91.       Height          =   375
  92.       Left            =   7560
  93.       TabIndex        =   9
  94.       Top             =   3240
  95.       Width           =   1215
  96.    End
  97.    Begin VB.ListBox lstToPrint 
  98.       Height          =   2400
  99.       Left            =   120
  100.       TabIndex        =   7
  101.       Top             =   3240
  102.       Width           =   7335
  103.    End
  104.    Begin VB.FileListBox File1 
  105.       Height          =   2820
  106.       Left            =   3720
  107.       MultiSelect     =   1  'Simple
  108.       TabIndex        =   5
  109.       Top             =   240
  110.       Width           =   3735
  111.    End
  112.    Begin VB.DirListBox Dir1 
  113.       Height          =   2565
  114.       Left            =   120
  115.       TabIndex        =   4
  116.       Top             =   480
  117.       Width           =   3495
  118.    End
  119.    Begin VB.DriveListBox Drive1 
  120.       Height          =   315
  121.       Left            =   120
  122.       TabIndex        =   3
  123.       Top             =   120
  124.       Width           =   3495
  125.    End
  126.    Begin VB.CommandButton cmdAddAll 
  127.       Caption         =   "Add All"
  128.       Height          =   375
  129.       Left            =   7560
  130.       TabIndex        =   2
  131.       Top             =   2640
  132.       Width           =   1215
  133.    End
  134.    Begin VB.CommandButton cmdAddSel 
  135.       Caption         =   "Add Selected"
  136.       Height          =   375
  137.       Left            =   7560
  138.       TabIndex        =   1
  139.       Top             =   2160
  140.       Width           =   1215
  141.    End
  142.    Begin VB.CommandButton cmdOptions 
  143.       Caption         =   "Options..."
  144.       Height          =   375
  145.       Left            =   7560
  146.       TabIndex        =   0
  147.       Top             =   600
  148.       Width           =   1215
  149.    End
  150.    Begin VB.Image imgHidden 
  151.       Height          =   480
  152.       Left            =   8040
  153.       Picture         =   "frmBatchPlot.frx":0000
  154.       Top             =   1320
  155.       Visible         =   0   'False
  156.       Width           =   480
  157.    End
  158.    Begin VB.Image imgSmall 
  159.       Height          =   975
  160.       Left            =   7560
  161.       Stretch         =   -1  'True
  162.       Top             =   1080
  163.       Width           =   1215
  164.    End
  165.    Begin VB.Label Label3 
  166.       Caption         =   "No. Copies"
  167.       Height          =   255
  168.       Left            =   7560
  169.       TabIndex        =   12
  170.       Top             =   4920
  171.       Width           =   975
  172.    End
  173.    Begin VB.Label Label2 
  174.       BackColor       =   &H00C0C0FF&
  175.       Caption         =   "Active Printer:"
  176.       Height          =   255
  177.       Left            =   120
  178.       TabIndex        =   8
  179.       Top             =   5760
  180.       Width           =   1215
  181.    End
  182.    Begin VB.Label Label1 
  183.       BackColor       =   &H00C0C0FF&
  184.       Caption         =   "Solidworks Files:"
  185.       Height          =   255
  186.       Left            =   3720
  187.       TabIndex        =   6
  188.       Top             =   0
  189.       Width           =   2055
  190.    End
  191.    Begin VB.Line Line1 
  192.       X1              =   120
  193.       X2              =   8760
  194.       Y1              =   3120
  195.       Y2              =   3120
  196.    End
  197. Attribute VB_Name = "frmBatchPlot"
  198. Attribute VB_GlobalNameSpace = False
  199. Attribute VB_Creatable = False
  200. Attribute VB_PredeclaredId = True
  201. Attribute VB_Exposed = False
  202. Option Explicit ':( Line inserted
  203. Private Sub cmdSubmit_Click()
  204.      SW_Printing
  205.      
  206. End Sub
  207. Private Sub Form_Load()
  208.      
  209.      File1.Pattern = "*.sldprt;*.sldasm;*.slddrw" ';*.txt;*.ini;*.cfg;*.log;*.rtf;*.doc;*.xls;*.pdf;*.ppt;*.dwg;*.bmp;*.jpg;*.gif"
  210.      
  211.      ' Retrieve path to TEMP
  212.      strTemp = String$(100, Chr$(0))
  213.      GetTempPath 100, strTemp
  214.      strTemp = Left$(strTemp, InStr(strTemp, Chr$(0)) - 1)
  215.      
  216. End Sub
  217. Private Sub cmdAbout_Click()
  218.      MsgBox " Add your own customized about..."
  219.      
  220. End Sub
  221. Private Sub cmdAddAll_Click()
  222.   Dim i As Integer
  223.      For i = 0 To (File1.ListCount - 1)
  224.           lstToPrint.AddItem Dir1.Path + "\" + File1.List(i)
  225.      Next i
  226.      cmdPreviewAll.Visible = True
  227.      
  228. End Sub
  229. Private Sub cmdAddSel_Click()
  230.   Dim i As Integer
  231.      
  232.      For i = 0 To (File1.ListCount - 1)
  233.           If File1.Selected(i) = True Then
  234.                Me.lstToPrint.AddItem Dir1.Path + "\" + File1.List(i)
  235.           End If
  236.      Next i
  237.      For i = 0 To (File1.ListCount - 1)
  238.           If File1.Selected(i) = True Then
  239.                File1.Selected(i) = False
  240.           End If
  241.      Next i
  242.      
  243.      cmdPreviewAll.Visible = True
  244.      
  245. End Sub
  246. Private Sub cmdClearAll_Click()
  247.      
  248.      lstToPrint.Clear
  249.      cmdPreviewAll.Visible = False
  250.      
  251. End Sub
  252. Private Sub cmdPreviewAll_Click()
  253.   'Clear out memory
  254.      Unload frmPreviewBig
  255.      Set frmPreviewBig = Nothing
  256.      
  257.      Load frmPreviewBig
  258.      frmPreviewBig.Show
  259. End Sub
  260. Private Sub Dir1_Change()
  261.      File1.Path = Dir1.Path
  262. End Sub
  263. Private Sub Drive1_Change()
  264.      Dir1.Path = Drive1.Drive
  265. End Sub
  266. Private Sub File1_Click()
  267.      Slide_Show Dir1.Path + "\" + File1.List(File1.ListIndex)
  268. End Sub
  269. Private Sub Form_Unload(Cancel As Integer)
  270.      End
  271. End Sub
  272. Private Sub imgSmall_Click()
  273.      Load frmPreviewBig
  274.      frmPreviewBig.imgBig.Picture = imgSmall.Picture
  275.      frmPreviewBig.Show
  276.      
  277. End Sub
  278.