Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Viking on February 07, 2025, 08:37:03 pm

Title: Assign Color to Tab
Post by: Viking on February 07, 2025, 08:37:03 pm
Hi,

(1)
can I assign colors via Add-In to Tabs in the TabPages EA uses to show the diagrams?

(2)
can I assign colors to a Custom Tab I insert via Add-In in the TabPages?

I tried this, but it does not work:

var customView1 = new <myUI>();
var tab1 = new TabPage("<myUIName>");
tab1.ForeColor = Color.LightYellow;
tab1.Controls.Add(customView1);
tabControl1.TabPages.Add(tab1);


V.
Title: Re: Assign Color to Tab
Post by: Geert Bellekens on February 07, 2025, 08:44:53 pm
You can't control the tabpages from EA.

What you can do is within your user interface create your own tabcontrol and color those.

Geert
Title: Re: Assign Color to Tab
Post by: Viking on February 07, 2025, 11:49:01 pm
You can't control the tabpages from EA.

Thanks @Geert