Book a Demo

Author Topic: Coloring boundaries with shape script  (Read 3404 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Coloring boundaries with shape script
« on: August 24, 2019, 12:03:33 am »
SetFillColor(c); DrawNativeShape(); usually fills elements with the specified color. Not so for boundaries. Obviously the default "No fill" for boundaries prevents coloring. So, what needs to be set in the metaclass to create a filled boundary that will take the supplied color?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Coloring boundaries with shape script
« Reply #1 on: August 26, 2019, 09:15:26 am »
It's controlled by the field t_object.BorderStyle but I'm fairly sure it can't be set from a UML Profile. You can use a Project Template Package though.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Coloring boundaries with shape script
« Reply #2 on: August 26, 2019, 10:52:08 am »
I guessed so. Add-ins are not allowed (yet). I'll probably resort to some script.

q.