Author Topic: Shape script: text color  (Read 3732 times)

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Shape script: text color
« on: April 23, 2014, 01:42:24 am »
Is it possible to change the text color of a shape script?

In the user guide they say "You cannot change the font size, type or color of this text." So is there another way to change this (I want to implement it in an MDG, so it has to be a configurable alternative, no manual workarounds).

Thanks!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Shape script: text color
« Reply #1 on: April 23, 2014, 02:15:23 am »
Hi,

Have you looked at template packages ? These can be used to set colour/font/font size etc of elements. Not helpful if your looking to deploy your mdg to third parties.

However i think you can also set things such as font/size/colour of an element in your mdg profile ... set as required on the mdg profile diagram and it will be added to the xml...


Regards,

Jon.
« Last Edit: April 23, 2014, 02:16:26 am by openit »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Shape script: text color
« Reply #2 on: April 23, 2014, 09:10:02 am »
You can change the font colour of a stereotype (and this colour will be used by the shape script). On your profile diagram, select the «stereotype» class, press F4 and update the colour. Then save your profile by right-clicking the diagram (not the package) and click the "Color and Appearance" option in the Save dialog.
The Sparx Team
[email protected]

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Re: Shape script: text color
« Reply #3 on: April 23, 2014, 06:19:16 pm »
Allright thanks, it works for the color.

I've also changed the font size, but that doesn't work... Is there a setting on diagram / package / model level which overrides the font size on stereotype level?? Or is there another problem?