Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
 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)
 {
 }
Exemplo n.º 6
0
 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)
 {
 }
Exemplo n.º 7
0
 public CrtLabel(CrtControl parent, int column, int row, int width) : this(parent, column, row, width, "", CrtAlignment.Left, Crt.LightGray, Crt.Black)
 {
 }
Exemplo n.º 8
0
 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)
 {
 }
Exemplo n.º 9
0
 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)
 {
 }
Exemplo n.º 10
0
 public CrtLabel(CrtControl parent, int column, int row, int width)
     : this(parent, column, row, width, "", CrtAlignment.Left, Crt.LightGray, Crt.Black)
 {
 }
Exemplo n.º 11
0
 public CrtProgressBar(CrtControl parent, int column, int row, int width)
     : this(parent, column, row, width, ProgressBarStyle.Blocks)
 {
 }
Exemplo n.º 12
0
 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)
 {
 }
Exemplo n.º 13
0
 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, "")
 {
 }
Exemplo n.º 14
0
 public CrtPanel(CrtControl parent, int column, int row, int width, int height)
     : this(parent, column, row, width, height, BorderStyle.Single, Crt.White, Crt.Blue)
 {
 }