mIRC Home    About    Download    Register    News    Help

Print Thread
#251407 18/02/15 02:47 AM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
back in the day of 1024x768 all my dialogs looked ok with
dbu setting, but now with big dimensions, what is
actually better and preferred ?

dbu or pixels, and which is scalable ?
i see dbu holds fixed dialog size

vinifera #251409 18/02/15 07:06 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Dbu (dialog base units) have one purpose, and that is to scale with system setting font size; Once known as "Large Fonts", now called "Set custom text size (DPI)" (dots per inch) in Vista/7/8. Also known as Ppi for Pixels per inch.

ANYWAY, if you want things to scale well for those weirdos who adjust this setting, go ahead and stick with DBU, and test your creation with various system font magnifications.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Raccoon #251419 18/02/15 04:05 PM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
so using "pixels" is actually better ? // recommended ?

vinifera #251436 18/02/15 09:47 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Using "pixels" will give you finer control over the absolute dimensions of your dialog, in relationship to graphic elements.

Using "dbu" will help make sure that buttons and lists are scaled proportionally to the user's font size preference -- if they are visually impaired or just prefer larger dialog text. "dbu" will make sure that text doesn't get cut off because the buttons and objects are too small for, or overlap, the text.

You decide if your dialog can scale well to text, or if it's mostly image/graphics based.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Raccoon #251468 19/02/15 02:37 PM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
so at the very end

dbu is good for users who increase their display DPI settings
and is scalable

while pixels are absolute and static (non scalable) ?

vinifera #251478 20/02/15 12:22 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
That's the gist. Or, like I said:

DBU is good for a text based dialog (buttons and labels)

Pixels is good for a graphics based dialog (icon objects)

Some people use Pixels because they use pixel math for resizing and moving, and don't know about $dbuh and $dbuw and the extra effort involved in converting these values.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Raccoon #251503 20/02/15 07:29 PM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
thanks for all the info
much apreciated


Link Copied to Clipboard