diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-04 13:26:18 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-04 13:26:18 +0100 |
| commit | 8970e6cecac4f7fb9eead2ae26d0a996c46d1590 (patch) | |
| tree | 381e659484e552b507b055a43bde8c96014d6f84 /Samples/common/ui/Interfaces/TemplatedControl | |
| parent | 375445c6338075b80a79b9146c86778fe6d312d2 (diff) | |
color picker, wipdev
Diffstat (limited to 'Samples/common/ui/Interfaces/TemplatedControl')
| -rw-r--r-- | Samples/common/ui/Interfaces/TemplatedControl/testScrollbar2.crow | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/TemplatedControl/testScrollbar2.crow b/Samples/common/ui/Interfaces/TemplatedControl/testScrollbar2.crow new file mode 100644 index 00000000..6a7a7c91 --- /dev/null +++ b/Samples/common/ui/Interfaces/TemplatedControl/testScrollbar2.crow @@ -0,0 +1,20 @@ +<HorizontalStack> + <Container Width="50%"> + <Label Text="{../../sb.Value}" /> + </Container> + <ScrollBar Name="sb" Maximum="200" CursorRatio="0.3" Width="16" LargeIncrement="20" SmallIncrement="1"> + <Template> + <Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}"> + <GenericStack Orientation="{./Orientation}" Spacing="0"> + <Shape Style="ArrowBut" MouseDown="./OnDecrease" Height="{./Width}" Margin="0" + Size="10,10" Path="M 4.5,0.5 L 9.5,9.5 L 0.5,9.5 Z F"/> + <Container Margin="1"> + <Widget Style="ScrollBarCursor" Name="Cursor" CornerRadius="{./CornerRadius}"/> + </Container> + <Shape Style="ArrowBut" MouseDown="./OnIncrease" Height="{./Width}" Margin="0" + Size="10,10" Path="M 0.5,0.5 L 9.5,0.5 L 4.5,9.5 Z F"/> + </GenericStack> + </Border> + </Template> + </ScrollBar> +</HorizontalStack>
\ No newline at end of file |