// GUI Layout for MQL app (standard controls library)
// Required hosting window dimensions: (width*height)=200*350
// Don't forget to keep a pointer to the main container to call Show() after load and Pack() on refreshes
{
  _layout<CBoxV> main("main", ClientAreaWidth(), ClientAreaHeight(), WND_ALIGN_CLIENT);
  main["background"] <= C'255,255,0' <= PackedRect(0, 0, 0, 0) <= VERTICAL_ALIGN_STACK;
  {
    {
      _layout<CBoxH> SelectorRow("SelectorRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      SelectorRow["background"] <= C'0,0,0' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> SelectorLabel("SelectorLabel", 94, 20);
          SelectorLabel["background"] <= C'245,245,245' <= "Selector:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<ComboBoxResizable> SelectorCombo("SelectorCombo", 94, 20);
          SelectorCombo <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> NameRow("NameRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      NameRow["background"] <= C'153,50,204' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> NameLabel("NameLabel", 94, 20);
          NameLabel["background"] <= C'245,245,245' <= "Name:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<CEdit> NameEdit("NameEdit", 94, 20);
          NameEdit <= "NameEdit" <= PackedRect(0, 0, 0, 0) <= ALIGN_LEFT;
        }
      }
    }
    {
      _layout<CBoxH> TypeRow("TypeRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      TypeRow["background"] <= C'0,0,255' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> TypeLabel("TypeLabel", 94, 20);
          TypeLabel["background"] <= C'245,245,245' <= "Type:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<ComboBoxResizable> TypeCombo("TypeCombo", 94, 20);
          TypeCombo <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> WidthRow("WidthRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      WidthRow["background"] <= C'30,144,255' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> WidthLabel("WidthLabel", 94, 20);
          WidthLabel <= "Width:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<SpinEditResizable> WidthSpinEdit("WidthSpinEdit", 94, 20);
          WidthSpinEdit <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> HeightRow("HeightRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      HeightRow["background"] <= C'30,144,255' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> HeightLabel("HeightLabel", 94, 20);
          HeightLabel <= "Height:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<SpinEditResizable> HeightSpinEdit("HeightSpinEdit", 94, 20);
          HeightSpinEdit <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> StyleRow("StyleRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      StyleRow["background"] <= C'144,238,144' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> StyleLabel("StyleLabel", 94, 20);
          StyleLabel <= "Style:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<ComboBoxResizable> StyleCombo("StyleCombo", 94, 20);
          StyleCombo <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> TextRow("TextRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      TextRow["background"] <= C'255,215,0' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> TextLabel("TextLabel", 94, 20);
          TextLabel <= "Text:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<CEdit> TextEdit("TextEdit", 94, 20);
          TextEdit <= "TextEdit" <= PackedRect(0, 0, 0, 0) <= ALIGN_LEFT;
        }
      }
    }
    {
      _layout<CBoxH> ColorsRow("ColorsRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      ColorsRow["background"] <= C'250,128,114' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> ColorLabel("ColorLabel", 94, 20);
          ColorLabel <= "Color:" <= PackedRect(0, 0, 0, 0) <= ALIGN_RIGHT;
        }
        {
          _layout<ComboBoxResizable> ColorCombo("ColorCombo", 94, 20);
          ColorCombo <= PackedRect(0, 0, 0, 0);
          {
            // dummy (feel free to delete)
          }
        }
      }
    }
    {
      _layout<CBoxH> AlignmentTitleRow("AlignmentTitleRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      AlignmentTitleRow <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CEdit> AlignmentTitleLabel("AlignmentTitleLabel", 94, 20);
          AlignmentTitleLabel <= "Alignment" <= PackedRect(0, 0, 0, 0) <= ALIGN_LEFT;
        }
        {
          _layout<CEdit> MarginsTitleLabel("MarginsTitleLabel", 94, 20);
          MarginsTitleLabel <= "Margins" <= PackedRect(0, 0, 0, 0) <= ALIGN_LEFT;
        }
      }
    }
    {
      _layout<CBoxH> AlignmentRow("AlignmentRow", 192, 100, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      AlignmentRow["background"] <= C'189,183,107' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CBoxV> CheckBoxesColumn("CheckBoxesColumn", 94, 100);
          CheckBoxesColumn <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CheckGroupResizable> AlignSides("AlignSides", 94, 100, WND_ALIGN_WIDTH);
              AlignSides <= PackedRect(0, 0, 0, 0);
              {
                // dummy (feel free to delete)
              }
            }
          }
        }
        {
          _layout<CBoxV> MarginsColumn("MarginsColumn", 94, 100);
          MarginsColumn <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> TestMode("TestMode", 94, 20, WND_ALIGN_WIDTH);
              TestMode <= "Test mode" <= PackedRect(0, 0, 0, 0);
            }
          }
        }
      }
    }
    {
      _layout<CBoxH> ActionRow("ActionRow", 192, 22, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
      ActionRow["background"] <= C'0,255,255' <= PackedRect(0, 0, 0, 0) <= HORIZONTAL_ALIGN_CENTER_NOSIDES;
      {
        {
          _layout<CButton> Apply("Apply", 94, 20);
          Apply <= "Apply" <= PackedRect(0, 0, 0, 0);
        }
        {
          _layout<CButton> Export("Export", 94, 20);
          Export <= "Export" <= PackedRect(0, 0, 0, 0);
        }
      }
    }
  }
}
