aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/HelloWorld/ui
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-13 08:21:47 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-13 08:21:47 +0200
commit12ebb45ce26748e415f01c12c5c76b6918484c2f (patch)
tree789c60283fa3d41de4c323847697dc0003746e25 /Samples/HelloWorld/ui
parent46104d8683a8b4ada088e1a023480bb64299acaf (diff)
focus and windows move and size handles
Diffstat (limited to 'Samples/HelloWorld/ui')
-rw-r--r--Samples/HelloWorld/ui/helloworld.crow41
1 files changed, 2 insertions, 39 deletions
diff --git a/Samples/HelloWorld/ui/helloworld.crow b/Samples/HelloWorld/ui/helloworld.crow
index 82fd4ab5..fe05d1e2 100644
--- a/Samples/HelloWorld/ui/helloworld.crow
+++ b/Samples/HelloWorld/ui/helloworld.crow
@@ -1,39 +1,2 @@
-<Container Background="Onyx">
- <VerticalStack Background="Jet" Fit="true" Margin="1" Spacing="1">
- <Gauge Width="200" Height="10" Background="RoyalBlue" Value="50" CornerRadius="5"/>
- <NumericControl Width="200" Height="10" Value="40">
- <Template>
- <Gauge Maximum="{./Maximum}" Foreground="Black" BorderWidth="1" Background="RoyalBlue" Value="{./Value}" CornerRadius="5"/>
- </Template>
- </NumericControl>
- <Gauge Width="10" Height="100" Background="RoyalBlue" Value="50" CornerRadius="5" Orientation="Vertical"/>
- <HorizontalStack Width="400" Height="300">
- <Scroller Name="scroller1" Background="White"
- Margin="2" ScrollY="{../scrollbar1.Value}"
- ValueChanged="./_scroller_ValueChanged">
- <Widget VerticalAlignment="Top" Background="vgradient|0:1,0,0,1|1:0,1,0,1" Width="1000" Height="1000"/>
- </Scroller>
- <Slider Template="#Crow.VScrollBar.template" Name="scrollbar1" Value="{../scroller1.ScrollY}"
- LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30" Height="Stretched"
- CursorSize="{../scroller1.ChildHeightRatio}"
- Maximum="{../scroller1.MaxScrollY}" Orientation="Vertical" Width="14" >
- <Template>
- <Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}">
- <GenericStack Orientation="{./Orientation}" Spacing="0">
- <Shape Style="ArrowBut" MouseDown="./OnDecrease"
- Height="10" Size="10,10" Path="M 4.5,0.5 L 9.5,9.5 L 0.5,9.5 Z F"/>
- <Gauge Name="Slider"
- Orientation="{./Orientation}"
- Value="{²./Value}"
- Maximum="{./Maximum}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"
- Background="RoyalBlue" Foreground="{./Foreground}"/>
- <Shape Style="ArrowBut" MouseDown="./OnIncrease"
- Height="10" Size="10,10" Path="M 0.5,0.5 L 9.5,0.5 L 4.5,9.5 Z F"/>
- </GenericStack>
- </Border>
- </Template>
- </Slider>
- </HorizontalStack>
- </VerticalStack>
-</Container> \ No newline at end of file
+<?xml version="1.0"?>
+<Label Text="Hello World"/> \ No newline at end of file