public EditorStatusBar(ImageList statusImageList) { imageList = statusImageList; Console.WriteLine("There are " + imageList.Images.Count + " images"); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); imageList = new ImageList(); imageList.ColorDepth = ColorDepth.Depth24Bit; Height = 20; progressBar = new ProgressBarEx(); progressBar.Smooth = true; progressBar.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top))); progressBar.Size = new Size(150,16); progressBar.Location = new Point(Width - 165,2); progressBar.Enable3DBorder = true; progressBar.Border3D = Border3DStyle.Flat; progressBar.BorderColor = Color.FromKnownColor(KnownColor.ControlDark); Controls.Add(progressBar); }
public MpeStatusBar() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); progressBar = new ProgressBarEx(); progressBar.Smooth = true; progressBar.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top))); progressBar.Size = new Size(150,16); progressBar.Location = new Point(statusBar.Width - 165,2); progressBar.Enable3DBorder = true; progressBar.Border3D = Border3DStyle.Flat; progressBar.BorderColor = Color.FromKnownColor(KnownColor.ControlDark); statusBar.Controls.Add(progressBar); currentLevel = MpeLogLevel.Debug; debugIcon.Hide(); infoIcon.Hide(); warnIcon.Hide(); errorIcon.Hide(); panelFontBrush = new SolidBrush(Color.Black); panelBorderPen = new Pen(Color.FromKnownColor(KnownColor.ControlDark),-1.0f); locationPanel.Text = ""; }