473,765 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen font size - user set ?

TOM
I have an application that does not behave too well when the user
changes the

Display Properties -> Appearance -> FontSize

after clicking Display from the Control Panel

to "Large Fonts" or "Extra Large Fonts"
(WinXP defaults to "Normal").

Two questions:

1) In C++.NET (V1.1) -- what is the name of the property that defines
how the user has set the default screen fonts? (I've searched, but there's a
zillion hits on
"font" in the documentation, and I can't seem to find the magic words to
narrow
the search).

2) My popup windows are defined using the VS designer. I think the designer
just
sets the font size property to a numeric value. Is there a way to automate
how these menus
adapt to the user's default font changes without actually hand-coding every
single label, button,
and text item in every single menu, popup, and window? Many of the images
when in "Large Font"
mode, get misaligned.

-- Tom


Apr 22 '06 #1
4 2200
> I have an application that does not behave too well when the user
changes the

Display Properties -> Appearance -> FontSize

after clicking Display from the Control Panel

to "Large Fonts" or "Extra Large Fonts"
(WinXP defaults to "Normal").

Two questions:

1) In C++.NET (V1.1) -- what is the name of the property that defines
how the user has set the default screen fonts? (I've searched, but there's a
zillion hits on
"font" in the documentation, and I can't seem to find the magic words to
narrow
the search).

2) My popup windows are defined using the VS designer. I think the designer
just
sets the font size property to a numeric value. Is there a way to automate
how these menus
adapt to the user's default font changes without actually hand-coding every
single label, button,
and text item in every single menu, popup, and window? Many of the images
when in "Large Font"
mode, get misaligned.

-- Tom


I have the luxury of developing for a controlled user environment, so I'm
not entirely familiar with having to deal with changeable display
resolutions, but I think the magic words you're looking for are "automatic
scaling". Specifically, the following items might be what you need.

In the "System::Window s::Forms" namespace:
Form::AutoScale BaseSize (.NET 1.1 only, marked obsolete in 2.0)
Form::ApplyAuto Scaling (.NET 1.1 only, marked obsolete in 2.0)
ContainerContro l::AutoScaleDim ensions (.NET 2.0 only)
ContainerContro l::AutoScaleMod e (.NET 2.0 only)

For more info on how to use these, see:

http://msdn2.microsoft.com/en-us/lib...05(VS.80).aspx

Hope this helps,
Sean
Apr 23 '06 #2
TOM
Thanks for the pointers. It at least got me in the right area of the
documentation.

My dialog menus have the fonts "Verdana" set for fixed size (9.75 points)
with
autoscale = off. Everything works correctly on my computer at different
screen resulutions and different System Font Size set from the control
panel. That is,
the dialog boxes stay the same regardless of settings (my desired intent).

But one of the users has dialog boxes that have a different font and
different size!
So I'm puzzled how my application can have different dialog box fonts and
size
on his system.

-- Tom


"Sean M. DonCarlos" <se********@new sgroups.nospam> wrote in message
news:F4******** *************** ***********@mic rosoft.com...

I have the luxury of developing for a controlled user environment, so I'm
not entirely familiar with having to deal with changeable display
resolutions, but I think the magic words you're looking for are "automatic
scaling". Specifically, the following items might be what you need.

In the "System::Window s::Forms" namespace:
Form::AutoScale BaseSize (.NET 1.1 only, marked obsolete in 2.0)
Form::ApplyAuto Scaling (.NET 1.1 only, marked obsolete in 2.0)
ContainerContro l::AutoScaleDim ensions (.NET 2.0 only)
ContainerContro l::AutoScaleMod e (.NET 2.0 only)

For more info on how to use these, see:

http://msdn2.microsoft.com/en-us/lib...05(VS.80).aspx

Hope this helps,
Sean

Apr 24 '06 #3
There are actually 2 places in the Display part of the Control Panel that
affect the relative size of dialog boxes. One is the Font Size option on the
Appearance tab. This will change the font size relative to the size of other
dialog box elements. I don't think it changes much else.

The other option is the DPI setting, reached by clicking the Settings tab
and then the Advanced button. It is normally set to 96 DPI, but it can be set
to 120 DPI or a custom size. As best I can tell, this changes the size of
dialog box elements that are measured in dialog units (controls, mostly) but
NOT those elements measured in pixels (such as images).

