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

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • 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.
Simon

support@sparxsystems.com

Glassboy

  • EA User
  • **
  • Posts: 898
  • Karma: +52/-54
    • 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.

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • 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.
Simon

support@sparxsystems.com