public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);

            switch (name)
            {
            case PropogateName.BackColor:
                Color newColor = (Color)value;

                // In Plain style we need to color the intermidiate window as well
                if (_style == VisualStyle.Plain)
                {
                    BorderForControl bfc = this.Controls[0] as BorderForControl;
                    bfc.BackColor = newColor;
                }

                _tabControl.BackColor = newColor;
                this.BackColor        = newColor;

                Invalidate();
                break;

            case PropogateName.InactiveTextColor:
                _tabControl.ForeColor = (Color)value;
                break;

            case PropogateName.PlainTabBorder:
                _tabControl.InsetBorderPagesOnly = !(bool)value;
                break;

            case PropogateName.TabControlFont:
                _tabControl.Font = (Font)value;
                break;
            }
        }
Exemple #2
0
 public void PropogateNameValue(PropogateName name, object value)
 {
     if (this.Zone != null)
     {
         this.Zone.PropogateNameValue(name, value);
     }
 }
Exemple #3
0
 public virtual void PropogateNameValue(PropogateName name, object value)
 {
     if (name == PropogateName.BackColor)
     {
         this.BackColor = (Color)value;
         Invalidate();
     }
 }
Exemple #4
0
        public virtual void PropogateNameValue(PropogateName name, object value)
        {
            if (name == PropogateName.ResizeBarVector)
            {
                this.Length = (int)value;
            }

            if (name == PropogateName.ResizeBarColor)
            {
                this.BackColor = (Color)value;
                Invalidate();
            }
        }
Exemple #5
0
        public virtual void PropogateNameValue(PropogateName name, object value)
        {
            if (name == PropogateName.BackColor)
            {
                this.BackColor = (Color)value;
                Invalidate();
            }

            // Pass onto each of our child Windows
            foreach (WindowDetail wd in _windowDetails)
            {
                wd.PropogateNameValue(name, value);
            }
        }
Exemple #6
0
        public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);

            switch (name)
            {
            case PropogateName.CaptionFont:
                UpdateCaptionHeight((Font)value);
                break;

            case PropogateName.ActiveTextColor:
            case PropogateName.InactiveTextColor:
                DefineButtonRemapping();
                Invalidate();
                break;
            }
        }
Exemple #7
0
        public void PropogateNameValue(PropogateName name, object value)
        {
            switch (name)
            {
            case PropogateName.BackColor:
                this.BackColor = (Color)value;
                Invalidate();
                break;

            case PropogateName.InactiveTextColor:
                this.ForeColor = (Color)value;
                Invalidate();
                break;

            case PropogateName.CaptionFont:
                this.Font = (Font)value;
                break;
            }

            // Pass onto the contained WCT
            _wct.PropogateNameValue(name, value);
        }
Exemple #8
0
        /// <summary>
        /// Process propogation of values.
        /// </summary>
        /// <param name="name">Property being notified.</param>
        /// <param name="value">New value of property.</param>
        public void PropogateNameValue(PropogateName name, object value)
        {
            if (this.Zone != null)
            {
                this.Zone.PropogateNameValue(name, value);
            }

            // If a change in taskbar state then update immediately
            if (name == PropogateName.FloatingInTaskBar)
            {
                this.ShowInTaskbar = (bool)value;
            }

            // If the docking manager has a specific icon to be used, then use it
            if (name == PropogateName.FloatingTaskBarIcon)
            {
                // Can only set a valid icon into Form
                if (value != null)
                {
                    this.Icon = _dockingManager.FloatingTaskBarIcon;
                }
            }
        }
Exemple #9
0
        /// <summary>
        /// Propogate a change in a framework property.
        /// </summary>
        /// <param name="name">Name of property changed.</param>
        /// <param name="value">New value of property.</param>
        public void PropogateNameValue(PropogateName name, object value)
        {
            switch (name)
            {
            case PropogateName.BackColor:
                this.BackColor = (Color)value;
                Invalidate();
                break;

            case PropogateName.InactiveTextColor:
                this.ForeColor = (Color)value;
                Invalidate();
                break;

            case PropogateName.CaptionFont:
                this.Font = (Font)value;
                break;

            case PropogateName.StubsShowAll:
                _stubsShowAll = (bool)value;
                ResizeControl();
                Recalculate();
                Invalidate();
                break;

            case PropogateName.Style:
                _style = (VisualStyle)value;
                _colorDetails.Style = _style;
                ResizeControl();
                Recalculate();
                Invalidate();
                break;
            }

            // Pass onto the contained WCT
            _wct.PropogateNameValue(name, value);
        }
            public void PropogateNameValue(PropogateName name, object value)
            {
                switch(name)
                {
                    case PropogateName.BackColor:
                        this.BackColor = (Color)value;
                        Invalidate();
                        break;
                }

                // Pass onto the Resize bar control
                _resizeAutoBar.PropogateNameValue(name, value);
            }
 public void PropogateNameValue(PropogateName name, object value)
 {
     if (this.Zone != null)
         this.Zone.PropogateNameValue(name, value);
 }
