473,407 Members | 2,314 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,407 software developers and data experts.

Resizing a web control

Hi,
I have developed a composite control that needs to support resizing in
designer. My research turned up no guidance on the best approach for
this, and I've found no mention of any design-time events fired upon a
control resize or layout change.

SO, my current thought is to put recalculation of the sizes and
positions of the child controls in the OnPreRender override. Anyone
know of any risks I haven't considered or of a better approach?

Of possible relevance: The composite control inherits from and
System.Web.UI.WebControls.Panel and I am using the ms_positioning
attribute to achieve grid layout.

Thanks in advance,
Rich
Nov 18 '05 #1
2 1439
you probably should not use grid layout, unless you control the resolution
and font size of the client browsers. quickly switch to large fonts (in
display settings) and view your pages. if you want a working resize, then
you should do it in client script.

-- bruce (sqlwork.com)

"One Machete" <on********@gmail.com> wrote in message
news:bc**************************@posting.google.c om...
Hi,
I have developed a composite control that needs to support resizing in
designer. My research turned up no guidance on the best approach for
this, and I've found no mention of any design-time events fired upon a
control resize or layout change.

SO, my current thought is to put recalculation of the sizes and
positions of the child controls in the OnPreRender override. Anyone
know of any risks I haven't considered or of a better approach?

Of possible relevance: The composite control inherits from and
System.Web.UI.WebControls.Panel and I am using the ms_positioning
attribute to achieve grid layout.

Thanks in advance,
Rich

Nov 18 '05 #2
RRB

Bruce,

Thanks for your reply. The controls will be used in intranet
applications and I am using CSS to control the appearance and some of
the client-side behavior of the controls.

The control won't be resizable at all during run-time, only during
design-time by application developers.

From what I can see, design-time appears to be identical to run-time
with regard control rendering with the exception that you can create a
designer to handle the rendering chores for you at design-time (but that
is only of value to closely mimic the appearance of your control at
run-time).

I've plumbed the newsgroups and seen many threads by individuals asking
this or a related question, but not many replies, so I'm thinking what
I've concluded is pretty much the only approach there is.

Eh, which is fine, I'm a big boy. But I'm disappointed that the support
for composite controls in general seems less than thought out. To be
fair, I should mention I'm using the 1.1 framework. Who knows what
wonders the 2.0 framework would bestow upon me.
======================

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
5
by: Jim | last post by:
I've heard that resizing images through PHP (either GD2 or ImageMagick) is a processor intensive exercise. I'm setting up a site where users will be uploading up to 10 images along with the details...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
10
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full...
13
by: Martin Ho | last post by:
I know this must be trivial for many of you. But I am playing with this and can't figure it out. I have a form, on that form is one panel which has 3 textboxes, when I run my program and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
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...

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.