Scaling

LANSA Version 13 SP2

Scaling


Scaling allows a control to appear smaller or larger without changing the height and width properties. This is typically useful when viewing images, but can also be used to enhance the visibility of all application features. Scaled controls are still bound by the size of their parent control.

 

All controls now have ScaleHeight, ScaleWidth, ScaleOriginTop and ScaleOriginLeft properties. In conjunction with the static properties, controls also have an in built Scale animation method.

The code below makes a button scale to 50% larger and then back to normal size, and gives the impression of the button jumping out of the screen briefly

Define_Com Class(#prim_phbn) Name(#Button) Caption('Click Here') Displayposition(1) Parent(#COM_OWNER) Tabposition(1)

Evtroutine Handling(#Button.mouseEnter)

#Button.Scale( 150 150 150 )

#Button.Scale( 100 100 150 150 )

Endroutine