From 2a248795b1bc9a6d47dcdb3d59538cb44c035b0e Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Fri, 3 Mar 2023 15:08:27 +0100 Subject: [PATCH] - work in progress --- Icarus/Icarus.vbproj | 11 + Icarus/MainWindow/MainWindowV.xaml | 12 +- Icarus/MainWindow/MainWindowV.xaml.vb | 15 ++ Icarus/Resources/Common/Close.png | Bin 0 -> 301 bytes Icarus/Resources/Common/Maximize.png | Bin 0 -> 136 bytes Icarus/Resources/Common/Minimize.png | Bin 0 -> 136 bytes Icarus/Resources/Common/Restore.png | Bin 0 -> 254 bytes Icarus/SecondaryWindow/SecondaryWindowV.xaml | 19 +- .../SecondaryWindow/SecondaryWindowV.xaml.vb | 4 +- Icarus/Utility/Dictionary.xaml | 194 +++++++++++++++++- 10 files changed, 235 insertions(+), 20 deletions(-) create mode 100644 Icarus/Resources/Common/Close.png create mode 100644 Icarus/Resources/Common/Maximize.png create mode 100644 Icarus/Resources/Common/Minimize.png create mode 100644 Icarus/Resources/Common/Restore.png diff --git a/Icarus/Icarus.vbproj b/Icarus/Icarus.vbproj index 8280b76..416ffdd 100644 --- a/Icarus/Icarus.vbproj +++ b/Icarus/Icarus.vbproj @@ -80,6 +80,9 @@ False ..\..\..\EgtProg\DllD32\EgtUILib.dll + + ..\..\..\EgtProg\DllD64\EgtWPFLib48.dll + False ..\..\..\EgtProg\DllD32\EgtWPFLib5.dll @@ -787,6 +790,14 @@ + + + + + + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Icarus\IcarusR32.exe diff --git a/Icarus/MainWindow/MainWindowV.xaml b/Icarus/MainWindow/MainWindowV.xaml index 1bd47fb..ae368f6 100644 --- a/Icarus/MainWindow/MainWindowV.xaml +++ b/Icarus/MainWindow/MainWindowV.xaml @@ -1,15 +1,15 @@ - + Topmost="False"> - + diff --git a/Icarus/MainWindow/MainWindowV.xaml.vb b/Icarus/MainWindow/MainWindowV.xaml.vb index fb72bd8..3f0b145 100644 --- a/Icarus/MainWindow/MainWindowV.xaml.vb +++ b/Icarus/MainWindow/MainWindowV.xaml.vb @@ -20,6 +20,8 @@ Class MainWindowV AddHandler Me.Closing, AddressOf MainWindowV_Closing AddHandler Me.KeyDown, AddressOf MainWindowV_KeyDown AddHandler Me.StateChanged, AddressOf MainWindowV_StateChanged + AddHandler Me.LocationChanged, AddressOf MainWindowV_LocationChanged + AddHandler Me.SizeChanged, AddressOf MainWindowV_SizeChanged End Sub #End Region ' CONSTRUCTOR @@ -64,6 +66,19 @@ Class MainWindowV End If End Sub + Private Sub MainWindowV_LocationChanged(sender As Object, e As EventArgs) + If Not IsNothing(Map.refSecondaryWindowV) Then Map.refSecondaryWindowV.Top = Me.Top + If Not IsNothing(Map.refSecondaryWindowV) Then Map.refSecondaryWindowV.Left = Me.Left + End Sub + + Private Sub MainWindowV_SizeChanged(sender As Object, e As SizeChangedEventArgs) + If Not IsNothing(Map.refSecondaryWindowV) Then + If e.WidthChanged Then Map.refSecondaryWindowV.Width = e.NewSize.Width + If e.HeightChanged Then Map.refSecondaryWindowV.Height = e.NewSize.Height + Map.refSecondaryWindowV.InvalidateVisual() + End If + End Sub + Private Sub MainWindowV_StateChanged(sender As Object, e As EventArgs) If Not IsNothing(Map.refSecondaryWindowV) AndAlso Not Map.refSecondaryWindowV.WindowChangingState Then Map.refSecondaryWindowV.WindowState = Me.WindowState diff --git a/Icarus/Resources/Common/Close.png b/Icarus/Resources/Common/Close.png new file mode 100644 index 0000000000000000000000000000000000000000..0abb9d7318f91fb376159cee236c99c46ad6415f GIT binary patch literal 301 zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{1|(OCFP#RYI14-?iy0WWg+Q3`(%rg0K*9T- zE{-7oJ|KnwWl4Qlq!@x2D59)$9ZFeS1sUt>zv(pm%=K zWATKS7pwL=_Lhn(TskCcV06v4>V-%J&zpr(5lqc5B-Sw2_CDLvI_F-qfTLjULDmgS zc|s?Se9&)L&C-?e`d4`ZbB<}DvZD`Q%6ZD`Q%6t}$|!u*Hzgq&c8a#G(~hyoYl8#cy{X7 zoj;4%QtT9++0{N8D;$zmpWoPcupz|RTuD7g!{K=|gUt;NDX!C19_#+hpB>*~I`zPT yj6NquVKx6Zza4y?g*(m!vK$mx=_er}!EnaY!1I*WeGj1989ZJ6T-G@yGywqYV_04Q literal 0 HcmV?d00001 diff --git a/Icarus/SecondaryWindow/SecondaryWindowV.xaml b/Icarus/SecondaryWindow/SecondaryWindowV.xaml index 12f614d..931775b 100644 --- a/Icarus/SecondaryWindow/SecondaryWindowV.xaml +++ b/Icarus/SecondaryWindow/SecondaryWindowV.xaml @@ -1,24 +1,21 @@ - - + @@ -29,4 +26,4 @@ - + diff --git a/Icarus/SecondaryWindow/SecondaryWindowV.xaml.vb b/Icarus/SecondaryWindow/SecondaryWindowV.xaml.vb index 270cbb7..ce5a606 100644 --- a/Icarus/SecondaryWindow/SecondaryWindowV.xaml.vb +++ b/Icarus/SecondaryWindow/SecondaryWindowV.xaml.vb @@ -22,8 +22,8 @@ Public Class SecondaryWindowV AddHandler Me.ContentRendered, AddressOf SecondaryWindowV_ContentRendered AddHandler Me.Loaded, AddressOf SecondaryWindowV_Loaded AddHandler Me.Closing, AddressOf SecondaryWindowV_Closing - AddHandler Me.LocationChanged, AddressOf SecondaryWindowV_LocationChanged - AddHandler Me.SizeChanged, AddressOf SecondaryWindowV_SizeChanged + 'AddHandler Me.LocationChanged, AddressOf SecondaryWindowV_LocationChanged + 'AddHandler Me.SizeChanged, AddressOf SecondaryWindowV_SizeChanged AddHandler Me.StateChanged, AddressOf SecondaryWindowV_StateChanged End Sub diff --git a/Icarus/Utility/Dictionary.xaml b/Icarus/Utility/Dictionary.xaml index 55518c5..07b175b 100644 --- a/Icarus/Utility/Dictionary.xaml +++ b/Icarus/Utility/Dictionary.xaml @@ -3,6 +3,7 @@ xmlns:PrintApp="clr-namespace:Icarus" xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2" xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5" + xmlns:EgtWPFLib48="clr-namespace:EgtWPFLib48;assembly=EgtWPFLib48" xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5" xmlns:sys="clr-namespace:System;assembly=mscorlib" > @@ -810,7 +811,7 @@ - + @@ -4006,4 +4007,195 @@ + + + + + + + + + +