Exemple #12
0
        public virtual void PropogateNameValue(PropogateName name, object value)
        {
            if (name == PropogateName.BackColor)
            {
                this.BackColor = (Color)value;
                Invalidate();
            }

            // Pass onto each of our child Windows
            foreach(WindowDetail wd in _windowDetails)
                wd.PropogateNameValue(name, value);
        }
Exemple #13
0
        public void PropogateNameValue(PropogateName name, object value)
        {
            foreach(Control c in _container.Controls)
            {
                Zone z = c as Zone;

                // Only interested in our Zones
                if (z != null)
                    z.PropogateNameValue(name, value);
            }

            // If the docking manager is created for a Container that does not
            // yet have a parent control then we need to double check before
            // trying to enumerate the owned forms.
            if (_container.FindForm() != null)
            {
                foreach(Form f in _container.FindForm().OwnedForms)
                {
                    FloatingForm ff = f as FloatingForm;

                    // Only interested in our FloatingForms
                    if (ff != null)
                        ff.PropogateNameValue(name, value);
                }
            }

            // Propogate into the AutoHidePanel objects
            _ahpTop.PropogateNameValue(name, value);
            _ahpLeft.PropogateNameValue(name, value);
            _ahpRight.PropogateNameValue(name, value);
            _ahpBottom.PropogateNameValue(name, value);
        }
        public void PropogateNameValue(PropogateName name, object value)
        {
            switch(name)
            {
                case PropogateName.BackColor:
                    this.BackColor = (Color)value;
                    Invalidate();
                    break;
                case PropogateName.CaptionFont:
                    this.Font = (Font)value;

                    // Recalculate the window size
                    int vector = TabStub.TabStubVector(this.Font);
                    this.Size = new Size(vector, vector);

                    Invalidate();
                    break;
            }

            // Pass onto each TabStub instance
            foreach(TabStub ts in Controls)
                ts.PropogateNameValue(name, value);

            // Pass onto any current Panel object
            if (_currentPanel != null)
                _currentPanel.PropogateNameValue(name, value);
        }
Exemple #15
0
 public virtual void PropogateNameValue(PropogateName name, object value)
 {
     if (name == PropogateName.BackColor)
     {
         this.BackColor = (Color)value;
         Invalidate();
     }
 }
Exemple #16
0
        public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);
            
            // Reduce flicker during update
            SuspendLayout();

            if (name == PropogateName.ZoneMinMax)
            {
                if (_zoneMinMax != (bool)value)
                {
                    // Remember the new value
                    _zoneMinMax = (bool)value;
                    
                    // If turning off the min/max ability
                    if (!_zoneMinMax)
                        _maximizedWindow = null;  // no window can be currently maximized
        
                    // Get child windows to retest the maximize capability
                    OnRefreshMaximize(EventArgs.Empty);
                }           
            }
            
            // Update each resize bar control
            foreach(Control c in this.Controls)
            {
                ResizeBar rb = c as ResizeBar;
                
                if (rb != null)
                    rb.PropogateNameValue(name, value);
            }
            
            // Recalculate positions using new values
            RepositionControls();
            
            ResumeLayout();
        }
Exemple #17
0
        public void PropogateNameValue(PropogateName name, object value)
        {
            switch(name)
            {
                case PropogateName.BackColor:
                    this.BackColor = (Color)value;
                    Invalidate();
                    break;
                case PropogateName.InactiveTextColor:
                    this.ForeColor = (Color)value;
                    Invalidate();
                    break;
                case PropogateName.CaptionFont:
                    this.Font = (Font)value;
                    break;
            }

            // Pass onto the contained WCT
            _wct.PropogateNameValue(name, value);
        }
        public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);
        
            switch(name)
            {
                case PropogateName.BackColor:
                    Color newColor = (Color)value;
            
                    // In Plain style we need to color the intermidiate window as well    
                    if (_style == VisualStyle.Plain)
                    {
                        BorderForControl bfc = this.Controls[0] as BorderForControl;
                        bfc.BackColor = newColor;                               
                    }

                    _tabControl.BackColor = newColor;
                    this.BackColor = newColor;
                    
                    Invalidate();
                    break;
                case PropogateName.InactiveTextColor:
                    _tabControl.ForeColor = (Color)value;
                    break;
                case PropogateName.PlainTabBorder:
                    _tabControl.InsetBorderPagesOnly = !(bool)value;
                    break;
//				case PropogateName.TabControlFont:
//					_tabControl.Font = (Font)value;
//					break;
            }
        }
Exemple #19
0
        public virtual void PropogateNameValue(PropogateName name, object value)
        {
            if (name == PropogateName.ResizeBarVector)
                this.Length = (int)value;

            if (name == PropogateName.ResizeBarColor)
            {
                this.BackColor = (Color)value;
                Invalidate();
            }
        }
        public override void PropogateNameValue(PropogateName name, object value)
        {
            base.PropogateNameValue(name, value);

            switch(name)
            {
                case PropogateName.CaptionFont:
                    UpdateCaptionHeight((Font)value);
                    break;
                case PropogateName.ActiveTextColor:
                case PropogateName.InactiveTextColor:
                    DefineButtonRemapping();
                    Invalidate();
                    break;
            }
        }