home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form PageSetupForm
- BorderStyle = 3 'Fixed Dialog
- Caption = "Page Setup example"
- ClientHeight = 5745
- ClientLeft = 45
- ClientTop = 360
- ClientWidth = 9735
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5745
- ScaleWidth = 9735
- ShowInTaskbar = 0 'False
- Begin VB.ListBox List1
- Height = 2595
- ItemData = "PageSetp.frx":0000
- Left = 4440
- List = "PageSetp.frx":002E
- MultiSelect = 1 'Simple
- TabIndex = 54
- Top = 445
- Width = 2640
- End
- Begin VB.Frame Frame2
- Caption = "Dialog Box Position"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1440
- Left = 120
- TabIndex = 47
- Top = 1600
- Width = 4215
- Begin VB.TextBox YPosText
- Height = 345
- Left = 2880
- TabIndex = 51
- Text = "0"
- Top = 990
- Width = 555
- End
- Begin VB.TextBox XPosText
- Height = 345
- Left = 1380
- TabIndex = 50
- Text = "0"
- Top = 990
- Width = 555
- End
- Begin VB.CheckBox SetDlgPosToScreenCheck
- Caption = "Set Dialog &Position Relative To Screen"
- Height = 285
- Left = 360
- TabIndex = 49
- Top = 630
- Width = 3075
- End
- Begin VB.CheckBox SetDlgPosCheck
- Caption = "Set &Dialog Position"
- Height = 285
- Left = 120
- TabIndex = 48
- Top = 240
- Width = 1845
- End
- Begin VB.Label Label2
- Caption = "&Y Position"
- Height = 225
- Left = 2040
- TabIndex = 53
- Top = 1050
- Width = 735
- End
- Begin VB.Label Label1
- Caption = "&X Position"
- Height = 225
- Left = 540
- TabIndex = 52
- Top = 1050
- Width = 765
- End
- End
- Begin VB.Frame Frame4
- Caption = "Paper Information"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1005
- Left = 120
- TabIndex = 44
- Top = 4650
- Width = 5175
- Begin VB.ComboBox PaperSourceCombo
- Height = 315
- Left = 1200
- Style = 2 'Dropdown List
- TabIndex = 28
- Top = 600
- Width = 3825
- End
- Begin VB.ComboBox PaperSizeCombo
- Height = 315
- Left = 1200
- Style = 2 'Dropdown List
- TabIndex = 27
- Top = 240
- Width = 3825
- End
- Begin VB.Label Label11
- Caption = "Paper Source"
- Height = 195
- Index = 3
- Left = 120
- TabIndex = 46
- Top = 640
- Width = 975
- End
- Begin VB.Label Label11
- Caption = "Paper Size"
- Height = 195
- Index = 2
- Left = 120
- TabIndex = 45
- Top = 300
- Width = 765
- End
- End
- Begin VB.Frame Frame5
- Caption = "Minim&um Margin Setup"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1215
- Left = 7200
- TabIndex = 8
- Top = 2280
- Width = 2415
- Begin VB.TextBox TopMinMarginText
- Height = 285
- Left = 480
- TabIndex = 11
- Top = 750
- Width = 495
- End
- Begin VB.TextBox RightMinMarginText
- Height = 285
- Left = 1740
- TabIndex = 10
- Top = 330
- Width = 495
- End
- Begin VB.TextBox LeftMinMarginText
- Height = 285
- Left = 480
- TabIndex = 9
- Top = 330
- Width = 495
- End
- Begin VB.TextBox BottomMinMarginText
- Height = 285
- Left = 1740
- TabIndex = 12
- Top = 750
- Width = 495
- End
- Begin VB.Label Label4
- Caption = "Bottom"
- Height = 195
- Index = 0
- Left = 1170
- TabIndex = 39
- Top = 780
- Width = 495
- End
- Begin VB.Label Label9
- Caption = "Left"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 38
- Top = 360
- Width = 270
- End
- Begin VB.Label Label11
- Caption = "Right"
- Height = 195
- Index = 0
- Left = 1170
- TabIndex = 37
- Top = 360
- Width = 375
- End
- Begin VB.Label Label12
- Caption = "Top"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 36
- Top = 780
- Width = 285
- End
- End
- Begin VB.Frame Frame9
- Caption = "Other Options"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2055
- Left = 7200
- TabIndex = 35
- Top = 120
- Width = 2415
- Begin VB.TextBox PageSetupCaptionText
- Height = 315
- Left = 180
- TabIndex = 56
- Text = "Custom Page Setup"
- Top = 720
- Width = 1935
- End
- Begin VB.CheckBox RaiseEventCheck
- Caption = "Raise Callback &Event"
- Height = 285
- Left = 180
- TabIndex = 6
- Top = 1200
- Width = 1875
- End
- Begin VB.CheckBox DisablePagePaintCheck
- Caption = "Disable Pa&ge Painting"
- Height = 315
- Left = 180
- TabIndex = 7
- Top = 1560
- Width = 1875
- End
- Begin VB.Label Label5
- Caption = "Page Setup Dialog Caption:"
- Height = 255
- Left = 180
- TabIndex = 57
- Top = 480
- Width = 2055
- End
- End
- Begin VB.Frame Frame8
- Caption = "Page Orientation"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1005
- Left = 5400
- TabIndex = 29
- Top = 4650
- Width = 1695
- Begin VB.OptionButton LandscapeOpt
- Caption = "L&andscape"
- Height = 255
- Left = 240
- TabIndex = 31
- Top = 600
- Width = 1100
- End
- Begin VB.OptionButton PortraitOpt
- Caption = "Por&trait"
- Height = 255
- Left = 240
- TabIndex = 30
- Top = 240
- Value = -1 'True
- Width = 1000
- End
- End
- Begin VB.Frame Frame7
- Caption = "&Margin Setup"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1280
- Left = 7200
- TabIndex = 13
- Top = 3600
- Width = 2415
- Begin VB.TextBox BottomMarginText
- Height = 285
- Left = 1740
- TabIndex = 17
- Top = 780
- Width = 495
- End
- Begin VB.TextBox LeftMarginText
- Height = 285
- Left = 480
- TabIndex = 14
- Top = 300
- Width = 495
- End
- Begin VB.TextBox RightMarginText
- Height = 285
- Left = 1740
- TabIndex = 15
- Top = 300
- Width = 495
- End
- Begin VB.TextBox TopMarginText
- Height = 285
- Left = 480
- TabIndex = 16
- Top = 780
- Width = 495
- End
- Begin VB.Label Label12
- Caption = "Top"
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 43
- Top = 810
- Width = 285
- End
- Begin VB.Label Label11
- Caption = "Right"
- Height = 195
- Index = 1
- Left = 1170
- TabIndex = 42
- Top = 330
- Width = 375
- End
- Begin VB.Label Label9
- Caption = "Left"
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 41
- Top = 330
- Width = 270
- End
- Begin VB.Label Label4
- Caption = "Bottom"
- Height = 195
- Index = 1
- Left = 1170
- TabIndex = 40
- Top = 810
- Width = 495
- End
- End
- Begin VB.Frame Frame6
- Caption = "Help Options"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1455
- Index = 1
- Left = 120
- TabIndex = 34
- Top = 3120
- Width = 6975
- Begin VB.CommandButton Browse
- Caption = "Bro&wse..."
- Height = 375
- Left = 5520
- TabIndex = 20
- Top = 200
- Width = 1095
- End
- Begin VB.TextBox HelpKeyText
- Height = 315
- Left = 2880
- TabIndex = 26
- Top = 1050
- Width = 1005
- End
- Begin VB.TextBox HelpContextNumberText
- Height = 315
- Left = 2880
- TabIndex = 23
- Top = 630
- Width = 1005
- End
- Begin VB.OptionButton HelpKeyOpt
- Caption = "Help &Key"
- Height = 255
- Left = 180
- TabIndex = 24
- Top = 1080
- Width = 1245
- End
- Begin VB.TextBox HelpFileText
- Height = 315
- Left = 1410
- TabIndex = 19
- Top = 210
- Width = 4005
- End
- Begin VB.OptionButton HelpContextOpt
- Caption = "Help Co&ntext"
- Height = 255
- Left = 180
- TabIndex = 21
- Top = 660
- Value = -1 'True
- Width = 1245
- End
- Begin VB.Label Label8
- Caption = "Help Key Word"
- Height = 255
- Left = 1620
- TabIndex = 25
- Top = 1110
- Width = 1155
- End
- Begin VB.Label Label7
- Caption = "Context Number"
- Height = 255
- Left = 1620
- TabIndex = 22
- Top = 690
- Width = 1155
- End
- Begin VB.Label Label6
- Caption = "&Help File Name"
- Height = 255
- Left = 150
- TabIndex = 18
- Top = 270
- Width = 1155
- End
- End
- Begin VB.Frame Frame3
- Caption = "Button Options"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1455
- Left = 120
- TabIndex = 33
- Top = 120
- Width = 4215
- Begin VB.CheckBox CancelErrorCheck
- Caption = "&Raise Error On Cancel"
- Height = 285
- Left = 2130
- TabIndex = 1
- Top = 240
- Width = 1905
- End
- Begin VB.CheckBox HideCancelCheck
- Caption = "Hide Cancel &Button"
- Height = 285
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 1845
- End
- Begin VB.CheckBox CustomButtonCaptionCheck
- Caption = "Change &OK Button Caption"
- Height = 285
- Left = 120
- TabIndex = 2
- Top = 660
- Width = 2865
- End
- Begin VB.TextBox CustomButtonCaptionText
- Height = 345
- Left = 3060
- TabIndex = 3
- Text = "&Select"
- Top = 630
- Width = 945
- End
- Begin VB.TextBox CustomCancelCaptionText
- Height = 345
- Left = 3060
- TabIndex = 5
- Text = "E&xit"
- Top = 1050
- Width = 945
- End
- Begin VB.CheckBox CustomCancelCaptionCheck
- Caption = "Change &Cancel Button Caption"
- Height = 285
- Left = 120
- TabIndex = 4
- Top = 1080
- Width = 2865
- End
- End
- Begin VB.CommandButton ShowPageSetupBut
- Caption = "&Show Dialog!"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 645
- Left = 7200
- TabIndex = 32
- Top = 5000
- Width = 2415
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- Caption = "Flags:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 4440
- TabIndex = 55
- Top = 195
- Width = 525
- End
- Attribute VB_Name = "PageSetupForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim WithEvents dwCmdDialog As dwPageSetup
- Attribute dwCmdDialog.VB_VarHelpID = -1
- Private Sub Browse_Click()
- Dim dwCmdDialog As dwFileOpenSave
- Dim lres As Long
- Dim lstr As String
- Set dwCmdDialog = New dwFileOpenSave
- dwCmdDialog.DialogTitle = "Select Help File"
- dwCmdDialog.Filter = "Help (*.hlp)|*.hlp|All Files (*.*)|*.*"
- dwCmdDialog.DlgWindowOwner = Me.hWnd
- dwCmdDialog.SetDialogPosition = True
- dwCmdDialog.PosX = 50
- dwCmdDialog.PosY = 50
- dwCmdDialog.CustomOkButtonCaption = True
- dwCmdDialog.OkButtonCaption = "Select"
- dwCmdDialog.Flags = glmcdOFNEnableHook Or glmcdOFNLongNames Or glmcdOFNFileMustexist Or glmcdOFNNoChangeDir Or glmcdOFNHideReadOnly
- If WindowsVersion <> 35 Then
- dwCmdDialog.Flags = dwCmdDialog.Flags Or glmcdOFNExplorer
- End If
- lres = dwCmdDialog.ShowOpen
- If lres = 1 Then
- HelpFileText.Text = dwCmdDialog.filename
- End If
- Set dwCmdDialog = Nothing
- End Sub
- Private Sub Form_Load()
- If SetDlgPosCheck.Value Then
- SetDlgPosToScreenCheck.Enabled = True
- XPosText.Enabled = True
- YPosText.Enabled = True
- Else
- SetDlgPosToScreenCheck.Enabled = False
- XPosText.Enabled = False
- YPosText.Enabled = False
- End If
- ' Initialize list box
- List1.Selected(2) = True ' Use "Thousands of Inch"
- List1.Selected(11) = True ' show help button
- List1.Selected(13) = True ' enable hook
- FillPaperSizeList PaperSizeCombo
- FillPaperSourceList PaperSourceCombo
- End Sub
- Private Sub HelpContextOpt_Click()
- HelpContextNumberText.Enabled = True
- HelpKeyText.Enabled = False
- HelpKeyText.Text = ""
- End Sub
- Private Sub HelpKeyOpt_Click()
- HelpKeyText.Enabled = True
- HelpContextNumberText.Enabled = False
- HelpContextNumberText.Text = ""
- End Sub
- Private Sub Option1_Click()
- End Sub
- Private Sub SetDlgPosCheck_Click()
- If SetDlgPosCheck.Value Then
- SetDlgPosToScreenCheck.Enabled = True
- XPosText.Enabled = True
- YPosText.Enabled = True
- Else
- SetDlgPosToScreenCheck.Enabled = False
- XPosText.Enabled = False
- YPosText.Enabled = False
- End If
- End Sub
- Private Function GetPageSetupFlags() As Long
- Dim lcount As Long, lindex As Long
- Dim flagvalue As Long
- lindex = List1.ListCount
- For lcount = 0 To lindex - 1 Step 1
- If List1.Selected(lcount) Then
- flagvalue = flagvalue + 2 ^ lcount
- End If
- Next
- GetPageSetupFlags = flagvalue
- End Function
- Private Sub ShowPageSetupBut_Click()
- Dim multiplier As Integer
- Dim lres As Long
- Dim lstr As String
- Dim dwCmdDialog As dwPageSetup
- Set dwCmdDialog = New dwPageSetup
- dwCmdDialog.DialogTitle = PageSetupCaptionText.Text
- dwCmdDialog.DlgWindowOwner = Me.hWnd
- dwCmdDialog.HideCancel = HideCancelCheck.Value
- dwCmdDialog.SetDialogPosition = SetDlgPosCheck.Value
- dwCmdDialog.SetDialogRelativeToScreen = SetDlgPosToScreenCheck.Value
- dwCmdDialog.PosX = Val(XPosText.Text)
- dwCmdDialog.PosY = Val(YPosText.Text)
- dwCmdDialog.CustomOkButtonCaption = CustomButtonCaptionCheck.Value
- dwCmdDialog.OkButtonCaption = CustomButtonCaptionText.Text
- dwCmdDialog.CustomCancelButtonCaption = CustomCancelCaptionCheck.Value
- dwCmdDialog.CancelButtonCaption = CustomCancelCaptionText.Text
- dwCmdDialog.RaiseCallbackEvent = RaiseEventCheck.Value
- dwCmdDialog.CancelError = CancelErrorCheck.Value
- dwCmdDialog.Flags = GetPageSetupFlags()
- If DisablePagePaintCheck.Value Then
- dwCmdDialog.Flags = dwCmdDialog.Flags Or glmcdPSDDisablePagePainting
- End If
- dwCmdDialog.HelpFile = Trim$(HelpFileText.Text)
- If dwCmdDialog.HelpFile <> "" Then
- If HelpContextOpt.Value Then
- dwCmdDialog.HelpCommand = glmcdHCContext
- dwCmdDialog.HelpContext = Val(HelpContextNumberText.Text)
- Else
- dwCmdDialog.HelpCommand = glmcdHCKey
- dwCmdDialog.HelpKey = HelpKeyText.Text
- End If
- End If
- multiplier = 1
- If List1.Selected(3) Then multiplier = 100
- If List1.Selected(2) Then multiplier = 1000
- ' If the margins flag is specified, validate margins
- If List1.Selected(1) Then
- If TopMarginText.Text <> "" Then
- dwCmdDialog.TopMargin = CDbl(TopMarginText.Text) * multiplier
- End If
- If BottomMarginText.Text <> "" Then
- dwCmdDialog.BottomMargin = CDbl(BottomMarginText.Text) * multiplier
- End If
- If LeftMarginText.Text <> "" Then
- dwCmdDialog.LeftMargin = CDbl(LeftMarginText.Text) * multiplier
- End If
- If RightMarginText.Text <> "" Then
- dwCmdDialog.RightMargin = CDbl(RightMarginText.Text) * multiplier
- End If
- End If
- ' If the min margin flag is specified, validate min margins
- If List1.Selected(0) Then
- If TopMinMarginText.Text <> "" Then
- dwCmdDialog.TopMinMargin = CDbl(TopMinMarginText.Text) * multiplier
- End If
- If BottomMinMarginText.Text <> "" Then
- dwCmdDialog.BottomMinMargin = CDbl(BottomMinMarginText.Text) * multiplier
- End If
- If LeftMinMarginText.Text <> "" Then
- dwCmdDialog.LeftMinMargin = CDbl(LeftMinMarginText.Text) * multiplier
- End If
- If RightMinMarginText.Text <> "" Then
- dwCmdDialog.RightMinMargin = CDbl(RightMinMarginText.Text) * multiplier
- End If
- End If
- ' Assign paper orientation
- If PortraitOpt.Value Then
- dwCmdDialog.PageOrientation = glmcdPSDOrientPortrait
- Else
- dwCmdDialog.PageOrientation = glmcdPSDOrientLandscape
- End If
- ' Assign paper size
- If PaperSizeCombo.ListIndex <> -1 Then
- dwCmdDialog.PaperSize = PaperSizeCombo.ListIndex + 1
- End If
- ' Assign paper source
- If PaperSourceCombo.ListIndex <> -1 Then
- dwCmdDialog.PaperSource = PaperSourceCombo.ListIndex + 1
- End If
- lres = dwCmdDialog.ShowPageSetup
- If lres = 1 Then
- TopMarginText.Text = dwCmdDialog.TopMargin / multiplier
- TopMinMarginText.Text = dwCmdDialog.TopMinMargin / multiplier
- BottomMarginText.Text = dwCmdDialog.BottomMargin / multiplier
- BottomMinMarginText.Text = dwCmdDialog.BottomMinMargin / multiplier
- LeftMarginText.Text = dwCmdDialog.LeftMargin / multiplier
- LeftMinMarginText.Text = dwCmdDialog.LeftMinMargin / multiplier
- RightMarginText.Text = dwCmdDialog.RightMargin / multiplier
- RightMinMarginText.Text = dwCmdDialog.RightMinMargin / multiplier
- If dwCmdDialog.PageOrientation = glmcdPSDOrientPortrait Then
- PortraitOpt.Value = True
- Else
- LandscapeOpt.Value = True
- End If
-
- If (dwCmdDialog.PaperSize <> 0) And (dwCmdDialog.PaperSize < PaperSizeCombo.ListCount) Then
- PaperSizeCombo.ListIndex = dwCmdDialog.PaperSize - 1
- End If
- If (dwCmdDialog.PaperSource <> 0) And (dwCmdDialog.PaperSource < PaperSourceCombo.ListCount) Then
- PaperSourceCombo.ListIndex = dwCmdDialog.PaperSource - 1
- End If
- End If
- Set dwCmdDialog = Nothing
- End Sub
- ' Fills the specified list or combo box with the paper
- ' sizes defined by Windows. Note that not all printers
- ' supports every size, this is a complete list of all
- ' paper sizes that Windows recognizes.
- Public Sub FillPaperSizeList(lbox As Control)
- lbox.AddItem "Letter 8 1/2 x 11 in"
- lbox.AddItem "Letter Small 8 1/2 x 11 in"
- lbox.AddItem "Tabloid 11 x 17 in"
- lbox.AddItem "Ledger 17 x 11 in"
- lbox.AddItem "Legal 8 1/2 x 14 in"
- lbox.AddItem "Statement 5 1/2 x 8 1/2 in"
- lbox.AddItem "Executive 7 1/4 x 10 1/2 in"
- lbox.AddItem "A3 297 x 420 mm"
- lbox.AddItem "A4 210 x 297 mm"
- lbox.AddItem "A4 Small 210 x 297 mm"
- lbox.AddItem "A5 148 x 210 mm"
- lbox.AddItem "B4 (JIS) 250 x 354"
- lbox.AddItem "B5 (JIS) 182 x 257 mm"
- lbox.AddItem "Folio 8 1/2 x 13 in"
- lbox.AddItem "Quarto 215 x 275 mm"
- lbox.AddItem "10x14 in"
- lbox.AddItem "11x17 in"
- lbox.AddItem "Note 8 1/2 x 11 in"
- lbox.AddItem "Envelope #9 3 7/8 x 8 7/8"
- lbox.AddItem "Envelope #10 4 1/8 x 9 1/2"
- lbox.AddItem "Envelope #11 4 1/2 x 10 3/8"
- lbox.AddItem "Envelope #12 4 \276 x 11"
- lbox.AddItem "Envelope #14 5 x 11 1/2"
- lbox.AddItem "C size sheet"
- lbox.AddItem "D size sheet"
- lbox.AddItem "E size sheet"
- lbox.AddItem "Envelope DL 110 x 220mm"
- lbox.AddItem "Envelope C5 162 x 229 mm"
- lbox.AddItem "Envelope C3 324 x 458 mm"
- lbox.AddItem "Envelope C4 229 x 324 mm"
- lbox.AddItem "Envelope C6 114 x 162 mm"
- lbox.AddItem "Envelope C65 114 x 229 mm"
- lbox.AddItem "Envelope B4 250 x 353 mm"
- lbox.AddItem "Envelope B5 176 x 250 mm"
- lbox.AddItem "Envelope B6 176 x 125 mm"
- lbox.AddItem "Envelope 110 x 230 mm"
- lbox.AddItem "Envelope Monarch 3.875 x 7.5 in"
- lbox.AddItem "6 3/4 Envelope 3 5/8 x 6 1/2 in"
- lbox.AddItem "US Std Fanfold 14 7/8 x 11 in"
- lbox.AddItem "German Std Fanfold 8 1/2 x 12 in"
- lbox.AddItem "German Legal Fanfold 8 1/2 x 13 in"
- lbox.AddItem "B4 (ISO) 250 x 353 mm"
- lbox.AddItem "Japanese Postcard 100 x 148 mm"
- lbox.AddItem "9 x 11 in"
- lbox.AddItem "10 x 11 in"
- lbox.AddItem "15 x 11 in"
- lbox.AddItem "Envelope Invite 220 x 220 mm"
- lbox.AddItem "RESERVED--DO NOT USE"
- lbox.AddItem "RESERVED--DO NOT USE"
- lbox.AddItem "Letter Extra 9 \275 x 12 in"
- lbox.AddItem "Legal Extra 9 \275 x 15 in"
- lbox.AddItem "Tabloid Extra 11.69 x 18 in"
- lbox.AddItem "A4 Extra 9.27 x 12.69 in"
- lbox.AddItem "Letter Transverse 8 \275 x 11 in"
- lbox.AddItem "A4 Transverse 210 x 297 mm"
- lbox.AddItem "Letter Extra Transverse 9\275 x 12 in"
- lbox.AddItem "SuperA/SuperA/A4 227 x 356 mm"
- lbox.AddItem "SuperB/SuperB/A3 305 x 487 mm"
- lbox.AddItem "Letter Plus 8.5 x 12.69 in"
- lbox.AddItem "A4 Plus 210 x 330 mm"
- lbox.AddItem "A5 Transverse 148 x 210 mm"
- lbox.AddItem "B5 (JIS) Transverse 182 x 257 mm"
- lbox.AddItem "A3 Extra 322 x 445 mm"
- lbox.AddItem "A5 Extra 174 x 235 mm"
- lbox.AddItem "B5 (ISO) Extra 201 x 276 mm"
- lbox.AddItem "A2 420 x 594 mm"
- lbox.AddItem "A3 Transverse 297 x 420 mm"
- lbox.AddItem "A3 Extra Transverse 322 x 445 mm"
- End Sub
- ' Fills the specified list or combo box with the paper
- ' sources defined by Windows. Note that not all printers
- ' supports every source, this is a complete list of all
- ' paper sources that Windows recognizes.
- Public Sub FillPaperSourceList(lbox As Control)
- lbox.AddItem "Upper"
- lbox.AddItem "Lower"
- lbox.AddItem "Middle"
- lbox.AddItem "Manual"
- lbox.AddItem "Envelope"
- lbox.AddItem "Envelope Manual"
- lbox.AddItem "Auto"
- lbox.AddItem "Tractor"
- lbox.AddItem "Small Format"
- lbox.AddItem "Large Format"
- lbox.AddItem "Large Capacity"
- lbox.AddItem "RESERVED--DO NOT USE"
- lbox.AddItem "RESERVED--DO NOT USE"
- lbox.AddItem "Cassette"
- lbox.AddItem "Form Source"
- lbox.AddItem "Device Specific"
- End Sub
-