Example #1
0
 public void UpdateUIStyle()
 {
     FTabs.Style  = UIStyleUtils.GetTabStripStyle1(Designer.UIStyle);
     FTabs.Height = Designer.UIStyle == UIStyle.VisualStudio2005 ? 25 : 27;
     Plugins.UpdateUIStyle();
     ParentControl_Resize(this, EventArgs.Empty);
 }
Example #2
0
 /// <inheritdoc/>
 public override void UpdateUIStyle()
 {
     base.UpdateUIStyle();
     FToolbar.Style      = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
     mnuContext.Style    = FToolbar.Style;
     FSplitter.BackColor = UIStyleUtils.GetControlColor(Designer.UIStyle);
 }
Example #3
0
 public TableMenuBase(Designer designer) : base()
 {
     FDesigner      = designer;
     Style          = UIStyleUtils.GetDotNetBarStyle(designer.UIStyle);
     mnuContextRoot = new ButtonItem();
     base.Items.Add(mnuContextRoot);
 }
Example #4
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            UIStyle style = (UIStyle)comboBox1.SelectedIndex;

            Office2007ColorTable    = UIStyleUtils.GetOffice2007ColorScheme(style);
            Config.UIStyle          = style;
            previewControl1.UIStyle = style;
            Refresh();
        }
Example #5
0
        public override void UpdateUIStyle()
        {
            base.UpdateUIStyle();
            btnColor.SetStyle(Designer.UIStyle);
            Color controlColor = UIStyleUtils.GetControlColor(Designer.UIStyle);

            cbxName.ComboBoxEx.DisabledBackColor = controlColor;
            cbxSize.ComboBoxEx.DisabledBackColor = controlColor;
        }
Example #6
0
        private void CmbShowType_SelectedIndexChanged(object sender, EventArgs e)
        {
            UIStyle style = (UIStyle)btnChangeSkin.SelectedIndex;

            Office2007ColorTable    = UIStyleUtils.GetOffice2007ColorScheme(style);
            Config.UIStyle          = style;
            previewControl1.UIStyle = style;
            Refresh();
        }
Example #7
0
        public void UpdateUIStyle()
        {
            FControlContainer.ColorSchemeStyle     = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            FControlContainer.Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(Designer.UIStyle);
            Color color = UIStyleUtils.GetControlColor(Designer.UIStyle);

            FStructure.BackColor = color;
            FHorzRuler.BackColor = color;
            FVertRuler.BackColor = color;
            FWorkspace.BackColor = UIStyleUtils.GetAppWorkspaceColor(Designer.UIStyle);
            BackColor            = color;
        }
Example #8
0
        /// <inheritdoc/>
        public override void UpdateUIStyle()
        {
            base.UpdateUIStyle();
            FToolbar.Style   = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            cbxObjects.Style = FToolbar.Style;
            Color color = UIStyleUtils.GetControlColor(Designer.UIStyle);

            Grid.BackColor          = color;
            Grid.LineColor          = color;
            Grid.HelpBackColor      = color;
            ParentControl.BackColor = color;
            cbxObjects.IsStandalone = Designer.UIStyle != UIStyle.VisualStudio2005 && Designer.UIStyle != UIStyle.Office2003;
        }
Example #9
0
            protected override void OnPaint(PaintEventArgs e)
            {
                base.OnPaint(e);

                if (UIStyleUtils.IsOffice2007Scheme(Config.UIStyle))
                {
                    // draw shadow around page
                    ShadowPaintInfo pi = new ShadowPaintInfo();
                    pi.Graphics  = e.Graphics;
                    pi.Rectangle = FContent.Bounds;
                    pi.Size      = 6;
                    ShadowPainter.Paint2(pi);
                }
            }
Example #10
0
        public void SetStyle(UIStyle style)
        {
            eTabStripStyle st = UIStyleUtils.GetTabStripStyle1(style);

            if (st == eTabStripStyle.VS2005Dock)
            {
                st = eTabStripStyle.VS2005;
            }
            FTabs.Style = st;
            Color color = UIStyleUtils.GetControlColor(style);

            pnTransparency.BackColor = color;
            BackColor       = color;
            FTabs.BackColor = color;
        }
