aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Tutorials
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/common/ui/Interfaces/Tutorials')
-rw-r--r--Samples/common/ui/Interfaces/Tutorials/myNumericControlTest.crow16
-rw-r--r--Samples/common/ui/Interfaces/Tutorials/testWidget.crow3
2 files changed, 19 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/Tutorials/myNumericControlTest.crow b/Samples/common/ui/Interfaces/Tutorials/myNumericControlTest.crow
new file mode 100644
index 00000000..fda9f400
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Tutorials/myNumericControlTest.crow
@@ -0,0 +1,16 @@
+<MyNumericControl Minimum="0" Maximum="100" Value="50" Background="Jet" >
+ <Template>
+ <VerticalStack Spacing="20" Height="Fit" Width="80%" Background="{./Background}" Margin="20">
+ <HorizontalStack Spacing="5" Fit="true">
+ <Label Text="min:"/>
+ <TextBox Text="{²./Minimum}" Width="60" TextAlignment="Right"/>
+ <Label Text="val:"/>
+ <TextBox Text="{²./Value}" Width="60" TextAlignment="Right"/>
+ <Label Text="max:"/>
+ <TextBox Text="{²./Maximum}" Width="60" TextAlignment="Right" />
+ </HorizontalStack>
+ <Gauge Height="20" Minimum="{./Minimum}" Maximum="{./Maximum}" Value="{²./Value}"
+ Background="DarkGrey" Margin="5" Foreground="CornflowerBlue"/>
+ </VerticalStack>
+ </Template>
+</MyNumericControl>
diff --git a/Samples/common/ui/Interfaces/Tutorials/testWidget.crow b/Samples/common/ui/Interfaces/Tutorials/testWidget.crow
new file mode 100644
index 00000000..2bd2c7ac
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Tutorials/testWidget.crow
@@ -0,0 +1,3 @@
+<Container Margin="50" Background="SteelBlue" >
+ <TestWidget Background="DarkGrey" Margin="20"/>
+</Container> \ No newline at end of file