Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retain proportion
Message
From
25/09/2005 10:27:44
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01052521
Message ID:
01052835
Views:
6
Einar,

There's an example in the Help under the Resize event topic specifically for keeping an object square. You have to write your own resize event handler.

~~Bonnie


>>>My brain is mush today. I can't remember anything.
>>>I think there is a property that you can set to retain proportions when resising an object. Is there something or do I have to write my own resize code?
>>>I know there is a property to 'lock' the height or width of an object but I can't think what they are called either. Can anyone refresh my memory on thisone? (I know I read about this earlier this week, but it might have been Borland C++)
>>>
>>>Einar
>>
>>I don't have VS.NET here on this computer right now - can you try to press Shift or Ctrl while you resize? This works with many graphics programs.
>
>Hilmar,
>Thanks for the reply. It is not me that I want to prevent from modifying the proportions, it is other devlopers that I am designing a custom control for that I don't want to modify the proportions of their object at both design and run time. I designed a control that I want to be square and I don't want somebody else to change it to rectangular.
>
>Einar
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform