Author Topic: Switching between Stereotypes (ShapeScripts) for individual displaying purposes  (Read 20076 times)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
The bottom right maintains a constant distance to the bottom right (because the fixed region ends at 100) If the height of the element is 80, it will be centered on the height.
If you wanted middle right set the fixed region to an equal amount above and below 50.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Not disputing that, just pointing out that it's a better example if you actually draw the rectangle in the bottom right quadrant of the parent shape.  it was a surprise to cut and post the code and have the rectangle sitting midway in the parent shape.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Oh well, when I wrote it, I applied the script to a UI screen so it was larger and my statement was correct.

The example was also intended to illustrate the absolute positioning capabilities offered, so I won't try to change it now.