aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-14 17:55:46 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-14 17:55:46 +0200
commit01ec9f5a3fa94df22844e22f47cd4853959fe99e (patch)
tree511fd0caf9ff685ddeb24f4dc4ef63b958c2ad8c /Tests/Interfaces
parente568d1381aba02054acd3e267f42d319f161d59e (diff)
* Tests.csproj:
* GOLIBTests.cs: * Popper.goml: * Checkbox.goml: * Expandable.goml: * RadioButton.goml: * test7.goml: * Popper.cs: * test4.1.goml: * test1.3.goml: * Checkbox.cs: * Expandable.cs: * RadioButton.cs: * testCheckbox.goml: * testRadioButton.goml: improve templates, set SvgSub as PropertyLess binding updated with only * radiobutton.svg: simplify svg
Diffstat (limited to 'Tests/Interfaces')
-rwxr-xr-xTests/Interfaces/test1.3.goml14
-rwxr-xr-xTests/Interfaces/test4.1.goml12
-rwxr-xr-xTests/Interfaces/test7.goml (renamed from Tests/Interfaces/Checkbox.goml)8
-rwxr-xr-xTests/Interfaces/testCheckbox.goml3
-rwxr-xr-xTests/Interfaces/testRadioButton.goml8
5 files changed, 21 insertions, 24 deletions
diff --git a/Tests/Interfaces/test1.3.goml b/Tests/Interfaces/test1.3.goml
deleted file mode 100755
index c6fffe4e..00000000
--- a/Tests/Interfaces/test1.3.goml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<Container Name="MainMenu"
- Margin="30" Focusable="True" Height="-1" Width="300">
- <Border BorderWidth="1" Margin="40" Background="0,5;0,5;0,5;0,5">
- <VerticalStack WidgetSpacing="10">
- <Button Margin = "10" Text="Start New Game" Height="-1" Width="0"
- MouseClick="onStartNewGame"/>
- <Button Margin = "10" Text="Start New Game" Height="-1" Width="0"/>
- <Button Margin = "10" Text="Start New Game" Height="-1" Width="0"/>
- <Button Margin = "10" Text="Exit" Height="-1" Width="0"
- MouseClick="onButExit_MouseClick" />
- </VerticalStack>
- </Border>
-</Container> \ No newline at end of file
diff --git a/Tests/Interfaces/test4.1.goml b/Tests/Interfaces/test4.1.goml
index a0360eda..bf8dd688 100755
--- a/Tests/Interfaces/test4.1.goml
+++ b/Tests/Interfaces/test4.1.goml
@@ -9,14 +9,14 @@
MouseEnter="{BorderColor = White}"
MouseLeave="{BorderColor = Transparent}">
- <HorizontalStack Name="hs0"
+ <HorizontalStack Name="hs0" Fit="true"
WidgetSpacing="10"
VerticalAlignment="Center"
Background="0,5;0,5;0,5;0,5">
<VerticalStack Name="vs1"
- Margin="20" Width="400">
+ Margin="20" Width="400" Height="-1">
<Label Name="labMouse" Text="MousePos"/>
- <HorizontalStack Name="hsPbar">
+ <HorizontalStack Name="hsPbar" Fit="true">
<ProgressBar Name="pbBar"
Width="100" Height="20"
Value="50"
@@ -29,15 +29,15 @@
Width="100" Height="10"
Value="30"/>-->
</HorizontalStack>
- <HorizontalStack Name="hsFocus">
+ <HorizontalStack Name="hsFocus" Fit="true">
<Label Text="Focused:"/>
<Label Name="labFocus" />
</HorizontalStack>
- <HorizontalStack>
+ <HorizontalStack Fit="true">
<Label Text="Active:" Name="hsActive"/>
<Label Name="labActive"/>
</HorizontalStack>
- <HorizontalStack>
+ <HorizontalStack Fit="true">
<Label Text="Hover:" Name="hsHover"/>
<Label Name="labHover" />
</HorizontalStack>
diff --git a/Tests/Interfaces/Checkbox.goml b/Tests/Interfaces/test7.goml
index 57184eee..97c3d3ee 100755
--- a/Tests/Interfaces/Checkbox.goml
+++ b/Tests/Interfaces/test7.goml
@@ -4,13 +4,13 @@
Top="200" Left="200"
Margin="10" Background="Green"/>-->
<Border CornerRadius="5" Margin="1" BorderWidth="1" Fit="True" Background="SteelBlue">
- <HorizontalStack Name="hstack" Margin="0" Spacing="5">
+ <HorizontalStack Name="hstack" Margin="0" Spacing="5" Fit="True">
<Label Name="labCpt" Text="55"/>
- <VerticalStack Spacing="1" Name="vstack">
- <Button Width="10" Height="8" MouseClick="onUp">
+ <VerticalStack Spacing="1" Name="vstack" Fit="True">
+ <Button Width="10" Height="8" >
<Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="up"/>
</Button>
- <Button Width="10" Height="8" MouseClick="onDown">
+ <Button Width="10" Height="8" >
<Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="down"/>
</Button>
</VerticalStack>
diff --git a/Tests/Interfaces/testCheckbox.goml b/Tests/Interfaces/testCheckbox.goml
new file mode 100755
index 00000000..4a0288cd
--- /dev/null
+++ b/Tests/Interfaces/testCheckbox.goml
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<Checkbox Caption="Checkbox" Background="DimGray"/>
+
diff --git a/Tests/Interfaces/testRadioButton.goml b/Tests/Interfaces/testRadioButton.goml
new file mode 100755
index 00000000..99542dbf
--- /dev/null
+++ b/Tests/Interfaces/testRadioButton.goml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<VerticalStack Width="200" Height="-1" Margin="20" Background="DimGray">
+ <RadioButton Caption="Radio1"/>
+ <RadioButton Caption="Radio2" IsChecked="true"/>
+ <RadioButton Caption="Radio3"/>
+ <RadioButton Caption="Radio4"/>
+</VerticalStack>
+