Browse Source

Merge pull request #720 from tig/progress_scenario_tweak

Tweaked Progress Bar Scenario to be easier to use; changed default tick count to 100ms
Charlie Kindel 5 years ago
parent
commit
d9856d6291
1 changed files with 4 additions and 4 deletions
  1. 4 4
      UICatalog/Scenarios/Progress.cs

+ 4 - 4
UICatalog/Scenarios/Progress.cs

@@ -47,8 +47,8 @@ namespace UICatalog {
 				var lbl = new Label (1, 1, "Tick every (ms):");
 				LeftFrame.Add (lbl);
 				Speed = new TextField ("") {
-					X = Pos.Right (lbl) + 1,
-					Y = Pos.Y (lbl),
+					X = Pos.X (lbl),
+					Y = Pos.Bottom (lbl),
 					Width = 7,
 				};
 				LeftFrame.Add (Speed);
@@ -134,9 +134,9 @@ namespace UICatalog {
 		}
 
 		private Timer _systemTimer = null;
-		private uint _systemTimerTick = 1000; // ms
+		private uint _systemTimerTick = 100; // ms
 		private object _mainLoopTimeout = null;
-		private uint _mainLooopTimeoutTick = 1000; // ms
+		private uint _mainLooopTimeoutTick = 100; // ms
 		public override void Setup ()
 		{
 			// Demo #1 - Use System.Timer (and threading)