• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


Modal window loses focus, index after switching windows application, bug in UX?

  • Filter
  • Time
  • Show
Clear All
new posts

    Modal window loses focus, index after switching windows application, bug in UX?

    Steps to reproduce:

    Open ninjascript editor window.

    Switch to NT Control Center, open Trading Hours window.

    Trading Hours window in now modal and you cannot switch to NT Editor window.
    AS Designed.

    Drag Trading Hours window to different location on screen to be able to view Editor window.

    Now switch to a different Window Application, such as Google Chrome web browser.

    Now Click on open program button labeled "NinjaScript Editor" in the Windows task bar.

    The editor is displayed, but does not respond to any mouse or keyboard activity.

    The Trading Hours window is still modal and is blocking input to the Editor window from mouse or keyboard, but the Trading Hours modal window is a descendant of NT Control Center, and therefore it is not displayed on screen to flash it's title bar when trying to send input to Editor window.

    Windows Task Manager does not indicate any NT windows in state of "Not Responding"

    Very confusing and make you think NT has hanged or froze...

    Hello balltrader,
    Thanks for your note.

    This behavior is expected. However, I will forward this to our QA team for review anyway.

    Is there a specific reason that you would like to have the NS Editor window and the Trading Hours window open at the same time?
    Josh G.NinjaTrader Customer Service



      1. this behavior is the opposite of what is expected of a modal window. please reference: https://en.wikipedia.org/wiki/Modal_window

      "In user interface design for computer applications, a modal window is a graphical control element subordinate to an application's main window. It creates a mode that disables the main window, but keeps it visible with the modal window as a child window in front of it. Users must interact with the modal window before they can return to the parent application."

      So when I return to the NinjaTrader application, no matter which interface window I click on, i.e. Editor window, the existing active modal window should be in my face saying "You shall not pass!"

      2. it was just a random workflow I was involved in, editing some code, needing to see how a trading session was delineated so I opened the Trading Hours window, needing to switch to a web browser window to enter some programming notes into a google doc, and then switching back to the ninjatrader editor.

      That is when the Principle of least astonishment was violated, "In general engineering design contexts, the principle means that a component of a system should behave in a way that users expect it to behave; that is, users should not be astonished by its behavior."


        I agree with you that this is not ideal behavior.

        However, after speaking with our QA team it seems that this is a limitation of NinjaTrader 8 being multi-threaded. Each of NinjaTraders windows are on different threads and the modal window will only correspond to the thread it is attached to.

        It looks like there have been workarounds in the past but they were removed based on user feedback.

        I will submit a request to have this handled as you outlined and will let you know when I have further information.

        EDIT : Internal Tracking number is SFT-3179
        Last edited by NinjaTrader_JoshG; 04-27-2018, 01:12 PM.
        Josh G.NinjaTrader Customer Service


        Latest Posts


        Topics Statistics Last Post
        Started by behindthewheel, Today, 10:39 AM
        1 response
        Last Post NinjaTrader_Jim  
        Started by Newtrader101, Today, 10:46 AM
        3 responses
        Last Post NinjaTrader_ChristopherJ  
        Started by tecmisc1, Today, 10:42 AM
        2 responses
        Last Post NinjaTrader_ChrisL  
        Started by ballboy11, Today, 10:35 AM
        1 response
        Last Post NinjaTrader_Kate  
        Started by fredfred, Today, 10:30 AM
        1 response
        Last Post NinjaTrader_Melissa