Hi
I want to change the appearance of some tabs in an UltraTabControl so that header text appears greyed out. I do this by setting the Appearance.AlphaLevel to 128 and then Appearance.ForegroundAlpha = Alpha.UseAlphaLevel for appropriate tabs.
This seems to work fine until a tab is selected where these properties have been set. When that happens all other tabs seem to inherit the alpha level but I want them to retain their original normal appearance.
The attachment contains two screenshots of a tab control with 4 tabs. The appearance properties are set for just one tab (Tab3) and all looks fine when the form is first displayed or if I select any tab where the appearance is not set. The second screenshot shows that when Tab3 is selected the alpha level is also applied to all other tabs which is not what I want to see.
Any ideas what I might be doing wrong or how I can achieve desired results? Thanks.
Adrian
Looking at the screen shot, it appears the alpha level is not only applied to the other tabs, it is applied to the entire control (the border around the control is dulled as well). It could be a bug, but without seeing the code you used to do this, it is hard to tell. I would recommend either posting the code you have used or submitting this issue to the support group: http://es.infragistics.com/gethelp.
Hi Mike
I put together a very simple VS2005 C# WinForm project to test this out (see attached). It consists of one form with an UltraTabControl containing four tabs. I just used the designer to set text and key values for tabs and to set Appearance.AlphaLevel = 127 and Appearance.ForegroundAlpha = Alpha.UseAlphaLevel for Tab 3.
Infragistics version is .NET 2008 vol 2 CLR 2.0
Designer generated code is as follows:
// // utTest // this.utTest.Controls.Add(this.ultraTabSharedControlsPage1); this.utTest.Controls.Add(this.ultraTabPageControl1); this.utTest.Controls.Add(this.ultraTabPageControl2); this.utTest.Controls.Add(this.ultraTabPageControl3); this.utTest.Controls.Add(this.ultraTabPageControl4); this.utTest.Location = new System.Drawing.Point(28, 53); this.utTest.Name = "utTest"; this.utTest.SharedControlsPage = this.ultraTabSharedControlsPage1; this.utTest.Size = new System.Drawing.Size(611, 289); this.utTest.TabIndex = 0; ultraTab1.Key = "Tab1"; ultraTab1.TabPage = this.ultraTabPageControl1; ultraTab1.Text = "Tab 1"; ultraTab2.Key = "Tab2"; ultraTab2.TabPage = this.ultraTabPageControl2; ultraTab2.Text = "Tab 2"; appearance2.AlphaLevel = ((short)(127)); appearance2.ForegroundAlpha = Infragistics.Win.Alpha.UseAlphaLevel; ultraTab3.Appearance = appearance2; ultraTab3.Key = "Tab3"; ultraTab3.TabPage = this.ultraTabPageControl3; ultraTab3.Text = "Tab 3"; ultraTab4.Key = "Tab4"; ultraTab4.TabPage = this.ultraTabPageControl4; ultraTab4.Text = "Tab 4"; this.utTest.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[ { ultraTab1, ultraTab2, ultraTab3, ultraTab4});