aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/ShowCase
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-02-04 15:40:39 +0100
committerj-p <jp_bruyere@hotmail.com>2021-02-06 20:28:02 +0100
commit5cbd0b6bc72f83d1bc404664069949892ccf24ca (patch)
tree777e007645b7dd4cd969b94996b1e406018380c5 /Samples/ShowCase
parent0c3faab041a4af8607d7ba0bd7e08b38c36a8945 (diff)
LangVersion=>7.3, Scrolling TextBox, multi svg Part ids, remove some Focusable=true in default style
Diffstat (limited to 'Samples/ShowCase')
-rw-r--r--Samples/ShowCase/ui/showcase.crow16
1 files changed, 7 insertions, 9 deletions
diff --git a/Samples/ShowCase/ui/showcase.crow b/Samples/ShowCase/ui/showcase.crow
index 2447ab67..6924fb54 100644
--- a/Samples/ShowCase/ui/showcase.crow
+++ b/Samples/ShowCase/ui/showcase.crow
@@ -19,16 +19,14 @@
<Button Style="IcoButton" Command="{CMDSaveAs}" />
</HorizontalStack>
<HorizontalStack>
- <Scroller Name="scroller1" Background="White"
- Margin="2" ScrollY="{../scrollbar1.Value}">
- <TextBox VerticalAlignment="Top"
- Text="{²Source}" Multiline="true"
- Font="consolas, 12"/>
- </Scroller>
- <!--<ScrollBar Name="scrollbar1" Value="{../scroller1.ScrollY}"
- LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30"
- CursorSize="{../scroller1.ChildHeightRatio}" Maximum="{../scroller1.MaxScrollY}" />-->
+ <TextBox Name="tb" Text="{²Source}" Multiline="true" Font="consolas, 12" Focusable="true" Height="Stretched" Width="Stretched" />
+ <ScrollBar Value="{²../tb.ScrollY}"
+ LargeIncrement="{../tb.PageHeight}" SmallIncrement="1"
+ CursorRatio="{../tb.ChildHeightRatio}" Maximum="{../tb.MaxScrollY}" />
</HorizontalStack>
+ <ScrollBar Style="HScrollBar" Value="{²../tb.ScrollX}"
+ LargeIncrement="{../tb.PageWidth}" SmallIncrement="1"
+ CursorRatio="{../tb.ChildWidthRatio}" Maximum="{../tb.MaxScrollX}" />
<Label Text="{CurrentFile}" Width="Stretched"/>
<Label Visible="{ShowError}" Text="{ErrorMessage}" Background="Red" Foreground="White" Width="Stretched" Margin="2"
Multiline="true"/>