Author Topic: .setAppearance(scope, item, value)  how ???  (Read 5369 times)

paradogma

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
.setAppearance(scope, item, value)  how ???
« on: February 21, 2005, 04:31:12 am »
In the automation interface there is a method ".setAppearance()" for the object "element".
The method expects the parameters "scope", "item", "value". All of them are of type "long".
I didn't find any further documentation on that.
I like to change e.g. the Font-Size in an element of type "Note".
Or maybe the Back-Color.
The GUI offers a bunch of settings for the Appearance of a Diagram-Element.
How can I set these properties programmatically?

Does anybody know, what value (long) to set for what item (as well long)?

Thanks

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: .setAppearance(scope, item, value)  how ?
« Reply #1 on: February 21, 2005, 02:16:17 pm »
From the help file...
Quote
Sets the visual appearance of Element.  
 
 Scope: Scope of appearance set to modify  
 
 0 – Local (Diagram-local appearance)  
 
 1 – Base (Default appearance across entire model)  
 
 Item: Appearance item to modify  
 
 0 – Background color  
 
 1 – Font Color  
 
 2 – Border Color  
 
 3 – Border Width  
 
 Value: Value to set appearance to.  

The colour values are RGB values: red is FF, green is FF00, blue is FF0000 (all hex). Hope that helps.
The Sparx Team
[email protected]

paradogma

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: .setAppearance(scope, item, value)  how ?
« Reply #2 on: February 21, 2005, 09:56:30 pm »
oooooooops,

I apologize. Now I found it in the Help, too.
Did I miss any information on how too modify Font (Size, Color, Bold ...) as well?

Thank you for your effort

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: .setAppearance(scope, item, value)  how ?
« Reply #3 on: February 22, 2005, 07:41:14 pm »
Quote
Did I miss any information on how too modify Font (Size, Color, Bold ...) as well?

Sorry, it's not possible at the moment.
The Sparx Team
[email protected]