size of dialog in resource editor
-
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?
-
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?
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
-
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
thanks Larry, I noticed this about a nanosecond before your reply, but appreciate the reply :-)
-
thanks Larry, I noticed this about a nanosecond before your reply, but appreciate the reply :-)
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
-
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?
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