public CrtPanel(CrtControl parent, int column, int row, int width, int height, BorderStyle ABorder, int AForeColour, int backColour, string text, CrtAlignment textAlignment) : base(parent, column, row, width, height) { _Border = ABorder; _ForeColour = AForeColour; _BackColour = backColour; _Text = text; _TextAlignment = textAlignment; Paint(true); }
protected CrtControl(CrtControl parent, int column, int row, int width, int height) { _Parent = parent; _Left = column; _Top = row; _Width = width; _Height = height; SaveBackground(); if (_Parent != null) { parent.AddControl(this); } }
/// <summary> /// Initializes a progress bar with the given name and details, and draws the 0% progress to the screen /// </summary> /// <param name="AX">The x coordinate of the bar</param> /// <param name="AY">The y coordinate of the bar</param> /// <param name="AWidth">The width of the bar</param> /// <param name="AStyle">The style of the bar</param> /// <param name="AFG">The foreground colour of the completed bar</param> /// <param name="ABG">The background colour of the bar</param> /// <param name="AShaded">The foreground colour of the uncompleted bar</param> public CrtProgressBar(CrtControl AParent, int ALeft, int ATop, int AWidth, ProgressBarStyle AStyle) : base(AParent, ALeft, ATop, AWidth, 1) { _Style = AStyle; _BackColour = Crt.Blue; _BarForeColour = Crt.Yellow; _BlankForeColour = Crt.LightGray; _LastMarqueeUpdate = DateTime.Now; _MarqueeAnimationSpeed = 25; _Maximum = 100; _PercentPrecision = 2; _PercentVisible = true; _Value = 0; Paint(true); }
public CrtProgressBar(CrtControl parent, int column, int row, int width) : this(parent, column, row, width, ProgressBarStyle.Blocks) { }
public CrtPanel(CrtControl parent, int column, int row, int width, int height, BorderStyle ABorder, int AForeColour, int backColour, string text) : this(parent, column, row, width, height, ABorder, AForeColour, backColour, text, CrtAlignment.TopLeft) { }
public CrtPanel(CrtControl parent, int column, int row, int width, int height, BorderStyle ABorder, int AForeColour, int backColour) : this(parent, column, row, width, height, ABorder, AForeColour, backColour, "") { }
public CrtPanel(CrtControl parent, int column, int row, int width, int height) : this(parent, column, row, width, height, BorderStyle.Single, Crt.White, Crt.Blue) { }
protected void AddControl(CrtControl child) { _Controls.Add(child); }