Profile Picture

NTabControl background color

Posted By Brad Swearingen 13 Years Ago
Author
Message
Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3

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.



Attachments
correctwoodex.gif (166 views, 55.00 KB)
incorrectmacex.gif (185 views, 36.00 KB)
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
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.

Best Regards,
Nevron Support Team



JSW W.
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
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

Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3
Thanks very much.  Not setting the NUIPanel.BackColor fixed it.



Similar Topics


Reading This Topic