Board index » delphi » scaling width without scaling height

scaling width without scaling height

hello,
how can i use scaleby function or something else on
component width for scale its width, i don't
want to effect its height of the component.    

regards

 

Re:scaling width without scaling height


Orhan,

Quote
> how can i use scaleby function or something else on
> component width for scale its width, i don't
> want to effect its height of the component.

You don't need scaleby, then. Just do the calculation yourself to decide
how wide you want the component, and set it's Width accordingly.

Ken
---
Ken White
kwh...@adpsi.com

Clipper Functions for Delphi and C++ Builder
http://www.adpsi.com

Re:scaling width without scaling height


Quote
"Ken White" <kwh...@adpsi.com> wrote:
>Orhan,

>> how can i use scaleby function or something else on
>> component width for scale its width, i don't
>> want to effect its height of the component.

>You don't need scaleby, then. Just do the calculation yourself to decide
>how wide you want the component, and set it's Width accordingly.

>Ken
>---

Dear Ken,

The component that i need to scale has many child components.
When i use scaleby function to the component ,its all child
components is effected from scaling so i don't have to set its
all of child components.Otherwise code works very slowly.

Regards.

Other Threads