# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,61,42)
  Text = ("Resize image")
  Persistent = True
  Resizable = False
  Spacing = True
  Margin = True
  { Label1 Label
    MoveScaled(1,1,15,4)
    Text = ("Width")
  }
  { btnSync ToggleButton
    MoveScaled(35,1,4,9)
    Picture = Picture["img/32/linked.png"]
    Border = False
    Value = True
  }
  { Label2 Label
    MoveScaled(1,6,15,4)
    Text = ("Height")
  }
  { btnCancel Button
    MoveScaled(44,6,16,4)
    Text = ("Cancel")
    Cancel = True
  }
  { txtWidth SpinBox
    MoveScaled(16,1,14,4)
    MinValue = 1
    MaxValue = 65536
    Value = 1
    Alignment = Align.Right
  }
  { txtHeight SpinBox
    MoveScaled(16,6,14,4)
    MinValue = 1
    MaxValue = 65536
    Value = 1
    Alignment = Align.Right
  }
  { btnOK Button
    MoveScaled(44,1,16,4)
    Text = ("OK")
    Default = True
  }
  { Label3 Label
    MoveScaled(1,11,14,4)
    Text = ("Ratio")
  }
  { txtRatio ComboBox
    MoveScaled(16,11,14,4)
    #Translate = False
    List = ["25", "33", "50", "66", "100", "150", "200", "300", "400"]
    Text = "100"
  }
  { Label4 Label
    MoveScaled(31,1,3,4)
    Text = ("px")
  }
  { Label5 Label
    MoveScaled(31,6,3,4)
    Text = ("px")
  }
  { Label6 Label
    MoveScaled(31,11,3,4)
    #Translate = False
    Text = "%"
  }
  { panMode Panel
    MoveScaled(1,17,41,24)
    { optResizeCenter RadioButton optResize
      Name = "optResizeCenter"
      MoveScaled(0,12,28,3)
      AutoResize = True
      Text = ("Resize and center")
    }
    { optResizeCenterH RadioButton optResize
      Name = "optResizeCenterH"
      MoveScaled(0,16,28,3)
      AutoResize = True
      Text = ("Resize and center horizontally")
    }
    { optResizeCenterV RadioButton optResize
      Name = "optResizeCenterV"
      MoveScaled(0,20,28,3)
      AutoResize = True
      Text = ("Resize and center vertically")
    }
    { optStretch RadioButton optResize
      Name = "optStretch"
      MoveScaled(0,0,28,3)
      AutoResize = True
      Text = ("Stretch image")
      Value = True
    }
    { optBorder RadioButton optResize
      Name = "optBorder"
      MoveScaled(0,8,28,3)
      AutoResize = True
      Text = ("Add a border")
    }
    { optResize RadioButton optResize
      Name = "optResize"
      MoveScaled(0,4,28,3)
      AutoResize = True
      Text = ("Resize image")
    }
  }
}
