Book a Demo

Author Topic: Set Label Colour and Transparency in Shape Scripts  (Read 1735 times)

Polymorph

  • EA User
  • **
  • Posts: 136
  • Karma: +4/-0
    • View Profile
Set Label Colour and Transparency in Shape Scripts
« on: May 26, 2026, 06:11:30 pm »
Hi

Does anyone know how to control the colour of labels on connectors. I want the colour of the text to match the colour of the line. I can't see any methods that control this?

Code: [Select]
// CONNECTOR SHAPE

shape main

{

setpenwidth(2);
setpencolor(1,252,243);
setfontcolor(1,252,243);
setlinestyle("DASH");
moveto(0,0);
lineto(100,0);

}



Polymorph

  • EA User
  • **
  • Posts: 136
  • Karma: +4/-0
    • View Profile
Re: Set Label Colour and Transparency in Shape Scripts
« Reply #1 on: May 26, 2026, 06:12:20 pm »
Also... any way to make the background of the label transparent via a shape script?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set Label Colour and Transparency in Shape Scripts
« Reply #2 on: May 26, 2026, 07:06:09 pm »
You can override the standard labels, and define how they should look like.
I guess that is where you can also set the fontcolor etc...

Code: [Select]
label middlebottomlabel
{
      println("#NAME#");
}

Geert