FW: Microsoft Windows Question: DLUs or Pixels?

24 May 2006 - 4:49pm
1300 reads
carl myhill

[also posted on UTEST - apologies for cross posting desperation]

Hi All,

I'm trying to specify a style guide to be followed by a very large
development team using .NET and I want to make it easy for them to
follow it.

Microsoft recommends using DLUs (Dialog Units) as a measurement for
dialog layout. I thought this was an old thing but I noticed similar in
Vista UI guides.

The puzzle is that .NET seems to only support pixel-based layouts, and
these seem bad for all the reasons they used to seem bad. They are not
very tolerant of screen resolution differences (now much broader than
ever before), nor for internationalization purposes where different
system fonts can be bigger.

My ideal solution would be to find a way to switch Visual Studio/.NET
into a mode where it uses DLUs instead of pixels. That is quite
convenient because Microsoft's latest style guide (1999!) uses this

I'd be very grateful if anyone has any insight into this.


The other carl

PS For the curious, "A DLU is a device-independent unit, based on the
current system font. One horizontal dialog box unit is equal to
one-fourth of the average character width for the current system font.
One vertical dialog box unit is equal to one-eighth of an average
character height for the current system font."

Syndicate content Get the feed