This article applies to:
The use of the RECT structure in E-Basic is mapped akin to how a developer would use it in Windows. That is, the Left and Top members indicate the x and y position. The Right and Bottom members indicate the corresponding positions +1.
Therefore, any call that requires a RECT as a parameter essentially draws up to, but not including the Right and Bottom members. This is done to make math calculations easier.
For example, if the screen is 640x480, the user would set the RECT(0, 0, 640, 480). When passing this RECT to a function, only pixels up to and including 639 and 479 are drawn. When determining the width, the equation would be Right- Left= 640. This can be further illustrated when dealing with percentages and alignment.
For further information on scripting using E-Basic, please refer to the E-Prime Command Reference (https://pstnet.com/ecr).
Please sign in to leave a comment.