//--- OBJECT WRITE BEGIN ---
new GuiControl("MiniScriptEd") {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 2";
   visible = "1";

   new GuiWindowCtrl("") {
      profile = "GuiWindowProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "21 22";
      extent = "255 348";
      minExtent = "8 2";
      visible = "1";
      text = "MiniScriptEd";
      maxLength = "255";
      resizeWidth = "1";
      resizeHeight = "1";
      canMove = "1";
      canClose = "0";
      canMinimize = "0";
      canMaximize = "0";
      minSize = "50 50";

      new GuiButtonCtrl("MiniScriptEdSaveCloseButt") {
         profile = "GuiButtonProfile";
         horizSizing = "relative";
         vertSizing = "relative";
         position = "5 304";
         extent = "70 20";
         minExtent = "8 2";
         visible = "1";
         command = "MiniScriptEd::SaveCurrentScript();";
         text = "Save  & Close";
         groupNum = "-1";
         buttonType = "PushButton";
      };
      new GuiButtonCtrl("MiniScriptEdCancelButt") {
         profile = "GuiButtonProfile";
         horizSizing = "relative";
         vertSizing = "relative";
         position = "174 302";
         extent = "70 20";
         minExtent = "8 2";
         visible = "1";
         command = "canvas.popDialog(MiniScriptEd);";
         text = "Cancel";
         groupNum = "-1";
         buttonType = "PushButton";
      };
      new GuiScrollCtrl("") {
         profile = "GuiScrollProfile";
         horizSizing = "relative";
         vertSizing = "relative";
         position = "2 28";
         extent = "250 267";
         minExtent = "8 2";
         visible = "1";
         willFirstRespond = "1";
         hScrollBar = "alwaysOn";
         vScrollBar = "alwaysOn";
         constantThumbHeight = "0";
         childMargin = "0 0";

         new GuiMLTextEditCtrl("MiniScriptEdText") {
            profile = "GuiMLTextEditProfile";
            horizSizing = "relative";
            vertSizing = "relative";
            position = "2 2";
            extent = "252 267";
            minExtent = "8 2";
            visible = "1";
            lineSpacing = "2";
            allowColorChars = "0";
            maxChars = "-1";
         };
      };
      new GuiTextCtrl("MiniScriptEdError") {
         profile = "GuiTextProfile";
         horizSizing = "relative";
         vertSizing = "relative";
         position = "11 322";
         extent = "59 18";
         minExtent = "8 2";
         visible = "1";
         text = "currentError";
         maxLength = "255";
      };
   };
};
//--- OBJECT WRITE END ---
