Author Topic: How to change a color of EA.Element ?  (Read 3059 times)

Tomasz

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
How to change a color of EA.Element ?
« on: January 21, 2015, 02:39:07 am »
Hi,

I would like to know if someone can help me with changing a color of EA.Element problem ?

Thank you.

PSOSSA

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to change a color of EA.Element ?
« Reply #1 on: January 21, 2015, 02:49:35 am »
Found this in the PDF documentation (http://www.sparxsystems.com/bin/EAUserGuide.pdf)

Looks like what you're looking for but I haven't tried it myself.


SetAppearance (
long Scope,
long Item,
long Value)

Void Sets the visual appearance of the element.

Parameters:
Scope: Long - Scope of appearance set to
modify
1 Base (Default appearance across entire
model)
To set appearance for the element (diagram
object) in a selected diagram only, see
Setting The Style in the DiagramObject
Class topic

Item: Long - Appearance feature to modify
0 Background color
1 Font Color
2 Border Color
3 Border Width

Value: Long - Value to set appearance to

qwerty

  • EA Guru
  • *****
  • Posts: 11307
  • Karma: +281/-258
  • I'm no guru at all
    • View Profile
Re: How to change a color of EA.Element ?
« Reply #2 on: January 21, 2015, 05:49:09 am »
If you want to change it globally the above will do. To change it locally to a diagram you must set diagramObject.style.

q.