Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dialogs too 'on top'

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

    Dialogs too 'on top'

    Hi,

    I like how some of the auxiliary NT dialog and control windows stay on top of other NT windows, but they are also staying'on top' of windows from other applications when NT doesn't have focus, and on top of the Windows task bar. At this point (when not currently using NT, to check mail or something)they are a bit of a nuisance, covering content of non-NT windows/applications that currently have focus. Minimizing the window to which the auxiliary window is related doesn't minimize the auxiliary window. NT windows found to do this are the script editor Find/Replace, the Strategy Analyzer data window, and the Simulation connection trend slider (there may also be others I haven't run into yet). Any chance these auxiliary dialog and control windows can be changed so they stay on top of only NT windows and allow other applications that receive focus to cover them?

    Thanks.





    #2
    imported post

    Sorry, this is a windows limitation: As a window is "Always on Top" = "TopMost" it does not losse this property as another app gets the focus.

    Comment


      #3
      imported post

      Hi Dierk,

      Interesting - is this a limitation of CSharp or .NET? I've used (and developed) applications in other languages (Visual Basic) that are able to have windows top most in the current application, while allowing other applications to cover them. This style of window hierarchy seems a bit more cooperative, I'd be a bit surprised anddisappointed if Microsoft didn't continue tosupport such an approach in it's newest language and platform. Oddly enough, out of all the applications I use I've only seen this kind of too 'on top' behavior in NT....

      Thanks.

      Comment


        #4
        imported post

        We just set Form.TopMost=True.

        Comment


          #5
          imported post

          From the docs it looks like working with Form.OwnedForms may result in a less intrusive UI for NT:

          "When a form is owned by another form, it is minimized and closed with the owner form. For example, if Form2 is owned by form Form1, if Form1 is closed or minimized, Form2 is also closed or minimized. Owned forms are also never displayed behind their owner form. You can use owned forms for windows such as find and replace windows, which should not be displayed behind the owner form when the owner form is selected."

          I haven't tested this and am somewhat new to .NET, but from the above it appearsthe advantages are having auxiliary forms on top of their owners (as at present), and minimized with their owners (improvement from present). And I'm guessing (hoping) the owned forms of one application will not cover (be on top of) forms from another application when the other application has focus (I believe a big improvement).

          Thanks.


          Comment


            #6
            imported post

            Thanks for your suggestion. We'll add it to the list.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by firefoxforum12, Yesterday, 08:53 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by kmunroe478, Yesterday, 05:39 PM
            2 responses
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by kevinenergy, 02-17-2023, 12:42 PM
            115 responses
            2,699 views
            1 like
            Last Post kevinenergy  
            Started by prdecast, Today, 06:07 AM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by Christopher_R, Today, 12:29 AM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Working...
            X