aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 10:53:30 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 10:53:30 +0100
commit2fe8a2c781c270279e7bf579b76fddc3d7fc8cbe (patch)
tree1a3c2b62e5df15445333ea5eb0c1d2f94d75a5b5 /Templates
parent632bd63db115383da4216ee31ff0e9d39081e87b (diff)
mouse event revamping, fit measure unit change from Pixels to Percent
Diffstat (limited to 'Templates')
-rwxr-xr-xTemplates/Expandable.template2
-rwxr-xr-xTemplates/ScrollBar.template6
-rwxr-xr-xTemplates/Spinner.template4
3 files changed, 6 insertions, 6 deletions
diff --git a/Templates/Expandable.template b/Templates/Expandable.template
index c5dd1d83..a36958d5 100755
--- a/Templates/Expandable.template
+++ b/Templates/Expandable.template
@@ -2,7 +2,7 @@
<Border Style="ControlBorder" Foreground="{./Foreground}" Background="{./Background}">
<VerticalStack>
<HorizontalStack Spacing="1" Height="Fit" MouseDoubleClick="./onClickForExpand">
- <Container Margin="1" Width="9" Height="9" Focusable="true" MouseClick="./onClickForExpand"
+ <Container Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
MouseEnter="{Background=LightGray}"
MouseLeave="{Background=Transparent}">
<Image
diff --git a/Templates/ScrollBar.template b/Templates/ScrollBar.template
index c2b9a1ba..3c67bfa7 100755
--- a/Templates/ScrollBar.template
+++ b/Templates/ScrollBar.template
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="Jet">
<GenericStack Orientation="{./Orientation}" Spacing="0">
- <Shape Style="ArrowBut" MouseClick="./onScrollBack" Path="M 5.5,0.5 L 10.5,10.5 L 0.5,10.5 Z"/>
- <Slider Name="Slider"
+ <Shape Style="ArrowBut" MouseDown="./onScrollBack" Path="M 5.5,0.5 L 10.5,10.5 L 0.5,10.5 Z"/>
+ <Slider Name="Slider"
Orientation="{./Orientation}"
Value="{²./Value}"
Maximum="{./Maximum}"
@@ -13,6 +13,6 @@
CursorColor="hgradient|0:Gray|1:Jet"
Foreground="Jet"
Background="hgradient|0:DimGray|0.1:Gray|0.95:Gray|1:White"/>
- <Shape Style="ArrowBut" MouseClick="./onScrollForth" Path="M 0.5,0.5 L 10.5,0.5 L 5.5,10.5 Z"/>
+ <Shape Style="ArrowBut" MouseDown="./onScrollForth" Path="M 0.5,0.5 L 10.5,0.5 L 5.5,10.5 Z"/>
</GenericStack>
</Border> \ No newline at end of file
diff --git a/Templates/Spinner.template b/Templates/Spinner.template
index dd957d25..60d7ccf9 100755
--- a/Templates/Spinner.template
+++ b/Templates/Spinner.template
@@ -6,7 +6,7 @@
Text="{²./Value}" TextAlignment="Right" Margin="0"/>
</Border>
<VerticalStack MinimumSize="13,13" Width="25%" Height="Stretched" Spacing="0" Margin="0">
- <Shape Style="ArrowBut" Height="50%" MouseClick="./onUp" Path="M 5.5,0.5 L 10.5,6.5 L 0.5,6.5 Z"/>
- <Shape Style="ArrowBut" Height="50%" MouseClick="./onDown" Path="M 0.5,0.5 L 10.5,0.5 L 5.5,6.5 Z"/>
+ <Shape Style="ArrowBut" Height="50%" MouseDown="./onUp" Path="M 5.5,0.5 L 10.5,6.5 L 0.5,6.5 Z"/>
+ <Shape Style="ArrowBut" Height="50%" MouseDown="./onDown" Path="M 0.5,0.5 L 10.5,0.5 L 5.5,6.5 Z"/>
</VerticalStack>
</HorizontalStack>