//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(surveyGui) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiDefaultNoBorderProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   Position = "0 0";
   Extent = "1024 768";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

   new GuiBitmapCtrl() {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiDefaultNoBorderProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "373 197";
      Extent = "310 386";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      bitmap = "~/gui/images/dialog_box_03.png";
      wrap = "0";
   };
   new GuiBitmapButtonTextCtrl() {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiTextProfile_Mikadan24_dkGreen_c";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "407 487";
      Extent = "243 30";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "closeSurvey();";
      hovertime = "1000";
      text = "Close";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/gui/images/2empty";
   };
   /*
   new GuiBitmapButtonTextCtrl() {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiTextProfile_Mikadan24_dkGreen_c";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "409 475";
      Extent = "237 30";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "linkToSurvey();";
      hovertime = "1000";
      text = "Link to Survey";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/gui/images/2empty";
   };
   */
   new GuiMLTextCtrl(surveyLink) {
      canSaveDynamicFields = "1";
      isContainer = "0";
      Profile = "GuiTextProfile_Mikadan24_dkGreen_c";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "409 255";
      Extent = "238 224";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      lineSpacing = "2";
      allowColorChars = "0";
      maxChars = "-1";
      text = "";
   };
};
//--- OBJECT WRITE END ---

surveyLink.setText("<just:center>Thank you for playing this demo." NL "" NL "We would like your feedback about your game experience.  Please fill out a survey.");
surveyLink.addText("" NL "" NL "<linkcolor:0000ff> <a:www.questionpro.com/akira/TakeSurvey?id=1276783 >Take Survey</a>",1);
