Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Windows 10 Virtual Desktop Bug
Collapse
X
-
Windows 10 Virtual Desktop Bug
When you have a chart on a 2nd desktop in Windows 10, and switch back to the first desktop, the picture of the chart is stuck on the screen. Not the entire window, just the chart section (the window, chart trader, toolbox, etc. doesn't show).Tags: None
-
That is exactly what I'm thinking -- that it is something related to Windows 10's interactions with the Windows Presentation Foundation (WPF) UI elements and the SharpDX (DirectX wrapper) graphics library that we use to draw charts, both of which are not used in NinjaTrader 7. However, that is my theory, and at this point we do not have a definitive answer, but rest assured that it remains on our development team's radar.Dave I.NinjaTrader Product Management
Comment
-
I can reproduce this on Windows 7 as well.
If i send the chart window a window message to hide the window using the ShowWindow API (http://pinvoke.net/default.aspx/user32/ShowWindow.html) then the Window gets hidden and removed from the taskbar but the chart panel is still visible.
It seems like the message is not properly propagated from the window to the panel.
Comment
-
Windows 10 Virtual Desktop Bug
I find these work consistently without issue in NT7, but haven't yet tried them in NT8.
Code:RestoreWindow(IntPtr hand) { ShowWindow (hand, ShowWindowEnum.Restore) ; SendMessage(hand, WM_PAINT, 0, 0) ; } MinimizeWindow(IntPtr hand) { ShowWindow (hand, ShowWindowEnum.ForceMinimized) ; }
Last edited by jeronymite; 10-15-2015, 07:09 PM.
Comment
-
Hello,
I wanted to follow up on this item,
It appears that due to the nature of how the windows are constructed in NT8, this would be expected.
Essentially what is occurring is that these windows commands are targeting the Window frame only which then leaves the chart remaining, this is due to how the windows are constructed in NT8 and would allow for the "split" window you are experiencing.
With that being said, we would not be able to guarantee that all the standard windows API commands would work exactly the same as other basic windows applications would. In some cases this could cause items like this to occur because it is a low level command with a specific purpose being passed to an application that makes use of a lot of custom windows and window frames.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
-
Huh, whats the big problem with this request?
Hiding the Panel during Minimizing is already working. All you need to do extra for SW_Hide is set ShowInTaskbar to false.
Here is a quick indicator script that shows that all needed behaviour is already implemented by using the Show/Hide commands of the window. Setting ShowInTaskbar is litterally all that is needed.
Code:private DispatcherTimer timer; protected override void OnStateChange() { if( State == State.DataLoaded ) { timer = new System.Windows.Threading.DispatcherTimer(); timer.Tick += timer_Tick; timer.Interval = new TimeSpan(0, 0, 10); timer.Start(); } else if( State == State.Terminated ) { if( timer != null ) timer.Stop(); timer = null; if( this.Owner != null && dataLoaded ) { this.ChartControl.Dispatcher.Invoke( (Action)(() => { this.Owner.ShowInTaskbar = true; })); } } } private void timer_Tick(object sender, EventArgs e) { if( this.State == State.Terminated ) return; if( this.Owner.ShowInTaskbar ) { Print("Hiding window"); this.Owner.ShowInTaskbar = false; this.Owner.Hide(); } else { Print( "Showing window"); this.Owner.ShowInTaskbar = true; this.Owner.Show(); } }
Last edited by Tiixo; 11-03-2015, 04:18 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:45 PM
|
2 responses
16 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
15 responses
3,272 views
0 likes
|
Last Post Today, 03:15 PM | ||
Started by Tim-c, Today, 02:10 PM
|
1 response
8 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
51 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
Comment