diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-02-06 17:55:00 +0100 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2021-02-06 20:28:02 +0100 |
| commit | 6fc0cd340818ed04d237c03b64a5960db2e770e5 (patch) | |
| tree | 092f7b36709edc58f000b18c5c2f094ca7978ae5 /Samples/common/ui | |
| parent | 1736b02926251f1f31412ca2abc6466ae4f23ab3 (diff) | |
TextLineCollection.update(TextChange ...)
Diffstat (limited to 'Samples/common/ui')
| -rw-r--r-- | Samples/common/ui/Interfaces/GraphicObject/textBox.crow | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/GraphicObject/textBox.crow b/Samples/common/ui/Interfaces/GraphicObject/textBox.crow new file mode 100644 index 00000000..2094de4b --- /dev/null +++ b/Samples/common/ui/Interfaces/GraphicObject/textBox.crow @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<HorizontalStack > + <VerticalStack Background="Jet" Height="Stretched" Width="50%" Margin="10" > + <TextBox Margin="0" Text="Hello World this is a test string" Focusable="true" Font="serif,14"/> + <TextBox Margin="15" Text="Hello World this is a test string" Focusable="true" Font="serif,14" + Background="Grey" Focused="{Background=White}" Unfocused="{Background=Grey}"/> + <TextBox Name="lab" TextAlignment="Center" Width="Fit" Height="50" Text="Hello World this is a test string" Focusable="true" Font="serif,14" + Background="Grey" Focused="{Background=White}" Unfocused="{Background=Grey}"/> + <TextBox TextAlignment="{TextAlignment}" Multiline="false" Width="300" Height="Fit" Text="Hello World this is a test string" Focusable="true" Font="serif,14" + Background="Grey" Focused="{Background=White}" Unfocused="{Background=Grey}"/> + </VerticalStack> + <VerticalStack Background="Jet" Height="Stretched" Margin="10"> + <TextBox Multiline="true" TextAlignment="{TextAlignment}" Width="320" Height="Fit" + Text="{MultilineText}" Focusable="true" Font="consolas,12" + Background="Grey" Focused="{Background=White}" Unfocused="{Background=Grey}"/> + <VerticalStack Width="300" Height="100"> + <HorizontalStack> + <TextBox Name="tb" Multiline="true" TextAlignment="{TextAlignment}" Width="Stretched" Height="Stretched" + ClipToClientRect="true" + Text="{MultilineText}" Focusable="true" Font="consolas,12" Margin="10" + Background="Grey" Focused="{Background=White}" Unfocused="{Background=Grey}" + /> + <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}" /> + </VerticalStack> + <EnumSelector RadioButtonStyle="CheckBox2" Caption="Text Alignment" EnumValue="{²TextAlignment}" > + <Template> + <GroupBox Caption="{./Caption}" CornerRadius="{./CornerRadius}" Foreground="{./Foreground}" Background="{./Background}"> + <VerticalStack Name="Content" Width="100"/> + </GroupBox> + </Template> + </EnumSelector> + </VerticalStack> +</HorizontalStack>
\ No newline at end of file |