NUIdoument won't change skin or pelete


Author
Message
JSW W.
JSW W.
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
Posts: 127, Visits: 1
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,

Attachments
splitter.gif (215 views, 6.00 KB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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.


Best Regards,
Nevron Support Team


JSW W.
JSW W.
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
Posts: 127, Visits: 1
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.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello JSW W.,

Could you send us an example application which demonstrates the problem.

Best Regards,
Nevron Support Team


Brad Swearingen
Brad Swearingen
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
Posts: 53, Visits: 3
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 "Office 2007 Blue skin issue".
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search