Dynamic scaling components

Hi , I want to Dynamically control Template zoom, but do not want to change the size of some buttons, boxes in the Template. So how can I do ?

system.gui.transform(component=event.source.parent.getComponent(‘Template_Alarm’),newX=0,newY=166,duration=100, newWidth=1086, newHeight=614)

If you enable layout in the template settings, then set the components you don’t want to resize to an anchored layout, they will reposition but not change actual size when the template itself resizes.

Thank you ! Another question : How can I get component property such as width, Height