aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-07 09:08:12 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-07 09:08:12 +0200
commit167e50bf7c4af84a6793326e39b0d3e41d4eb8bf (patch)
tree57a9239773e3eb0b60e648119ddb782db92439f3 /Tests/Interfaces
parentbacf29e47409c20292b6861e6ef40bfc2119eb7b (diff)
Focus improvments:
New function (checkHoverWidget) to check most inner control under the mouse, than bubble onMouseMove through the parents
Diffstat (limited to 'Tests/Interfaces')
-rwxr-xr-xTests/Interfaces/test4.goml5
-rwxr-xr-xTests/Interfaces/testWindow.goml3
2 files changed, 5 insertions, 3 deletions
diff --git a/Tests/Interfaces/test4.goml b/Tests/Interfaces/test4.goml
index 0cdc2545..02dadec8 100755
--- a/Tests/Interfaces/test4.goml
+++ b/Tests/Interfaces/test4.goml
@@ -1,9 +1,10 @@
<?xml version="1.0"?>
-<Group Name="MainGrp"
+<Group Name="MainGrp" Focusable="true"
Width="800" Height="500"
Background="0,5;0,5;0,5;0,5" Foreground="White"
Margin="10" >
<Border Margin="10"
+ Name="mainBorder"
BorderWidth="2" BorderColor="Transparent"
Focusable="True"
MouseEnter="{BorderColor = White}"
@@ -18,7 +19,7 @@
<Label Name="labMouse" Text="MousePos"/>
<HorizontalStack WidgetSpacing="10">
<VerticalStack Width="100">
- <Checkbox Name="chk1"/>
+ <Checkbox Name="chk1" Focusable="true"/>
<Checkbox Name="chk2" IsChecked="true"/>
<Checkbox Name="chk3" Template="#go.Templates.Checkbox2.goml"/>
<Checkbox Name="chk4">
diff --git a/Tests/Interfaces/testWindow.goml b/Tests/Interfaces/testWindow.goml
index 68759d9e..32c64401 100755
--- a/Tests/Interfaces/testWindow.goml
+++ b/Tests/Interfaces/testWindow.goml
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<!--<Group>-->
-<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,5" >
+<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,5"
+ Focusable="True">
<VerticalStack Height="0" Width="0">
<Label Text="{fps}" Background="DarkRed"/>
<Label Text="{fpsMin}" />