# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,107,90)
  Text = ("Print preview")
  Icon = Picture["icon:/small/preview"]
  Arrangement = Arrange.Vertical
  { mnuPrint Menu
    Visible = False
    { mnuPrintToFile Menu
      Text = ("Print to file") & "..."
    }
    { Menu1 Menu
    }
  }
  { panPreview HBox
    MoveScaled(1,1,94,4)
    { btnPrinter MenuButton
      MoveScaled(0,0,34,4)
      Border = False
      Menu = "mnuPrint"
      MenuOnly = True
    }
    { btnShowSide ToolButton
      MoveScaled(34,0,4,4)
      ToolTip = ("Toggle option panel")
      Picture = Picture["icon:/small/close"]
    }
    { Spring1 Spring
      MoveScaled(42,0,2,4)
    }
    { btnPrint ToolButton
      MoveScaled(83,0,10,4)
      Visible = False
      AutoResize = True
      Text = ("Print")
      Picture = Picture["icon:/small/print"]
    }
    { panZoom HBox
      MoveScaled(46,0,31,4)
      Ignore = True
      { btnZoomOut ToolButton
        MoveScaled(0,0,4,4)
        ToolTip = ("Zoom out")
        Picture = Picture["icon:/small/zoom-out"]
      }
      { lblZoom Label
        MoveScaled(4,0,7,4)
        Alignment = Align.Center
        Text = ("100 %")
      }
      { btnZoomIn ToolButton
        MoveScaled(11,0,4,4)
        ToolTip = ("Zoom in")
        Picture = Picture["icon:/small/zoom-in"]
      }
      { btnOnePage ToolButton btnMode
        Name = "btnOnePage"
        MoveScaled(15,0,4,4)
        Tag = "1"
        ToolTip = ("One page")
        Picture = Picture["icon:/small/page"]
        Toggle = True
      }
      { btnTwoPages ToolButton btnMode
        Name = "btnTwoPages"
        MoveScaled(19,0,4,4)
        Tag = "2"
        ToolTip = ("Two pages")
        Picture = Picture["icon:/small/page-two"]
        Toggle = True
      }
      { btnFullWidth ToolButton btnMode
        Name = "btnFullWidth"
        MoveScaled(23,0,4,4)
        Tag = "3"
        ToolTip = ("Full width")
        Picture = Picture["icon:/small/zoom-width"]
        Toggle = True
      }
      { btnRealSize ToolButton btnMode
        Name = "btnRealSize"
        MoveScaled(27,0,4,4)
        Tag = "4"
        ToolTip = ("Real size")
        Picture = Picture["icon:/small/zoom-normal"]
        Toggle = True
      }
    }
  }
  { Panel1 HBox
    MoveScaled(1,6,84,83)
    Expand = True
    { panSide VBox
      MoveScaled(0,0,38,83)
      Spacing = True
      Margin = True
      { txtFile ButtonBox
        MoveScaled(1,1,29,4)
        Picture = Picture["icon:/16/open"]
        ReadOnly = True
      }
      { panResolution HBox
        MoveScaled(1,6,35,4)
        Spacing = True
        { TextLabel1 TextLabel
          MoveScaled(1,0,18,4)
          Text = ("Resolution")
          Alignment = Align.Normal
        }
        { cmbResolution ComboBox
          MoveScaled(20,0,9,4)
          #Translate = False
          ReadOnly = True
          List = ["75", "150", "300", "600", "1200"]
        }
        { Label11 Label
          MoveScaled(30,0,4,4)
          Text = ("DPI")
        }
      }
      { panRectoVerso HBox
        MoveScaled(1,11,38,4)
        Spacing = True
        { Label2 Label
          MoveScaled(0,0,18,4)
          Text = ("Two-sided")
        }
        { cmbDuplex ComboBox
          MoveScaled(18,0,18,4)
          Expand = True
          ReadOnly = True
          List = [("None"), ("Short side"), ("Long side")]
        }
      }
      { HBox1 HBox
        MoveScaled(2,16,34,4)
        Spacing = True
        { Label4 Label
          MoveScaled(0,0,18,4)
          Text = ("Copies")
        }
        { txtCopies SpinBox
          MoveScaled(13,0,9,4)
          MinValue = 1
          Value = 1
        }
      }
      { Panel14 HBox
        MoveScaled(2,21,36,4)
        Spacing = True
        { Label10 Label
          MoveScaled(0,0,18,4)
          Text = ("Orientation")
        }
        { cmbOrientation ComboBox
          MoveScaled(19,0,15,4)
          Expand = True
          ReadOnly = True
          List = [("Portrait"), ("Landscape")]
        }
      }
      { Panel8 HBox
        MoveScaled(2,26,36,4)
        Spacing = True
        { Label3 Label
          MoveScaled(0,0,18,4)
          Text = ("Paper")
        }
        { cmbPaper ComboBox
          MoveScaled(19,0,15,4)
          #Translate = False
          Expand = True
          ReadOnly = True
          List = ["Custom", "A3", "A4", "A5", "B5", "Letter", "Executive", "Legal"]
        }
      }
      { pnlCustom VBox
        MoveScaled(2,31,36,9)
        Spacing = True
        { Panel3 HBox
          MoveScaled(1,0,32,4)
          Spacing = True
          { Label5 Label
            MoveScaled(0,0,18,4)
            Text = ("Width")
          }
          { txtWidth SpinBox
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label7 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
        { Panel17 HBox
          MoveScaled(1,5,31,4)
          Spacing = True
          { Label6 Label
            MoveScaled(0,0,18,4)
            Text = ("Height")
          }
          { txtHeight SpinBox
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label8 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
      }
      { chkGrayScale CheckBox
        MoveScaled(2,41,34,3)
        Text = ("Grayscale")
      }
      { chkCollateCopies CheckBox
        MoveScaled(2,44,35,3)
        Text = ("Collate copies")
      }
      { chkReverseCopies CheckBox
        MoveScaled(2,47,36,3)
        Text = ("Reverse order")
      }
      { Expander1 Expander
        MoveScaled(1,51,37,23)
        Arrangement = Arrange.Vertical
        Spacing = True
        Border = False
        Text = ("Margins")
        TextFont = Font["Bold"]
        { Panel2 HBox
          MoveScaled(0,0,32,4)
          Spacing = True
          { Label1 Label
            MoveScaled(0,0,16,4)
            Text = ("Left")
          }
          { txtMarginLeft SpinBox txtMargin
            Name = "txtMarginLeft"
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label9 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
        { Panel4 HBox
          MoveScaled(0,5,32,4)
          Spacing = True
          { Label12 Label
            MoveScaled(0,0,16,4)
            Text = ("Right")
          }
          { txtMarginRight SpinBox txtMargin
            Name = "txtMarginRight"
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label13 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
        { Panel5 HBox
          MoveScaled(0,10,32,4)
          Spacing = True
          { Label14 Label
            MoveScaled(0,0,16,4)
            Text = ("Top")
          }
          { txtMarginTop SpinBox txtMargin
            Name = "txtMarginTop"
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label15 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
        { Panel6 HBox
          MoveScaled(0,15,32,4)
          Spacing = True
          { Label16 Label
            MoveScaled(0,0,16,4)
            Text = ("Bottom")
          }
          { txtMarginBottom SpinBox txtMargin
            Name = "txtMarginBottom"
            MoveScaled(14,0,9,4)
            MaxValue = 1000
          }
          { Label17 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
      }
      { Spring6 Spring
        MoveScaled(17,75,3,2)
      }
      { HBox2 HBox
        MoveScaled(3,78,30,4)
        { Spring4 Spring
          MoveScaled(2,1,3,2)
        }
        { btnPrint2 Button btnPrint
          Name = "btnPrint2"
          MoveScaled(7,0,12,4)
          AutoResize = True
          Text = ("Print")
          Picture = Picture["icon:/small/print"]
        }
        { Spring5 Spring
          MoveScaled(20,2,5,1)
        }
      }
    }
    { dvwPrint DocumentView
      MoveScaled(43,10,40,43)
      Expand = True
      ShowShadow = True
      ShowPage = True
    }
  }
}
