public CrtLabel(CrtControl parent, int column, int row, int width, string text, CrtAlignment textAlignment, int foreColour, int backColour) : base(parent, column, row, width, 1) { _Text = text; _TextAlignment = textAlignment; _ForeColour = foreColour; _BackColour = backColour; Paint(true); }
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); }
/// <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 CrtLabel(CrtControl parent, int column, int row, int width, string text, CrtAlignment textAlignment, int foreColour) : this(parent, column, row, width, text, textAlignment, foreColour, Crt.Black) { }
public CrtLabel(CrtControl parent, int column, int row, int width, string text, CrtAlignment textAlignment) : this(parent, column, row, width, text, textAlignment, Crt.LightGray, Crt.Black) { }
public CrtLabel(CrtControl parent, int column, int row, int width) : this(parent, column, row, width, "", CrtAlignment.Left, Crt.LightGray, Crt.Black) { }
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) { }