Example #11
0
        /// <summary>
        /// Initializes a new instance of the <b>ComponentMenuBase</b> class with default settings.
        /// </summary>
        /// <param name="designer">The reference to a report designer.</param>
        public ComponentMenuBase(Designer designer) : base()
        {
            FDesigner      = designer;
            Style          = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            mnuContextRoot = new ButtonItem();
            base.Items.Add(mnuContextRoot);

            miName                    = CreateMenuItem("");
            miEdit                    = CreateMenuItem(Res.Get("ComponentMenu,Component,Edit"), Designer.cmdEdit.Invoke);
            miEdit.BeginGroup         = true;
            miCut                     = CreateMenuItem(Res.GetImage(5), Res.Get("Designer,Menu,Edit,Cut"), Designer.cmdCut.Invoke);
            miCut.BeginGroup          = true;
            miCopy                    = CreateMenuItem(Res.GetImage(6), Res.Get("Designer,Menu,Edit,Copy"), Designer.cmdCopy.Invoke);
            miPaste                   = CreateMenuItem(Res.GetImage(7), Res.Get("Designer,Menu,Edit,Paste"), Designer.cmdPaste.Invoke);
            miDelete                  = CreateMenuItem(Res.GetImage(51), Res.Get("Designer,Menu,Edit,Delete"), Designer.cmdDelete.Invoke);
            miBringToFront            = CreateMenuItem(Res.GetImage(14), Res.Get("Designer,Toolbar,Layout,BringToFront"), Designer.cmdBringToFront.Invoke);
            miBringToFront.BeginGroup = true;
            miSendToBack              = CreateMenuItem(Res.GetImage(15), Res.Get("Designer,Toolbar,Layout,SendToBack"), Designer.cmdSendToBack.Invoke);

            miEdit.Visible         = Designer.cmdEdit.Enabled;
            miCut.Enabled          = Designer.cmdCut.Enabled;
            miCopy.Enabled         = Designer.cmdCopy.Enabled;
            miPaste.Enabled        = Designer.cmdPaste.Enabled;
            miDelete.Enabled       = Designer.cmdDelete.Enabled;
            miBringToFront.Enabled = Designer.cmdBringToFront.Enabled;
            miSendToBack.Enabled   = Designer.cmdSendToBack.Enabled;

            SelectedObjectCollection selection = Designer.SelectedObjects;

            miName.Text = (selection.Count == 1 ?
                           selection[0].Name :
                           String.Format(Res.Get("Designer,ToolWindow,Properties,NObjectsSelected"), selection.Count)) + ":";
            miName.FontBold    = true;
            miName.HotFontBold = true;

            Items.AddRange(new BaseItem[] {
                miName,
                miEdit,
                miCut, miCopy, miPaste, miDelete,
                miBringToFront, miSendToBack
            });
        }
Example #12
0
        private void UpdateUIStyle()
        {
            eDotNetBarStyle style = UIStyleUtils.GetDotNetBarStyle(UIStyle);

            toolBar.Style = style;

            // Do this to paint slider control correctly if style is not Office 2007
            if (UIStyle == UIStyle.VisualStudio2005)
            {
                UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Silver);
            }
            else if (UIStyle == UIStyle.Office2003)
            {
                UIStyleUtils.GetDotNetBarStyle(UIStyle.Office2007Blue);
            }
            statusBar.Style = style;

            tabControl.Style     = UIStyleUtils.GetTabStripStyle(UIStyle);
            outlineControl.Style = UIStyle;
            foreach (PreviewTab tab in FDocuments)
            {
                tab.Style = UIStyle;
            }
        }
Example #13
0
 /// <inheritdoc/>
 public void UpdateUIStyle()
 {
     Style = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
 }
Example #14
0
 private void UpdateEditColors()
 {
   FEdit.Gutter.BrushColor = UIStyleUtils.GetControlColor(Designer.UIStyle);
   FEdit.Gutter.PenColor = FEdit.Gutter.BrushColor;
 }