Book a Demo

Author Topic: LineColor (how to use the default MDG colour)  (Read 3794 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
LineColor (how to use the default MDG colour)
« on: June 15, 2016, 05:34:45 pm »
My understanding WAS (and Thomas Killian's Inside EA book confirms) that if you wanted a connector to use the default line colour you set the value of the LineColor field (in t_connector) to "-1".

This is analogous to setting BorderColor in t_object to -1.  In the latter case, the value you set in the MDG file for BorderColor would then be used.  If you changed the value in the MDG, the shape would change accordingly.

It seems, if you set the BorderColor inthe MDG, as you draw the connector, it sets the value from the MDG into the t_connector field.  If you manually reset this vlaue to -1 in the table, the connector colour changes to black.

Before I report a bug, can someone confirm my observed behaviour?

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