473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Scale text according to window/screen size.

UJ
My client wants to have some text scale appropriately depending on the
resolution of the screen. This is very much like the way that flash works in
that as the area being displayed gets bigger, the font gets bigger,
smaller - it gets smaller. Trying to write flash is turning out to have some
problems and it sorta works (I found a library by ComponentOne which does
most of the stuff but not everything.)

One thing to make it a bit easier is that this app runs 99.9% of the time
full screen so I could make the stuff dependent on screen resolution through
JavaScript but I'm looking for a better way of doing it.

Can anybody give suggestions on how to do this without flash? I'm really at
a loss.

TIA - Jeffrey.
Nov 19 '05 #1
3 2739
"UJ" <fr**@nowhere.com> wrote in
news:#g**************@TK2MSFTNGP14.phx.gbl:
My client wants to have some text scale appropriately depending on the
resolution of the screen. This is very much like the way that flash
works in that as the area being displayed gets bigger, the font gets
bigger, smaller - it gets smaller. Trying to write flash is turning
out to have some problems and it sorta works (I found a library by
ComponentOne which does most of the stuff but not everything.)

One thing to make it a bit easier is that this app runs 99.9% of the
time full screen so I could make the stuff dependent on screen
resolution through JavaScript but I'm looking for a better way of
doing it.

Can anybody give suggestions on how to do this without flash? I'm
really at a loss.

Use % for your table sizes... and use relative CSS font sizes.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #2
you can use clientscript (not too hard, depending on the effect desired),
but the easiest is an image of the text. just scale (set width and height)
the image to the screen size.

-- bruce (sqlwork.com)

"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My client wants to have some text scale appropriately depending on the
resolution of the screen. This is very much like the way that flash works
in that as the area being displayed gets bigger, the font gets bigger,
smaller - it gets smaller. Trying to write flash is turning out to have
some problems and it sorta works (I found a library by ComponentOne which
does most of the stuff but not everything.)

One thing to make it a bit easier is that this app runs 99.9% of the time
full screen so I could make the stuff dependent on screen resolution
through JavaScript but I'm looking for a better way of doing it.

Can anybody give suggestions on how to do this without flash? I'm really
at a loss.

TIA - Jeffrey.

Nov 19 '05 #3
UJ
When you say an image of the text what do you mean? This is text that needs
to change frequently by the user so it needs to be something that we can
automate.
"Bruce Barker" <br******************@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
you can use clientscript (not too hard, depending on the effect desired),
but the easiest is an image of the text. just scale (set width and height)
the image to the screen size.

-- bruce (sqlwork.com)

"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My client wants to have some text scale appropriately depending on the
resolution of the screen. This is very much like the way that flash works
in that as the area being displayed gets bigger, the font gets bigger,
smaller - it gets smaller. Trying to write flash is turning out to have
some problems and it sorta works (I found a library by ComponentOne which
does most of the stuff but not everything.)

One thing to make it a bit easier is that this app runs 99.9% of the time
full screen so I could make the stuff dependent on screen resolution
through JavaScript but I'm looking for a better way of doing it.

Can anybody give suggestions on how to do this without flash? I'm really
at a loss.

TIA - Jeffrey.


Nov 19 '05 #4

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

Similar topics

3
by: News Central | last post by:
I resize a control in a Form wth Scale mode set to vbInches. However, the control's size changes in different screen resolution, I thought that if Scale mode is set to vbInchs, then the control...
9
by: Peter | last post by:
Hi at all, how can I do to make a css file to change automatically the text size of the text that is into a table relatively the screen size? I.E. if the screen is 800 x I want the text...
2
by: Peter | last post by:
I would like to automatically resize a window to its content. I was thinking of using an outer table to detect the size of my content, then use window.resizeTo( ). The problem is I'm not sure...
8
by: Chris Beall | last post by:
I'm struggling with how to handle, on a web page, images that contain text that the user must be able to read. Examples: tombstone photos, photos or scans of historic documents (handwritten or...
7
by: mukeshgupta.WD | last post by:
Hi, i have seen in many web sites, the size of pages are automatically resized according to screen resolution. generally we create web layout for 800x600 but if we view it in1024x768 then the...
6
by: kklickman | last post by:
I've got a page with two columns: one floats left, the other doesn't float. The page displays fine in Netscape no matter what. In IE (both 6 and 7), it looks fine as long as the browser window is...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
21
by: Cartoper | last post by:
I am working on a browser kiosk needs to be able to be run at multiple screen resolutions. What I would like to do is keep the text the same size relative to the screen, all the time. In other...
2
by: AliR \(VC++ MVP\) | last post by:
I'm trying to write a RTF render code in C#. I have the code in C++/MFC and it works fine, but I have run into a problem with the C# code. I think the C# code is from Microsoft, and I added...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.