mr_cs Posted July 22, 2009 Report Share Posted July 22, 2009 Still trying to understand the script. Could someone explain what the x, y, z and w refer to. I can guess what the x and y are, but would like confirmation. Thanks Colin Quote Link to post Share on other sites
N-S-E-W Posted July 22, 2009 Report Share Posted July 22, 2009 x=### is the value in pixels from the left side of the screen to the left edge of the text. y=### is the value in pixels from the top of the screen to the top edge of the text. w=### is the width of the text in pixels (handy for centring or right-justifying) z=### is the 'layer' to get stuff above other stuff. Higher z = more visible. Useful for putting text ontop of background graphics. h=### is the height of the text in pixels (handy for vertical alignment) Quote Link to post Share on other sites
keeper22 Posted July 22, 2009 Report Share Posted July 22, 2009 This does not only apply to text but any elements. Quote Link to post Share on other sites
BorisM Posted July 22, 2009 Report Share Posted July 22, 2009 Addition: w would be the maximum width of the element. For layers, it is just width. Handy when you are outputting text you do not know the size of, but want to make sure that it fits over the background. For text, iGO will first compress letters, and then add ÑÑŽÑŽÑŽÑ if it still doesn't fit. h is basically the same for height. Also, X and Y do not refer to the top left corner of the screen. They refer to the top left corner of the layer in which elements are defined. By default, (i.e if you do not specify differently) layer is positioned at 0,0 (top left) and covers the entire screen. You can start the layer anywhere and give it any size, though. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.