summaryrefslogtreecommitdiff
path: root/ElmSharp.Test/TC/SliderTest1.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ElmSharp.Test/TC/SliderTest1.cs')
-rw-r--r--ElmSharp.Test/TC/SliderTest1.cs29
1 files changed, 26 insertions, 3 deletions
diff --git a/ElmSharp.Test/TC/SliderTest1.cs b/ElmSharp.Test/TC/SliderTest1.cs
index 200d770..9113836 100644
--- a/ElmSharp.Test/TC/SliderTest1.cs
+++ b/ElmSharp.Test/TC/SliderTest1.cs
@@ -46,7 +46,28 @@ namespace ElmSharp.Test
AlignmentX = -1,
AlignmentY = 0.5,
WeightX = 1,
- WeightY = 1
+ WeightY = 1,
+ IsIndicatorFocusable = true
+ };
+
+ Button btn = new Button(window)
+ {
+ AlignmentX = -1,
+ AlignmentY = 0,
+ WeightX = 1,
+ WeightY = 1,
+ Text = "Set IsIndicatorFocusable"
+ };
+ btn.Clicked += (s, e) =>
+ {
+ if (sld1.IsIndicatorFocusable)
+ {
+ sld1.IsIndicatorFocusable = false;
+ }
+ else
+ {
+ sld1.IsIndicatorFocusable = true;
+ }
};
Label lb1 = new Label(window)
@@ -58,9 +79,11 @@ namespace ElmSharp.Test
};
table.Pack(sld1, 1, 1, 2, 1);
- table.Pack(lb1, 1, 2, 2, 1);
+ table.Pack(btn, 1, 2, 2, 1);
+ table.Pack(lb1, 1, 3, 2, 1);
sld1.Show();
+ btn.Show();
lb1.Show();
sld1.ValueChanged += (s, e) =>
@@ -70,4 +93,4 @@ namespace ElmSharp.Test
};
}
}
-}
+} \ No newline at end of file