Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Ellipsis In Title Bar Of Window?

Ellipsis In Title Bar Of Window?

Scheduled Pinned Locked Moved .NET (Core and Framework)
javascriptvisual-studiocomdesignquestion
21 Posts 2 Posters 25 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Alan Burkhart

    Eddy Vluggen wrote:

    You may have some "utility" installed that injects a button into the title-bar of some application; yours being a form in design-mode

    Can't imagine what that might be. Not using any 3rd party products in the project. And I created another form in the project. It did not have the ellipsis. Copied all the controls from the original, still no ellipsis. I was mistaken about one thing: Resizing the window does eventually affect it. Once the width hits about 1000 the ellipsis disappears. Comes back when the width is decreased.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #10

    Alan Burkhart wrote:

    Not using any 3rd party products in the project.

    I wasn't referring to anything in the project, but a utility outside of it, that's part of another application. If you want to draw a button on the title bar of a form of another application, you often try to determine the correct window with some parameters. Those may just be equal to the one you were designing.

    Alan Burkhart wrote:

    Resizing the window does eventually affect it. Once the width hits about 1000 the ellipsis disappears. Comes back when the width is decreased.

    So the target is a window that never becomes larger than 1000 pixels.

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

    L A 2 Replies Last reply
    0
    • A Alan Burkhart

      Richard MacCutchan wrote:

      You may like to keep the project code and try reporting it to Microsoft.

      I probably will. It's odd enough to generate a bit of curiosity but not doing any harm.

      Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #11

      I just replicated it with a simple test, and it's not a bug, but a feature. If the text of the title will not fit the title bar, then trailing characters are replaced by an ellipsis. Go to the form designer and check the text of your form's title. I will bet it has a lot of spaces after the actual text. Alternatively, a lot of spaces and then some extra characters.

      A 1 Reply Last reply
      0
      • L Lost User

        Alan Burkhart wrote:

        Not using any 3rd party products in the project.

        I wasn't referring to anything in the project, but a utility outside of it, that's part of another application. If you want to draw a button on the title bar of a form of another application, you often try to determine the correct window with some parameters. Those may just be equal to the one you were designing.

        Alan Burkhart wrote:

        Resizing the window does eventually affect it. Once the width hits about 1000 the ellipsis disappears. Comes back when the width is decreased.

        So the target is a window that never becomes larger than 1000 pixels.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #12

        See my latest reply to Alan.

        L 1 Reply Last reply
        0
        • L Lost User

          See my latest reply to Alan.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #13

          Tx for the update :thumbsup:

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

          1 Reply Last reply
          0
          • L Lost User

            Alan Burkhart wrote:

            Not using any 3rd party products in the project.

            I wasn't referring to anything in the project, but a utility outside of it, that's part of another application. If you want to draw a button on the title bar of a form of another application, you often try to determine the correct window with some parameters. Those may just be equal to the one you were designing.

            Alan Burkhart wrote:

            Resizing the window does eventually affect it. Once the width hits about 1000 the ellipsis disappears. Comes back when the width is decreased.

            So the target is a window that never becomes larger than 1000 pixels.

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

            A Offline
            A Offline
            Alan Burkhart
            wrote on last edited by
            #14

            Eddy Vluggen wrote:

            So the target is a window that never becomes larger than 1000 pixels.

            It can be any size. Just hadn't had occasion to size it any larger.

            Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

            1 Reply Last reply
            0
            • L Lost User

              I just replicated it with a simple test, and it's not a bug, but a feature. If the text of the title will not fit the title bar, then trailing characters are replaced by an ellipsis. Go to the form designer and check the text of your form's title. I will bet it has a lot of spaces after the actual text. Alternatively, a lot of spaces and then some extra characters.

              A Offline
              A Offline
              Alan Burkhart
              wrote on last edited by
              #15

              That's not it. The ellipsis would be at the end of the text. This is beside the minimize button and the text is just two words. I added a better screen capture[^] below the first one where the text is visible.

              Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

              L 1 Reply Last reply
              0
              • A Alan Burkhart

                That's not it. The ellipsis would be at the end of the text. This is beside the minimize button and the text is just two words. I added a better screen capture[^] below the first one where the text is visible.

                Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #16

                Yes, and I bet if you go to the form's Design window in Visual Studio, and check the properties of the title you will find lots of spaces following the text. That's why the ellipsis disappears when you increase the width of the Window, because all the characters can fit into the title bar.

                A 1 Reply Last reply
                0
                • L Lost User

                  Yes, and I bet if you go to the form's Design window in Visual Studio, and check the properties of the title you will find lots of spaces following the text. That's why the ellipsis disappears when you increase the width of the Window, because all the characters can fit into the title bar.

                  A Offline
                  A Offline
                  Alan Burkhart
                  wrote on last edited by
                  #17

                  Richard MacCutchan wrote:

                  lots of spaces following the text

                  OK, where the heck did all the spaces come from? Never encountered that before. Thank you! :-D

                  Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                  1 Reply Last reply
                  0
                  • A Alan Burkhart

                    In a VS 2017 project, I have an ellipsis (...) in the title bar next to the minimize button. Never saw that before. It doesn't react to the mouse, and vanishes if I maximize the window. Comes back when the window isn't maximized. Resizing the window doesn't affect it. It's there when debugging and in design mode. Why? Anyone? :confused: Screen Capture[^]

                    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #18

                    The "title" is wider than the "title space" in the title bar; hence the "...".

                    "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                    A 1 Reply Last reply
                    0
                    • L Lost User

                      The "title" is wider than the "title space" in the title bar; hence the "...".

                      "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                      A Offline
                      A Offline
                      Alan Burkhart
                      wrote on last edited by
                      #19

                      Yep. We finally figured that out. Thing is it was filled with spaces past the text. No clue how that happened.

                      Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                      L 1 Reply Last reply
                      0
                      • A Alan Burkhart

                        Yep. We finally figured that out. Thing is it was filled with spaces past the text. No clue how that happened.

                        Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #20

                        Spaces will do it; sometime "unprintable characters". (I tend to "trim" input since users tend to "lean" on the keys when sleeping). I've had the latter in source code; weird compile errors ... but you can't "see em'". Sometimes have to "delete the line" and "type it over".

                        "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                        A 1 Reply Last reply
                        0
                        • L Lost User

                          Spaces will do it; sometime "unprintable characters". (I tend to "trim" input since users tend to "lean" on the keys when sleeping). I've had the latter in source code; weird compile errors ... but you can't "see em'". Sometimes have to "delete the line" and "type it over".

                          "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                          A Offline
                          A Offline
                          Alan Burkhart
                          wrote on last edited by
                          #21

                          I use .Trim a lot but never thought about needing it for the title bar of a form. Still curious about how it happened but I doubt I'll ever know.

                          Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups