diff options
Diffstat (limited to 'Samples/DebugLogAnalyzer')
4 files changed, 9 insertions, 5 deletions
diff --git a/Samples/DebugLogAnalyzer/src/DebugInterface.cs b/Samples/DebugLogAnalyzer/src/DebugInterface.cs index a9cd51f1..a15b63aa 100644 --- a/Samples/DebugLogAnalyzer/src/DebugInterface.cs +++ b/Samples/DebugLogAnalyzer/src/DebugInterface.cs @@ -70,8 +70,10 @@ namespace Crow Thread.Sleep(1000); } - if (IsDirty) - delRegisterForRepaint(); + if (IsDirty) { + delRegisterForRepaint(); + //Console.WriteLine ("[DbgIFace]RegisterForRepaint"); + } Thread.Sleep (UPDATE_INTERVAL); } @@ -131,8 +133,8 @@ namespace Crow } public override void ForceMousePosition() { - Point p = (Point)delGetScreenCoordinate(); + Point p = Point.Parse(delGetScreenCoordinate().ToString()); Glfw.Glfw3.SetCursorPosition (WindowHandle, p.X + MousePosition.X, p.Y + MousePosition.Y); } } -}
\ No newline at end of file +} diff --git a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs index a1bb8156..3ba9faaa 100644 --- a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs +++ b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs @@ -375,7 +375,7 @@ namespace Crow } protected override void UpdateCache(Context ctx) { - if (initialized && bmp != null) { + if (initialized && bmp != null) { paintCache (ctx, Slot + Parent.ClientRectangle.Position); delResetDirtyState (); } diff --git a/Samples/DebugLogAnalyzer/ui/DbgEventView.template b/Samples/DebugLogAnalyzer/ui/DbgEventView.template index 6679f150..2a61874e 100644 --- a/Samples/DebugLogAnalyzer/ui/DbgEventView.template +++ b/Samples/DebugLogAnalyzer/ui/DbgEventView.template @@ -5,6 +5,7 @@ <Label Text="Instance:" Foreground="White" Width="50%" /> <Label Text="{InstanceIndex}" Foreground="White" Background="Onyx" Width="Stretched" TextAlignment="Center"/> </HorizontalStack> + <Label Text="{Message}" Foreground="White" Background="Onyx" Width="Stretched" Visible="{HasMessage}" Margin="2" Tooltip="{}"/> <HorizontalStack Height="Fit" Width="Stretched" Spacing="2" Background="DimGrey" Margin="2"> <Label Text="Duration(ms):" Foreground="White" Width="50%" /> <Label Text="{DurationMS}" Foreground="White" Background="Onyx" Width="Stretched" TextAlignment="Right"/> diff --git a/Samples/DebugLogAnalyzer/ui/DbgEvtTooltip.crow b/Samples/DebugLogAnalyzer/ui/DbgEvtTooltip.crow index 2d5815e9..a3369249 100644 --- a/Samples/DebugLogAnalyzer/ui/DbgEvtTooltip.crow +++ b/Samples/DebugLogAnalyzer/ui/DbgEvtTooltip.crow @@ -6,6 +6,7 @@ <Label Text="Instance:" Foreground="White" Width="50%" /> <Label Text="{InstanceIndex}" Foreground="White" Background="Onyx" Width="Stretched" TextAlignment="Center"/> </HorizontalStack> + <Label Text="{Message}" Foreground="White" Background="Onyx" Width="Stretched" Visible="{HasMessage}" Margin="2" Tooltip="{}"/> <HorizontalStack Height="Fit" Width="Stretched" Spacing="2" Background="DimGrey" Margin="2"> <Label Text="Duration:" Foreground="White" Width="50%" /> <Label Text="{DurationMS}" Foreground="White" Background="Onyx" Width="Stretched" TextAlignment="Right"/> |