Exemple #1
0
 public void Dispose()
 {
     if (m_ProgressBar != null)
     {
         m_ProgressBar.Dispose();
         m_ProgressBar = null;
     }
 }
 public void Dispose()
 {
     if (m_ProgressBar != null)
     {
         m_ProgressBar.MouseClick -= ProgressBar_MouseClick;
         m_ProgressBar.Dispose();
         m_ProgressBar = null;
     }
 }
Exemple #3
0
 /// <summary>
 /// Constructor of the Renderer class
 /// </summary>
 /// <param name="progressBar">ProgressBarAdv</param>
 ///
 public CustomViewRenderer(ProgressBarAdv progressBar)
 {
     m_ProgressBar = progressBar;
 }
 /// <summary>
 /// Constructor of the Renderer class
 /// </summary>
 /// <param name="progressBar">ProgressBarAdv</param>
 public CustomShapesRenderer(ProgressBarAdv progressBar)
 {
     m_ProgressBar = progressBar;
 }
 public GridProgressBarColumnExt(ProgressBarAdv progressBar) : base(progressBar)
 {
     ProgressBar = progressBar;
 }
Exemple #6
0
 /// <summary>
 /// Constructor of the Renderer class
 /// </summary>
 /// <param name="progressBar">ProgressBarAdv</param>
 ///
 public CustomRender3(ProgressBarAdv progressBar)
 {
     m_ProgressBar = progressBar;
 }
Exemple #7
0
 public Form1()
 {
     InitializeComponent();
     this.richTextBox1.HideSelection = false;
     this.radialMenuItem13.CheckMode = CheckMode.Check;
     this.Deactivate += new EventHandler(Form1_Deactivate);
     this.trackBarItem1.TrackBarExControl.Style     = TrackBarEx.Theme.Metro;
     this.trackBarItem1.TrackBarExControl.BackColor = Color.FromArgb(43, 87, 154);
     this.trackBarItem1.BackColor   = Color.FromArgb(43, 87, 154);
     this.statusStripEx1.MetroColor = Color.FromArgb(43, 87, 154);
     this.radialMenu1.Icon          = global::Word2007Demo_2005.Properties.Resources._0003_Layer_1___Copy___Copy___Copy;
     this.radialMenu1.MenuIcon      = global::Word2007Demo_2005.Properties.Resources._0000_Layer_4;
     #region ProgressBarAdv Code
     progressBarAdv                        = new ProgressBarAdv();
     progressBarAdv.BackColor              = System.Drawing.SystemColors.Control;
     progressBarAdv.BackGradientEndColor   = System.Drawing.Color.White;
     progressBarAdv.BackGradientStartColor = System.Drawing.Color.LightGray;
     progressBarAdv.BackMultipleColors     = new System.Drawing.Color[0];
     progressBarAdv.BackSegments           = false;
     progressBarAdv.BackTubeEndColor       = System.Drawing.Color.White;
     progressBarAdv.BackTubeStartColor     = System.Drawing.Color.LightGray;
     progressBarAdv.BorderColor            = System.Drawing.Color.Black;
     progressBarAdv.BorderStyle            = System.Windows.Forms.BorderStyle.None;
     progressBarAdv.CustomWaitingRender    = false;
     progressBarAdv.FontColor              = System.Drawing.Color.White;
     progressBarAdv.ForegroundImage        = null;
     progressBarAdv.ForeSegments           = false;
     progressBarAdv.GradientEndColor       = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154)))));
     progressBarAdv.GradientStartColor     = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154)))));
     progressBarAdv.Location               = new System.Drawing.Point(2, 3);
     progressBarAdv.MultipleColors         = new System.Drawing.Color[0];
     progressBarAdv.ProgressStyle          = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Metro;
     progressBarAdv.SegmentWidth           = 12;
     progressBarAdv.Size                   = new System.Drawing.Size(113, 16);
     progressBarAdv.TabIndex               = 1;
     progressBarAdv.TextVisible            = false;
     progressBarAdv.ThemesEnabled          = true;
     progressBarAdv.TubeEndColor           = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154)))));
     progressBarAdv.TubeStartColor         = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154)))));
     progressBarAdv.WaitingGradientWidth   = 400;
     progressBarAdv.Text                   = "Progress";
     progressBarAdv.Value                  = 0;
     progressTimer.Start();
     progressTimer.Tick += new EventHandler(progressTimer_Tick);
     #endregion
     this.richTextBox1.MouseDown += new MouseEventHandler(richTextBox1_MouseDown);
     //To host any .Net control into ToolStripEx, StatusStrip,
     // User can make use of ToolStripControlHost class
     // and host the control inside it and add the host
     // to item collection.
     ToolStripControlHost host = new ToolStripControlHost(progressBarAdv);
     this.statusStripEx1.Items.Add(host);
     this.splashControl1.ShowDialogSplash(this);
     this.EditorContextMenuStripEx.Renderer = new ContextMenuRenderer();
     //this.radialMenu1.ShowRadialMenu();
     this.radialMenu1.ParentControl                     = this.richTextBox1;
     this.radialMenuItem46.MouseUp                     += new MouseEventHandler(radialMenuItem5_MouseUp);
     this.radialMenuItem44.MouseUp                     += new MouseEventHandler(radialMenuItem5_MouseUp);
     this.radialMenuItem32.MouseUp                     += new MouseEventHandler(radialMenuItem4_MouseUp);
     this.radialMenuItem30.MouseUp                     += new MouseEventHandler(radialMenuItem3_MouseUp);
     this.radialMenuItem34.MouseUp                     += new MouseEventHandler(radialMenuItem2_MouseUp);
     this.richTextBox1.MouseUp                         += richTextBox1_MouseUp;
     this.radialMenu1.BeforeCloseUp                    += new CancelEventHandler(radialMenu1_BeforeCloseUp);
     this.richTextBox1.MouseDown                       += new MouseEventHandler(richTextBox1_MouseDown);
     this.radialMenuSlider1.SliderValueChanged         += new SliderValueChangedEventArgs(radialMenuSlider1_SliderValueChanged);
     this.radialFontListBox1.RadialFontChanged         += new SelectedFontChanged(radialFontListBox1_RadialFontChanged);
     this.radialColorPalette1.ColorPaletteColorChanged += new ColorChanged(radialColorPalette1_ColorPaletteColorChanged);
     this.Deactivate                         += new EventHandler(Form1_Deactivate);
     this.richTextBox1.GotFocus              += new EventHandler(richTextBox1_GotFocus);
     this.radialMenu1.BeforePopup            += new CancelEventHandler(radialMenu1_BeforePopup);
     this.richTextBox1.TextChanged           += richTextBox1_TextChanged;
     this.radialMenu1.MenuVisibilityChanging += radialMenu1_MenuVisibilityChanging;
     Office2016ColorTable officeColorTable = new Office2016ColorTable();
     officeColorTable.BackStageCaptionColor = Color.White;
     this.ribbonControlAdv1.Office2016ColorTable.Add(officeColorTable);
 }