Thx but this is not exactly what I wanted.
More Informations:
I develop a iOS APP, for iPhone. Window Size: 1136,640 (iPhone 5)
My Layout Size is 6656,640. Now I want a scalebar to zoom in and zoom out.
So I want to scale the width of layout between 1136 and 6656.
(1/6656*1136). But only the width.
Also: I want to set the position at runtime.