473,395 Members | 1,532 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,395 software developers and data experts.

Resizing controls when screen resolution changes

Can anybody tell me how or refer me a link where I can find the client side
javascript to make the positions and resizing of the controls on .aspx page
independent of screen resolution. As I am using Grid layout and it uses
pixel units.

Thanks.

Nov 18 '05 #1
2 2926
It would be far easier to use the flow layout. Also IMO controls should be
resized only for non input controls (that should have by default the
appropriate size for the data).

For example :

<table width="100%" align="center">
<tr>
<td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah</td>
<td><input type="textbox" size="80"></td>
</tr>
</table>

Note that the "Blah" text will be displayed on a single or multiple lines
depending on the width of the window....

Patrice

--

"Mustufa Baig" <mu*****@benepen.com> a écrit dans le message de
news:O5**************@TK2MSFTNGP10.phx.gbl...
Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution. As I am using Grid layout and it uses
pixel units.

Thanks.

Nov 18 '05 #2
see position and width:

http://msdn.microsoft.com/workshop/a...asp?frame=true

everything else is just math.

first pass - readjust width of objects.
second pass - readjust location.
-- bruce (sqlwork.com)

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
| It would be far easier to use the flow layout. Also IMO controls should be
| resized only for non input controls (that should have by default the
| appropriate size for the data).
|
| For example :
|
| <table width="100%" align="center">
| <tr>
| <td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
| Blah Blah</td>
| <td><input type="textbox" size="80"></td>
| </tr>
| </table>
|
| Note that the "Blah" text will be displayed on a single or multiple lines
| depending on the width of the window....
|
| Patrice
|
| --
|
| "Mustufa Baig" <mu*****@benepen.com> a écrit dans le message de
| news:O5**************@TK2MSFTNGP10.phx.gbl...
| > Can anybody tell me how or refer me a link where I can find the client
| side
| > javascript to make the positions and resizing of the controls on .aspx
| page
| > independent of screen resolution. As I am using Grid layout and it uses
| > pixel units.
| >
| > Thanks.
| >
| >
| >
|
|
Nov 18 '05 #3

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

Similar topics

11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: farukh | last post by:
dear sir i want to resize my controls when the user changes the monitor resolution. so my problem is i am not know the event which should be fire when the resolution changed i try form_Resize but...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
1
by: Mustufa Baig | last post by:
Hello, Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution....
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...
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
8
by: Steve | last post by:
Hi All I have written some code to rescale my windows forms application forms depending on the users screen resolution The application is designed for 1024 x 768 but some customers have 19"...
14
by: zubair1 | last post by:
Hello, I am want to Resize my form and form controls based on the users resolution. For example :- i am making this application in 1024x768. it obviously works and looks well too me but when my...
2
by: ojhashankar | last post by:
hi all, i have developed the windows application in 1024*768 resolution. its working fine it that resolution. but when i reduce the resolution to the 800*600 , all the controls are not shown...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.