The only reason I know some of this is when I first received my notebook at
work, it had a 1440 x 900 resolution display with the 120-DPI option set.
This caused almost all my applications to have misaligned dialog box elements
until I changed the DPI setting back to its normal 96 DPI.

Sean

"TOM" wrote:
Thanks for the pointers. It at least got me in the right area of the
documentation.

My dialog menus have the fonts "Verdana" set for fixed size (9.75 points)
with
autoscale = off. Everything works correctly on my computer at different
screen resulutions and different System Font Size set from the control
panel. That is,
the dialog boxes stay the same regardless of settings (my desired intent).

But one of the users has dialog boxes that have a different font and
different size!
So I'm puzzled how my application can have different dialog box fonts and
size
on his system.

-- Tom


Apr 24 '06 #4
Tom
Thanks, Sean.

Yes - the user had changed the DPI setting. I tried that change on my
system, and also
setting my system to his display size, but still cannot reproduce the
problems on my system.
My dialog boxes still line up correctly over all the display ranges and DPI
settings, but he
has screenshots of the dialog boxes misaligning. Pretty tough to debug ...

-- Tom


"Sean M. DonCarlos" <se********@new sgroups.nospam> wrote in message
news:2C******** *************** ***********@mic rosoft.com...
There are actually 2 places in the Display part of the Control Panel that
affect the relative size of dialog boxes. One is the Font Size option on
the
Appearance tab. This will change the font size relative to the size of
other
dialog box elements. I don't think it changes much else.

The other option is the DPI setting, reached by clicking the Settings tab
and then the Advanced button. It is normally set to 96 DPI, but it can be
set
to 120 DPI or a custom size. As best I can tell, this changes the size of
dialog box elements that are measured in dialog units (controls, mostly)
but
NOT those elements measured in pixels (such as images).

The only reason I know some of this is when I first received my notebook
at
work, it had a 1440 x 900 resolution display with the 120-DPI option set.
This caused almost all my applications to have misaligned dialog box
elements
until I changed the DPI setting back to its normal 96 DPI.

Sean

Apr 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
14542
by: Michael Hill | last post by:
I have a perl script that i use to render a html page. In that page i call out a stylesheet. If the user has a 800x600 display the fonts are really too big. Since screen resolution is a function of the client and I have this javascript ot detect the srecc size: function ck_res() { if ( (screen.width != 1024) && (screen.height != 768) ) {
16
4212
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style sheets? I am not clear how the user would select the different .css files? Seems to be easier than having duplicate html files ...
48
8710
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much coule be shared between "screen" & "print") -no automatic page breaks (with...
64
4269
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I am viewing at 800x600 right now by the way, because that's what I can comfortably see. Times New Roman default pitch is what - 12px? With people increasing their screen resolutions, is it possible for "default size to ever become too small in...
4
1851
by: UJ | last post by:
I have a client who wants me to make a web page with a marquee on it. No problem. They want the text to be easily changeable. No problem. They want it so that the text will appear about the same size regardless of the screen resolution. Now that's my problem. In a sense, they want it so that if the screen is 800x600 and the text would be 1" tall, and then they make the screen 1600*1200, they still want the
2
386
by: Steve | last post by:
I am working on an application to screen scrape information from a web page. I have the base code working but the problem is I have to login before I can get the info I need. The page is hosted on my Router. When I go to the IP of the router I get the following page. <HTML> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Login</title> </head>
31
4205
by: melinama | last post by:
Hello, I've looked through alt.html and this group for an answer to my question. However, I found only cranky arguments with, occasionally, bits of hard-to-understand code - out of context - each of which is slammed by the next people along in the thread. So I'm afraid to ask this but I need to know!...
23
3395
by: salmobytes | last post by:
I try to do all css with percents and ems (elastic/liquid) so my displays look as much the same as possible, regardless the user's screen resolution. But I (still) never seem to get what I want. Compromises seem to lurk at every moment. ==========Static html for instance: font-size: 10px; /* looks drastically different at 768 wide compared to 1024 */
1
2376
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page, regardless of what kind of scrolling the user has done? I am currently displaying a "please wait" message (the DIV section shown below, which i'm showing/hiding) when the user clicks save, but the user is
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.