Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupBox"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public GroupBox(ControlBase parent)
            : base(parent)
        {
            m_Text = new Text(this);

            m_InnerPanel = new InnerContentControl(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ToolWindow"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public ToolWindow(ControlBase parent)
            : base(parent)
        {
            m_DragBar        = new Dragger(this);
            m_DragBar.Target = this;
            m_DragBar.SendToBack();

            Vertical = false;

            m_InnerPanel = new InnerContentControl(this);
            m_InnerPanel.SendToBack();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Window"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public Window(ControlBase parent)
            : base(parent)
        {
            m_TitleBar                      = new WindowTitleBar(this);
            m_TitleBar.Height               = BaseUnit + 9;
            m_TitleBar.Title.TextColor      = Skin.Colors.Window.TitleInactive;
            m_TitleBar.CloseButton.Clicked += CloseButtonPressed;
            m_TitleBar.SendToBack();
            m_TitleBar.Dragged += OnDragged;

            m_DragBar = m_TitleBar;

            m_InnerPanel = new InnerContentControl(this);
            m_InnerPanel.SendToBack();
        }