Beispiel #1
0
        Control WrapInCollapsible(GuiLayout gl, Control ctl)
        {
            Control retCtl = ctl;

            if (gl.collapsible.IsExplicit() && gl.collapsible)
            {
                ctlCollapse colCtl = new ctlCollapse();
                colCtl.SuspendLayout();
                colCtl.Name         = ctl.Name + "Parent";
                colCtl.Dock         = ctl.Dock;
                colCtl.InnerControl = ctl;
                if (gl.isCollapsed.IsExplicit())
                {
                    colCtl.Collapsed = gl.isCollapsed;
                }
                retCtl = colCtl;
            }
            return(retCtl);
        }
        Control WrapInCollapsible(GuiLayout gl, Control ctl)
        {
            Control retCtl = ctl;

            if (gl.collapsible.IsExplicit() && gl.collapsible)
            {
                ctlCollapse colCtl = new ctlCollapse();
                colCtl.SuspendLayout();
                colCtl.Name         = ctl.Name + "-CollapsePanel";
                colCtl.Dock         = ctl.Dock;
                colCtl.InnerControl = ctl;
                AddLayoutControl(gl.name, ctl);
                colCtl.Button.Name = ctl.Name + "-CollapseButton";
                AddButton(colCtl.Button);
                if (gl.isCollapsed.IsExplicit())
                {
                    colCtl.Collapsed = gl.isCollapsed;
                }
                retCtl = colCtl;
            }
            return(retCtl);
        }
Beispiel #3
0
 Control WrapInCollapsible(GuiLayout gl, Control ctl)
 {
     Control retCtl = ctl;
     if (gl.collapsible.IsExplicit() && gl.collapsible)
     {
         ctlCollapse colCtl = new ctlCollapse();
         colCtl.SuspendLayout();
         colCtl.Name = ctl.Name + "Parent";
         colCtl.Dock = ctl.Dock;
         colCtl.InnerControl = ctl;
         AddLayoutControl(gl.name, ctl);
         if (gl.isCollapsed.IsExplicit())
             colCtl.Collapsed = gl.isCollapsed;
         retCtl = colCtl;
     }
     return retCtl;
 }