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. C / C++ / MFC
  4. size of dialog in resource editor

size of dialog in resource editor

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionlearning
5 Posts 3 Posters 1 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.
  • L Offline
    L Offline
    ldsdbomber
    wrote on last edited by
    #1

    Probably being dumb but is there a quick way to see the size of a dialog you've made in Resource Editor, and can it also show how much extra is added by the menu bar etc. I've seen the "guide spacing" in the Layout tab as 4 "DLU" but I dont know what DLU are, and I want to make sure the dialog fits to a 640*480 screen. Yes, I can reset my desktop resolution to that, but do I really need to do that? Surely there is a quick/easy way to see the dimensions? I can see this IDD_PTWBEAMPROFILE_DIALOG DIALOGEX 0, 0, 554, 172 in the rc file as opened as a text file but the default action of clicking it actually opens my dialog resource GUI, I had to do a find files to get into the rc file in VC++ as a text file. I assume those numbers are the size but can I get at them more easily?

    L D 2 Replies Last reply
    0
    • L ldsdbomber

      Probably being dumb but is there a quick way to see the size of a dialog you've made in Resource Editor, and can it also show how much extra is added by the menu bar etc. I've seen the "guide spacing" in the Layout tab as 4 "DLU" but I dont know what DLU are, and I want to make sure the dialog fits to a 640*480 screen. Yes, I can reset my desktop resolution to that, but do I really need to do that? Surely there is a quick/easy way to see the dimensions? I can see this IDD_PTWBEAMPROFILE_DIALOG DIALOGEX 0, 0, 554, 172 in the rc file as opened as a text file but the default action of clicking it actually opens my dialog resource GUI, I had to do a find files to get into the rc file in VC++ as a text file. I assume those numbers are the size but can I get at them more easily?

      L Offline
      L Offline
      Larry J Siddens
      wrote on last edited by
      #2

      When you have the dialog open, look down on the status bar. There are several sets of numbers. The right most is the size, the next to the left is the location.

      Larry J. Siddens

      L 1 Reply Last reply
      0
      • L Larry J Siddens

        When you have the dialog open, look down on the status bar. There are several sets of numbers. The right most is the size, the next to the left is the location.

        Larry J. Siddens

        L Offline
        L Offline
        ldsdbomber
        wrote on last edited by
        #3

        thanks Larry, I noticed this about a nanosecond before your reply, but appreciate the reply :-)

        L 1 Reply Last reply
        0
        • L ldsdbomber

          thanks Larry, I noticed this about a nanosecond before your reply, but appreciate the reply :-)

          L Offline
          L Offline
          Larry J Siddens
          wrote on last edited by
          #4

          Also, make sure that you have the whole dialog selected and not one of the controls. I have had many brain farts and not done this...

          Larry J. Siddens

          1 Reply Last reply
          0
          • L ldsdbomber

            Probably being dumb but is there a quick way to see the size of a dialog you've made in Resource Editor, and can it also show how much extra is added by the menu bar etc. I've seen the "guide spacing" in the Layout tab as 4 "DLU" but I dont know what DLU are, and I want to make sure the dialog fits to a 640*480 screen. Yes, I can reset my desktop resolution to that, but do I really need to do that? Surely there is a quick/easy way to see the dimensions? I can see this IDD_PTWBEAMPROFILE_DIALOG DIALOGEX 0, 0, 554, 172 in the rc file as opened as a text file but the default action of clicking it actually opens my dialog resource GUI, I had to do a find files to get into the rc file in VC++ as a text file. I assume those numbers are the size but can I get at them more easily?

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            ldsdbomber wrote:

            but I dont know what DLU are

            It stands for DiaLog Units. A DLU is based on the size of the dialog box font, normally 8-point MS Sans Serif. A horizontal DLU is the average width of the dialog box font divided by four. A vertical DLU is the average height of the font divided by eight.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            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