Author Topic: Assign Color to Tab  (Read 4830 times)

Viking

  • EA User
  • **
  • Posts: 424
  • Karma: +2/-2
    • View Profile
Assign Color to Tab
« 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.
« Last Edit: February 07, 2025, 11:48:03 pm by Viking »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Assign Color to Tab
« Reply #1 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

Viking

  • EA User
  • **
  • Posts: 424
  • Karma: +2/-2
    • View Profile
Re: Assign Color to Tab
« Reply #2 on: February 07, 2025, 11:49:01 pm »
You can't control the tabpages from EA.

Thanks @Geert