By JSW W. - Wednesday, November 2, 2011
I create NUIDocument by code as m_DocMan, m_DockManager When i change skin or color scheme The m_DockManager do not change color but content inside did change.
Attach picture show that when change skin the splitter of m_DockManager did not change and stay white.
below some code i used...
If (True) Then 'Update Schemem for tabs Palette.Scheme = curColorScheme NUIManager.Palette.Scheme = curColorScheme m_DockManager.Palette.Scheme = curColorScheme w_DockManager_forDatamanager.Palette.Scheme = curColorScheme m_CmdBarsManager.Palette.Scheme = curColorScheme 'for desktop toolbar
'Update all controls with new color theme
For Each doc As NUIDocument In m_DocMan.Documents Dim tmp_NDockManager As NDockManager = DirectCast(doc.Client, NDockingPanelContainer).Manager() tmp_NDockManager.Palette.Scheme = curColorScheme Next
NevronPalette = NUIManager.Palette NUIManager.ApplyPalette() End If
Hi I also found that if i add NuiPanel it will have not problem with splitter color. However, if I added NuiDocument I will get white splitter color.
Thanks,
|
By Nevron Support - Thursday, November 3, 2011
Hello JSW W.,
To apply palette on all controls in your dock manager it should be enough to set this palette only to the dock manager or to the form (if it is a NForm). You do not need to apply palette to all control separately.
|
By JSW W. - Friday, November 4, 2011
Actually my problem happened in run time. If i changed to theme that had skin enable, then I changed to something that had skin disable then the splitter would stay white or window default. Until i restarted the application the right color will show on splitter.
|
By Nevron Support - Friday, November 4, 2011
Hello JSW W.,
Could you send us an example application which demonstrates the problem.
|
By Brad Swearingen - Monday, November 7, 2011
I'm seeing this same problem on the splitter when changing between using skins and palettes at runtime. Sounds like a similar issue to the thread I started recently titled "".
|
|