Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM
  New Posts New Posts RSS Feed - Office 2007 Theme Black
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedOffice 2007 Theme Black

 Post Reply Post Reply
Author
Message
madrianr View Drop Down
Groupie
Groupie


Joined: 25 February 2009
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote madrianr Quote  Post ReplyReply Direct Link To This Post Topic: Office 2007 Theme Black
    Posted: 25 November 2009 at 11:19am
Hello,
 
I'm new to codejock controls and I want to have the Office 2007 Theme Black for all the cj controls (Tab etc) and
for the commandbar - I use the following code at start to set the black theme:
 
    SuiteControlsGlobalSettings.Office2007Images = App.Path & "Styles\Office2007Black.dll"
    SuiteControlsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeAuto
    CommandBarsGlobalSettings.Office2007Images = App.Path & "Styles\Office2007Black.dll"
    CommandBarsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeAuto
    CommandBarsGlobalSettings.App = App
but the commandbar and the controls are still in Blue Theme - what's wrong?
 
regards
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2009 at 12:51pm
do you use CommandBars.VisualTheme = xtpThemeOffice2007
Back to Top
madrianr View Drop Down
Groupie
Groupie


Joined: 25 February 2009
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote madrianr Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2009 at 12:56pm
Yes of course - is it necessary to set other propertys to have Black theme?
 
Private Sub Form_Load()
    SuiteControlsGlobalSettings.Office2007Images = App.Path & "Styles\Office2007Black.dll"
    SuiteControlsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeAuto
    CommandBarsGlobalSettings.Office2007Images = App.Path & "Styles\Office2007Black.dll"
    CommandBarsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeAuto
    CommandBarsGlobalSettings.App = App
    CommandBarsFrame1.PaintManager.RefreshMetrics
    CommandBarsFrame1.RecalcLayout
    CommandBarsFrame1.VisualTheme = xtpThemeOffice2007
    TabControl1.Color = xtpTabColorOffice2007
End Sub
 
 
regards
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2009 at 1:29am
Try
 
App.Path & "\Styles\Office2007Black.dll"
instead
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
madrianr View Drop Down
Groupie
Groupie


Joined: 25 February 2009
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote madrianr Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2009 at 1:40am
Thats it
 
thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.