Book a Demo

Author Topic: Font colour not specific to diagram  (Read 3654 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Font colour not specific to diagram
« on: August 02, 2010, 03:26:00 pm »
The other elements of the Font of the element can be made specific to the diagram - Font, size, bold, italic, underline

But Font colour cannot be!

The only place fontcolour is persisted is in t_object.  There is no entry in t_diagramobjects.

Consistency, Consistency, Consistency! TM

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Font colour not specific to diagram
« Reply #1 on: August 02, 2010, 04:04:36 pm »
Font color is stored in t_diagramobjects.ObjectStyle.

See "BFol" under the heading "Setting the Style":
http://www.sparxsystems.com/enterprise_architect_user_guide/automation_and_scripts/diagramobjects.html

This value is set in EA using the "Text Color" picker on the Format Toolbar:
http://www.sparxsystems.com/enterprise_architect_user_guide/getting_started/formattoolbar.html
« Last Edit: August 02, 2010, 04:05:08 pm by AaronB »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Font colour not specific to diagram
« Reply #2 on: August 02, 2010, 07:41:42 pm »
Quote
Font color is stored in t_diagramobjects.ObjectStyle.

See "BFol" under the heading "Setting the Style":
http://www.sparxsystems.com/enterprise_architect_user_guide/automation_and_scripts/diagramobjects.html

This value is set in EA using the "Text Color" picker on the Format Toolbar:
http://www.sparxsystems.com/enterprise_architect_user_guide/getting_started/formattoolbar.html
Hi Aaron,

I'm ONLY talking about the UI (not the AI).  If you use the Format Toolbar, you DON'T get a BFol entry in the ObjectStyle of t_diagramobjects and the fontcolour value in t_object is changed.  ALL diagrams with that element have their font colour changed.

For what it's worth the AI Element.SetAppearance() method ALSO fails for diagram instances if you try to set the font colour.  As with the UI, setting it for the element default (base) works and will set all the diagrams to the new font colour - regardless of the previous setting).

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Font colour not specific to diagram
« Reply #3 on: August 02, 2010, 09:43:11 pm »
Further,  if you manually set the BFol entry into the ObjectStyle column, it WILL inhibit the transmission of the Default Font colour.

(BTW: I'm using a Boundary element - but the testing I did earlier seemed to suggest that wasn't a factor)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Font colour not specific to diagram
« Reply #4 on: August 03, 2010, 10:04:11 am »
Please confirm exactly how you are trying to set the font color.  I used the Text Color picker on the Format Toolbar (second icon from the left, not the Set Font button).  This picker seems to apply the BFol value to the diagramobject without any problem in my testing.  Tested with an EAP repository, build 860, applying to a Boundary object.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Font colour not specific to diagram
« Reply #5 on: August 03, 2010, 11:08:35 am »
Oops  Aaron,

It WAS the Set Font Button...  - Since you CAN set the Font Colour in the dialog.

So the Text Color button on Format tool bar affects the local value of the Font Color color radio button on the Set Default Appearance Dialog, but the Set Font Color dropdown (of the Set Font button) only sets the Default (and by implication the local - if not overridden)! But every other setting on that dialog affects ONLY the local version...

If that doesn't constitute a bug I'm not sure what does...
(even calling the button Text Color and not Font Color is self inconsistent)

To reflect a recent request by a Sparxian - Can you suggest which Use Case this behaviour satisfies?

Anyway, thanks for clarifying the workaround...

Paolo


Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!