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. The Lounge
  3. The ever shrinking pixel

The ever shrinking pixel

Scheduled Pinned Locked Moved The Lounge
visual-studioperformancequestionworkspace
30 Posts 17 Posters 0 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.
  • T Todd Smith

    Since monitor resolutions keep going up up up has anyone found it getting more and more difficult to click on certain things in windows? Trying to grab a vertical splitter in VS (solution explorer window) is an exercise in frustration these days. Sometimes resizing windows is also a pain. You see the cursor change indicating you're on the correct spot but when you go to click the mouse button you nudge over a pixel and BAM you're no longer on target. Is this just my particular mouse / monitor resolution / OS setup or are others experiencing this as well? (MS Intellimouse Optical, IntelliPoint 6.2, 1 slider tick away from full speed on the pointer options and 1920x1200).

    Todd Smith

    T Offline
    T Offline
    TabDents
    wrote on last edited by
    #11

    That's only part of the resolution! We are making touch enabled software for the dental market. We need access to data (and Xrays) during treatments and that means we need large monitors. So since more then 7 years we use 120 DPI and higher to accomplish visibility. The real problem is not DPI but precalculation of fontsize(including type aspects) before applying resize logic. Min size of labels, min size of forms and so on has to be precalulated realtime, depending upon size charateristrics. You can see why this is so important: even Microsoft doeds not cooerectly precalculate fonts in larger DPI's. Jan Ulehake, TabDents, Netherlands.

    dentist

    software developper

    1 Reply Last reply
    0
    • L Luc Pattyn

      Most of the time the problem is Windows treats your monitor as having 96 dpi, where in reality modern monitors often have 120 or more dpi. Here is what everyone should do to get the expected dimensions on screen: 1. calculate actual DPI; you can use this formula: SQRT(w*w + h*h)/diag where w and h are the monitor width and height in pixels, and diag is the diagonal in inches. Example1: w=1440, h=900, diag=17 ==> dpi=SQRT(1440*1440 + 900*900)/17=SQRT(2883600)/17=1698/17=100 is close enough to 96 Example2: w=1920, h=1200, diag=20 ==> dpi=SQRT(1920*1920 + 1200*1200)/20=SQRT(5126400)/20=2264/20=113 is 118% of 96pdi 2. go to Display Properties, Settings, Advanced, choose custom DPI, and choose 118% in case of example2. If the value was still at 100% (hence 96dpi), the net result will be that your desktop logically shrinks by 18% however what remains visible now takes the full screen area, hence is 18% larger (linearly). BTW: some (if not all) manufacturers leave the default resolution at 96 dpi, even when they know this to be incorrect (e.g.you buy a laptop with a high-resolution display); I had this experience first with Dell, several years ago. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      H Offline
      H Offline
      hairy_hats
      wrote on last edited by
      #12

      Thanks, duly added to Evernote[^]!

      1 Reply Last reply
      0
      • S S Senthil Kumar

        Hmm, I thought that applies only to things that are measured in inches (or some actual length measure), instead of pixels. As you say, if an object on the screen is supposed to be 1 inch long, Windows will use 96 pixels to draw it (at 96 dpi). If the screen is instead 120 dpi, the actual length will be 96/120 inches, and I thought that's what the DPI setting helps avoid.

        Regards Senthil [MVP - Visual C#] _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #13

        even so, many more things are measured in inches, such as font sizes: the point unit used in one way or another euals 1/72d of an inch. however, you are right, some things are resolution independent, such as a 1-pixel wide line. Here shrinking pixels yield a fainter line. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        1 Reply Last reply
        0
        • T Todd Smith

          Since monitor resolutions keep going up up up has anyone found it getting more and more difficult to click on certain things in windows? Trying to grab a vertical splitter in VS (solution explorer window) is an exercise in frustration these days. Sometimes resizing windows is also a pain. You see the cursor change indicating you're on the correct spot but when you go to click the mouse button you nudge over a pixel and BAM you're no longer on target. Is this just my particular mouse / monitor resolution / OS setup or are others experiencing this as well? (MS Intellimouse Optical, IntelliPoint 6.2, 1 slider tick away from full speed on the pointer options and 1920x1200).

          Todd Smith

          D Offline
          D Offline
          Daniel Grunwald
          wrote on last edited by
          #14

          Where do you find those monitors? The resolution tends to go DOWN for new monitors (well, at least the cheap ones). For example, all 22" monitors seem to use a resolution of 1.680 x 1.050. That's only 90 DPI! I've seen 17" monitors that had a better resolution - but those seem to have disappeared now. Apparently the manufacturers think the main use of a computer is watching videos - the monitors are getting bigger, even wider (I'm seeing more and more 16:9 PC monitors), but the resolution is shrinking. Unfortunately, if you DO have a good monitor, you'll have to deal either with too small display elements, or with apps that break when you change the DPI setting in Windows. It's a bit better with Vista though, there the desktop manager can scale up application windows as bitmaps. That doesn't look nice, but it's better than the alternatives (having tiny buttons or buttons that are unreachable because the layout is messed up on high DPI settings).

          J T 2 Replies Last reply
          0
          • M Mike H Hodgson

            "I wish I could edit such settings somewhere, and/or limit the zooming to a couple of factors." In your Firefox, type about:config in the address bar. On the main page, you will see a long list of configuration entries. Enter the name of the key you want to update in the “Filter” field. The list will narrow to only the entries that match your keyword as you type. To modify the value, simply double click on the entry value field and update the entry. That’s all! 17) Same Zoom Level For Every Site Firefox remembers your zoom preference for each site and set it to your preferences whenever you load the page. If you want the zoom level to be consistent from site to site, you can toggle the value of browser.zoom.siteSpecific from True to False. Config name: browser.zoom.siteSpecific Default: True Modified value: False (enable same zoom preferences for every sites) http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21[^]

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #15

            Hi Mike, thanks for the info. Much appreciated. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


            1 Reply Last reply
            0
            • D Daniel Grunwald

              Where do you find those monitors? The resolution tends to go DOWN for new monitors (well, at least the cheap ones). For example, all 22" monitors seem to use a resolution of 1.680 x 1.050. That's only 90 DPI! I've seen 17" monitors that had a better resolution - but those seem to have disappeared now. Apparently the manufacturers think the main use of a computer is watching videos - the monitors are getting bigger, even wider (I'm seeing more and more 16:9 PC monitors), but the resolution is shrinking. Unfortunately, if you DO have a good monitor, you'll have to deal either with too small display elements, or with apps that break when you change the DPI setting in Windows. It's a bit better with Vista though, there the desktop manager can scale up application windows as bitmaps. That doesn't look nice, but it's better than the alternatives (having tiny buttons or buttons that are unreachable because the layout is messed up on high DPI settings).

              J Offline
              J Offline
              JasonPSage
              wrote on last edited by
              #16

              Um... this thread is mostly silly to m e (Except for the observation that many bigger monitors don't have the higher resolutions you'd expect available). as for the shrinking targets, shrinking pixels .... Let me call the "WaAAAHH-bulance."... Here is the trick: CHANGE YOUR RESOLUTION!!!!! GEESH

              Know way to many languages... master of none!

              L 1 Reply Last reply
              0
              • J JasonPSage

                Um... this thread is mostly silly to m e (Except for the observation that many bigger monitors don't have the higher resolutions you'd expect available). as for the shrinking targets, shrinking pixels .... Let me call the "WaAAAHH-bulance."... Here is the trick: CHANGE YOUR RESOLUTION!!!!! GEESH

                Know way to many languages... master of none!

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #17

                It does not make much sense to let the PC calculate the screen content at one resolution and then have the monitor rescale everything to another resolution; when scaling up (or down), it has to create new pixel values without knowing what is actually being rendered. Especially on digital monitors (LED, LCD, plasma) you will get better overall image quality by keeping the resolution equal to the number of pixels that are physically available in your monitor, and by giving Windows the actual DPI value. That way, rather than having the monitor trying to scale everything, Windows will draw almost everything to the right size; images will get interpolated better, and texts (using TrueType or other smart font technology) will render much better. The one thing that will not work properly is elements drawn with pixel sizes, rather than physical sizes (inches, points, ...). :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                L 1 Reply Last reply
                0
                • L Luc Pattyn

                  Most of the time the problem is Windows treats your monitor as having 96 dpi, where in reality modern monitors often have 120 or more dpi. Here is what everyone should do to get the expected dimensions on screen: 1. calculate actual DPI; you can use this formula: SQRT(w*w + h*h)/diag where w and h are the monitor width and height in pixels, and diag is the diagonal in inches. Example1: w=1440, h=900, diag=17 ==> dpi=SQRT(1440*1440 + 900*900)/17=SQRT(2883600)/17=1698/17=100 is close enough to 96 Example2: w=1920, h=1200, diag=20 ==> dpi=SQRT(1920*1920 + 1200*1200)/20=SQRT(5126400)/20=2264/20=113 is 118% of 96pdi 2. go to Display Properties, Settings, Advanced, choose custom DPI, and choose 118% in case of example2. If the value was still at 100% (hence 96dpi), the net result will be that your desktop logically shrinks by 18% however what remains visible now takes the full screen area, hence is 18% larger (linearly). BTW: some (if not all) manufacturers leave the default resolution at 96 dpi, even when they know this to be incorrect (e.g.you buy a laptop with a high-resolution display); I had this experience first with Dell, several years ago. :)

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                  T Offline
                  T Offline
                  Todd Smith
                  wrote on last edited by
                  #18

                  I've switched both of my systems over to 118% so we'll see how it works. The only negative is that it changes the way fonts look. I'll have to tweak the fonts if the clicking becomes noticeably more accurate.

                  Todd Smith

                  1 Reply Last reply
                  0
                  • T Todd Smith

                    Since monitor resolutions keep going up up up has anyone found it getting more and more difficult to click on certain things in windows? Trying to grab a vertical splitter in VS (solution explorer window) is an exercise in frustration these days. Sometimes resizing windows is also a pain. You see the cursor change indicating you're on the correct spot but when you go to click the mouse button you nudge over a pixel and BAM you're no longer on target. Is this just my particular mouse / monitor resolution / OS setup or are others experiencing this as well? (MS Intellimouse Optical, IntelliPoint 6.2, 1 slider tick away from full speed on the pointer options and 1920x1200).

                    Todd Smith

                    K Offline
                    K Offline
                    Kevin Li Li Ken un
                    wrote on last edited by
                    #19

                    I think mouse coordination skills factor in as well. I set my mouse speed next to the maximum speed and I'm not having any problems on my 1920 × 1200 screen.


                    My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d :) Now I can Google this value and find all my Code Project posts!

                    T D 2 Replies Last reply
                    0
                    • D Daniel Grunwald

                      Where do you find those monitors? The resolution tends to go DOWN for new monitors (well, at least the cheap ones). For example, all 22" monitors seem to use a resolution of 1.680 x 1.050. That's only 90 DPI! I've seen 17" monitors that had a better resolution - but those seem to have disappeared now. Apparently the manufacturers think the main use of a computer is watching videos - the monitors are getting bigger, even wider (I'm seeing more and more 16:9 PC monitors), but the resolution is shrinking. Unfortunately, if you DO have a good monitor, you'll have to deal either with too small display elements, or with apps that break when you change the DPI setting in Windows. It's a bit better with Vista though, there the desktop manager can scale up application windows as bitmaps. That doesn't look nice, but it's better than the alternatives (having tiny buttons or buttons that are unreachable because the layout is messed up on high DPI settings).

                      T Offline
                      T Offline
                      Todd Smith
                      wrote on last edited by
                      #20

                      Daniel Grunwald wrote:

                      Where do you find those monitors? The resolution tends to go DOWN for new monitors (well, at least the cheap ones). For example, all 22" monitors seem to use a resolution of 1.680 x 1.050. That's only 90 DPI! I've seen 17" monitors that had a better resolution - but those seem to have disappeared now.

                      Dell WFP series[^]

                      Todd Smith

                      D 1 Reply Last reply
                      0
                      • K Kevin Li Li Ken un

                        I think mouse coordination skills factor in as well. I set my mouse speed next to the maximum speed and I'm not having any problems on my 1920 × 1200 screen.


                        My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d :) Now I can Google this value and find all my Code Project posts!

                        T Offline
                        T Offline
                        Todd Smith
                        wrote on last edited by
                        #21

                        Lee, Gun-Woon wrote:

                        I think mouse coordination skills factor in as well. I set my mouse speed next to the maximum speed and I'm not having any problems on my 1920 × 1200 screen.

                        What kind of mouse? I'm beginning to think there's a big difference in behavior when it comes to mice.

                        Todd Smith

                        K 1 Reply Last reply
                        0
                        • T Todd Smith

                          Lee, Gun-Woon wrote:

                          I think mouse coordination skills factor in as well. I set my mouse speed next to the maximum speed and I'm not having any problems on my 1920 × 1200 screen.

                          What kind of mouse? I'm beginning to think there's a big difference in behavior when it comes to mice.

                          Todd Smith

                          K Offline
                          K Offline
                          Kevin Li Li Ken un
                          wrote on last edited by
                          #22

                          I've got an HP mouse (Model: N3 Ball) that came with my HP desktop. I've also got a Logitech USB mouse (Model: MX518). They both work superb. By the way, my screen is 25.5". That works out to about 88 pixels per inch. I'm not sure if a higher DPI makes it harder, but there are many screens with much higher DPI.


                          My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d :) Now I can Google this value and find all my Code Project posts!

                          1 Reply Last reply
                          0
                          • T Todd Smith

                            Daniel Grunwald wrote:

                            Where do you find those monitors? The resolution tends to go DOWN for new monitors (well, at least the cheap ones). For example, all 22" monitors seem to use a resolution of 1.680 x 1.050. That's only 90 DPI! I've seen 17" monitors that had a better resolution - but those seem to have disappeared now.

                            Dell WFP series[^]

                            Todd Smith

                            D Offline
                            D Offline
                            Dan Neely
                            wrote on last edited by
                            #23

                            How is a 24" monitor a replacement for a high res 17? Anyway, a 17" 1600x1200 (the minimum needed to exceed 1680x1050) is 118DPI. Your dell is only 94 DPI. You'd need a 2400x1500 resolution in a 24" screen to match the 17's DPI. If the 17" ran 1920x1200 (I know some laptops did this) even a 24" 2560x1600 would be a lesser DPI.

                            It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains. -- Pride and Prejudice and Zombies

                            1 Reply Last reply
                            0
                            • K Kevin Li Li Ken un

                              I think mouse coordination skills factor in as well. I set my mouse speed next to the maximum speed and I'm not having any problems on my 1920 × 1200 screen.


                              My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d :) Now I can Google this value and find all my Code Project posts!

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #24

                              I've noticed the difference between the 800DPI of my MX610, and the 300 DPI of a cheapo mouse.

                              It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains. -- Pride and Prejudice and Zombies

                              1 Reply Last reply
                              0
                              • L Luc Pattyn

                                You're welcome. BTW: I only told part of the story. Several years ago I did create a small app that toggles screen resolution between high-res and normal-res with a hotkey. There are several tricky parts in doing it right: - setting the resolution is no problem, just a bit of P/Invoke; however: - all the desktop icons (assuming "snap to grid", no "automatic positioning") move around randomly when they would fall outside the reduced desktop area, so I tried to memorize their position at each resolution and make them move as little as possible. Never fully managed to cope with the "logic" Explorer applies to it though. - all the open Windows that suddenly are larger than the new desktop area, get shrunk by Windows Explorer, which is fine but needs to be undone when switching back to the high-res mode (so a Window that filled most of the screen at high-res does so again when returning to high-res). That works fine, except I have never found a way to get at the dimensions of a minimized window: hence a large but minimized window would shrink automatically but not grow back to its original size. However I stopped using this tool when I started using FireFox, which zooms rather well, except it tries to associate zoom factors with URLs in an uncontrollable manner. I wish I could edit such settings somewhere, and/or limit the zooming to a couple of factors. :)

                                Luc Pattyn [Forum Guidelines] [My Articles]


                                Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                                modified on Tuesday, May 5, 2009 9:00 PM

                                N Offline
                                N Offline
                                Naruki 0
                                wrote on last edited by
                                #25

                                Do you know the secret to storing/resetting icon placement on the desktop? Every so often something happens and my icons all go kablooey, and then I have to manually drag them all back to where I had them before. I keep looking for some clue as to where Windows stores these positions, but I've never found it. I'd love to be able to run a quick utility to reset everything automagically.

                                Codemonkeys don't do it at all. Too busy coding.

                                L K 2 Replies Last reply
                                0
                                • N Naruki 0

                                  Do you know the secret to storing/resetting icon placement on the desktop? Every so often something happens and my icons all go kablooey, and then I have to manually drag them all back to where I had them before. I keep looking for some clue as to where Windows stores these positions, but I've never found it. I'd love to be able to run a quick utility to reset everything automagically.

                                  Codemonkeys don't do it at all. Too busy coding.

                                  L Offline
                                  L Offline
                                  Luc Pattyn
                                  wrote on last edited by
                                  #26

                                  Hi, the desktop is a ListView, the icons are ListViewItems, you can get their position with SendMessage(LVM_GETITEMPOSITION); that is the easy part. The problem is, as soon as you set a new position with LVM_SETITEMPOSITION, the desktop gets recalculated and a lot of them move again, including some you already have set at the position you want. I got close, but never got it completely right. :)

                                  Luc Pattyn [Forum Guidelines] [My Articles]


                                  Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                                  N 1 Reply Last reply
                                  0
                                  • L Luc Pattyn

                                    Hi, the desktop is a ListView, the icons are ListViewItems, you can get their position with SendMessage(LVM_GETITEMPOSITION); that is the easy part. The problem is, as soon as you set a new position with LVM_SETITEMPOSITION, the desktop gets recalculated and a lot of them move again, including some you already have set at the position you want. I got close, but never got it completely right. :)

                                    Luc Pattyn [Forum Guidelines] [My Articles]


                                    Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                                    N Offline
                                    N Offline
                                    Naruki 0
                                    wrote on last edited by
                                    #27

                                    Soooo close! Dangit. I'll keep searching. Surely it stores that info in the registry somewhere, since it remembers it between reboots. If only I could find out where...

                                    Codemonkeys don't do it at all. Too busy coding.

                                    1 Reply Last reply
                                    0
                                    • L Luc Pattyn

                                      It does not make much sense to let the PC calculate the screen content at one resolution and then have the monitor rescale everything to another resolution; when scaling up (or down), it has to create new pixel values without knowing what is actually being rendered. Especially on digital monitors (LED, LCD, plasma) you will get better overall image quality by keeping the resolution equal to the number of pixels that are physically available in your monitor, and by giving Windows the actual DPI value. That way, rather than having the monitor trying to scale everything, Windows will draw almost everything to the right size; images will get interpolated better, and texts (using TrueType or other smart font technology) will render much better. The one thing that will not work properly is elements drawn with pixel sizes, rather than physical sizes (inches, points, ...). :)

                                      Luc Pattyn [Forum Guidelines] [My Articles]


                                      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


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

                                      I know it's getting a bit old but..

                                      Luc Pattyn wrote:

                                      Especially Only on digital monitors (LED, LCD, plasma)

                                      Good ol' CRT's always have multiple resolution on which they work well, unless they are so old that they must be broken already. The one I'm using now can do 800x600, 1024x768, 1152x864 and 1280x1024 without skipping pixels or deforming the screen too much. It's a 17 inch screen and I'm using 1152x864 because 1280x1024 makes things too small (changing DPI breaks too many programs and is not useful for CRT's anyway, could just as well change resolution and have it render faster as a bonus) and too slow (only 60Hz versus 75Hz). 1024x768 would normally be fine but I need more screen space for Visual Studio.

                                      1 Reply Last reply
                                      0
                                      • N Naruki 0

                                        Do you know the secret to storing/resetting icon placement on the desktop? Every so often something happens and my icons all go kablooey, and then I have to manually drag them all back to where I had them before. I keep looking for some clue as to where Windows stores these positions, but I've never found it. I'd love to be able to run a quick utility to reset everything automagically.

                                        Codemonkeys don't do it at all. Too busy coding.

                                        K Offline
                                        K Offline
                                        Kent K
                                        wrote on last edited by
                                        #29

                                        Do you log in to your system remotely, using RDC at all? When I do that from a system that has a smaller monitor, my icons get scrunched up to fit the smaller monitor.

                                        N 1 Reply Last reply
                                        0
                                        • K Kent K

                                          Do you log in to your system remotely, using RDC at all? When I do that from a system that has a smaller monitor, my icons get scrunched up to fit the smaller monitor.

                                          N Offline
                                          N Offline
                                          Naruki 0
                                          wrote on last edited by
                                          #30

                                          Yep. Or sometimes when you run a game that changes the resolution, or a dozen other things. I've seen others complain about this all over the place, so I'm surprised it's not something MS ever thought to fix.

                                          Codemonkeys don't do it at all. Too busy coding.

                                          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