Charlie Kindel 5 år sedan
förälder
incheckning
fe340deed8
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      Terminal.Gui/Drivers/ConsoleDriver.cs
  2. 1 1
      UICatalog/Scenarios/Progress.cs

+ 2 - 2
Terminal.Gui/Drivers/ConsoleDriver.cs

@@ -540,7 +540,7 @@ namespace Terminal.Gui {
 		/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
 		/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
 		/// <param name="textAlignment">Not yet immplemented.</param>
 		/// <param name="textAlignment">Not yet immplemented.</param>
 		/// <remarks></remarks>
 		/// <remarks></remarks>
-		public void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left)
+		public virtual void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left)
 		{
 		{
 			var width = region.Width - (paddingLeft + 2) * 2;
 			var width = region.Width - (paddingLeft + 2) * 2;
 			if (!ustring.IsNullOrEmpty(title) && width > 4 && region.Y + paddingTop <= region.Y + paddingBottom) {
 			if (!ustring.IsNullOrEmpty(title) && width > 4 && region.Y + paddingTop <= region.Y + paddingBottom) {
@@ -562,7 +562,7 @@ namespace Terminal.Gui {
 		/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
 		/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
 		/// <param name="border">If set to <c>true</c> and any padding dimension is > 0 the border will be drawn.</param>
 		/// <param name="border">If set to <c>true</c> and any padding dimension is > 0 the border will be drawn.</param>
 		/// <param name="fill">If set to <c>true</c> it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.</param>
 		/// <param name="fill">If set to <c>true</c> it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.</param>
-		public void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false)
+		public virtual void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false)
 		{
 		{
 			void AddRuneAt (int col, int row, Rune ch)
 			void AddRuneAt (int col, int row, Rune ch)
 			{
 			{

+ 1 - 1
UICatalog/Scenarios/Progress.cs

@@ -23,7 +23,7 @@ namespace UICatalog {
 			internal ProgressBar PulseProgressBar { get; private set; }
 			internal ProgressBar PulseProgressBar { get; private set; }
 			internal Action StartBtnClick;
 			internal Action StartBtnClick;
 			internal Action StopBtnClick;
 			internal Action StopBtnClick;
-			internal Action PulseBtnClick;
+			internal Action PulseBtnClick = null;
 			private Label _startedLabel;
 			private Label _startedLabel;
 			internal bool Started { 
 			internal bool Started { 
 				get { 
 				get {