aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/CrowIDE/ui/editors/SourceEditor.crow
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-03 19:49:15 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-03 19:49:15 +0200
commite6030fa04a8de3fdae1dc19d081bf5feb3d3d73c (patch)
tree89f392cd974d1109a203ade305da467bd378ee48 /Samples/CrowIDE/ui/editors/SourceEditor.crow
parentcad504c62d45952b4651603579f34df0d230841e (diff)
sample directory
Diffstat (limited to 'Samples/CrowIDE/ui/editors/SourceEditor.crow')
-rw-r--r--Samples/CrowIDE/ui/editors/SourceEditor.crow32
1 files changed, 32 insertions, 0 deletions
diff --git a/Samples/CrowIDE/ui/editors/SourceEditor.crow b/Samples/CrowIDE/ui/editors/SourceEditor.crow
new file mode 100644
index 00000000..17d3b1ec
--- /dev/null
+++ b/Samples/CrowIDE/ui/editors/SourceEditor.crow
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<VerticalStack>
+ <HorizontalStack >
+ <SourceEditor Focusable="true" Name="editor" Font="monospace, 12" VerticalAlignment="Top" Margin="2"
+ CurrentLine="{²CurrentLine}" CurrentColumn="{²CurrentColumn}" HasFocus="{IsSelected}"
+ Foreground="Jet" Background="White" Width="Stretched" Height="Stretched"
+ ProjectNode="{}" KeyDown="textView_KeyDown"/>
+ <ScrollBar Name="scrollbarY" Value="{²../editor.ScrollY}"
+ LargeIncrement="{../editor.VisibleLines}"
+ CursorSize="{../editor.ChildHeightRatio}"
+ Maximum="{../editor.MaxScrollY}" Orientation="Vertical"/>
+ </HorizontalStack>
+ <ScrollBar Style="HScrollBar" Name="scrollbarX" Value="{²../editor.ScrollX}"
+ Maximum="{../editor.MaxScrollX}" Orientation="Horizontal"
+ LargeIncrement="{../editor.VisibleColumns}"
+ CursorSize="{../editor.ChildWidthRatio}"/>
+ <HorizontalStack Height="Fit">
+ <Label Text="{../../editor.HoverError}" Width="Stretched"/>
+ <Widget Background="Red" Width="5" Height="5" Visible="{IsDirty}"/>
+ <Label Text="Hover Line:" Foreground="Grey"/>
+ <Label Text="{../../editor.HoverLine}"/>
+ <Widget Height="5" Width="10"/>
+ <Label Text="Line:" Foreground="Grey"/>
+ <Label Text="{CurrentLine}"/>
+ <Widget Height="5" Width="10"/>
+ <Label Text="column:" Foreground="Grey"/>
+ <Label Text="{CurrentColumn}"/>
+ <Widget Height="5" Width="10"/>
+ <Label Text="ScrollX:" Foreground="Grey"/>
+ <Label Text="{../../editor.ScrollX}"/>
+ </HorizontalStack>
+</VerticalStack>