Nevron Forum

NTabControl background color

https://www.nevron.com/Forum/Topic5790.aspx

By Brad Swearingen - Thursday, November 3, 2011

I saw previous forum appends regarding setting the NTabControl's parent BackColor and am trying to get this to work with either skins or palettes.  No help with my problem with these appends.

I noticed the Edit>Dock Manager dialog on the Nevron User Interface Examples window has a tab control and works the way I want it to when using skins or palettes but I've not determined how to code this to make it work for both.

My NTabControl has a NUIPanel as its parent.  The NUIPanel BackColor is set to "Transparent" and the FillInfo.Color is set to "Transparent" along with the FillStyle=Solid.

I'd like the NTabControl tab area background color to work with either the palette or the skin.  With the settings above it only works for the palette.  When I use a skin its not blending correctly.  I've attached two screen shots showing this issue.  Can someone tell me how to code to support this like the "Edit Dock Manager" does?  The code for that dialog doesn't appear to be a part of the example VS solution.  Thanks for any tips.  I'm using the 11.1.17.12 build.

Note: The incorrectmacex.gif files color is lost somewhat.  The NTabControl has a white background where the UIPanel has a grey background.  I'd like them to be the same like they are in the correctwoodex.gif file.

By Nevron Support - Thursday, November 3, 2011

Hi Brad,

Try the following:

Drop the NUIPanle on the form and set only FillInfo.Color = Color.Transparent and FillStyle to Solid.
Drop the NComboBox in the NUIPanel and set skin and /or palette settings on the form.

Do not set NUIPanel.BackColor to be transparent.

Hope this helps.
By JSW W. - Thursday, November 3, 2011

I had the same issue before but mine was a usercontrol.
So i set my usercontrol background to transparent... and the color of the background will show through. See my previous question to the staff.

http://forum.nevron.com/shwmessage.aspx?forumid=2&messageid=4944#bm4956
By Brad Swearingen - Thursday, November 3, 2011

Thanks very much.  Not setting the NUIPanel.BackColor fixed it.