Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Windows 10 Virtual Desktop Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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).

    #2
    Thank you for reporting this. We are aware of this particular issue, and are tracking it under ID # NTEIGHT-8635. Thus far it appears to be an issue caused by Windows 10, and we are keeping our eyes on it to find a solution.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Dave

      How can this issue be related to Windows 10 when NT7 works just fine in this respect? Is this related to newer tools that NT8 uses?

      For me this is major issue. It prevents me from using the chart function of NT8 during my regular trading day

      Comment


        #4
        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


          #5
          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


            #6
            Than you Tiixo, that clue just may help. I'll make sure to pass it along.
            Dave I.NinjaTrader Product Management

            Comment


              #7
              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) ;
              }
              Edit: This is on Windows 8.1 with all latest updates.
              Last edited by jeronymite; 10-15-2015, 07:09 PM.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment


                #8
                I'm not using SW_FORCEMINIMIZE. This would only minimize the window like the minimize button on the top right of the window. I'm using SW_HIDE to completely remove the window from the taskbar and keep it hidden like a virtual desktop manager would.

                Comment


                  #9
                  Still not fixed in Beta6.
                  Sending SW_FORCEMINIMIZE works correctly.
                  But sending SW_HIDE still keeps the chart panel visible while the window is invisible.

                  Comment


                    #10
                    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


                      #11
                      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 WHICKED
                      by WHICKED
                       
                      Started by GussJ, 03-04-2020, 03:11 PM
                      15 responses
                      3,272 views
                      0 likes
                      Last Post xiinteractive  
                      Started by Tim-c, Today, 02:10 PM
                      1 response
                      8 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by Taddypole, Today, 02:47 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post Taddypole  
                      Started by chbruno, 04-24-2024, 04:10 PM
                      4 responses
                      51 views
                      0 likes
                      Last Post chbruno
                      by chbruno
                       
                      Working...
                      X