Print Page | Close Window

Enable 2007 Frame Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5179
Printed Date: 05 February 2025 at 12:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Enable 2007 Frame Problem
Posted By: DDJJ
Subject: Enable 2007 Frame Problem
Date Posted: 01 October 2006 at 2:11pm
I am enabling the Office 2007 frame theme for our app.  It works well at first, but pretty quickly you start to see the standard windows controls (Minimize, Maximize, etc) being displayed on top of the "themed" control box.  Problem stops for a minute if you minimize, then maximize the form, but always starts again.
 
Same problem does not happen when I'm running the CJ ribbonbar sample.
 
Here's the code I'm using:
 
With CommandBar1
        .VisualTheme = xtpThemeRibbon
        .EnableOffice2007Frame True
        .Options.SetIconSize True, 32, 32
        .ActiveMenuBar.EnableDocking xtpFlagStretched
        .Icons = frmMain.ImageManager2.Icons
        .Options.UseDisabledIcons = True
        .Options.IconsWithShadow = True
        .Options.OfficeStyleDisabledIcons = True
    End With
   
    Set RibbonBar = CommandBar1.AddRibbonBar("The Ribbon")
    RibbonBar.EnableDocking xtpFlagStretched
    RibbonBar.EnableFrameTheme
    RibbonBar.Closeable = False
    RibbonBar.Customizable = False
   
    Set ControlFile2 = RibbonBar.AddSystemButton()
    ControlFile2.IconId = 3000
    RibbonBar.ShowQuickAccess = False
   
    Set RibbonBar = frmMain.cbMain.ActiveMenuBar
 
Can anyone see a problem here?
 
Thanks,
 
Dan



Replies:
Posted By: Oleg
Date Posted: 02 October 2006 at 6:49am
Hi,
 
if you use RibbonBar.EnableFrameTheme
 
don't call EnableOffice2007Frame True


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: DDJJ
Date Posted: 02 October 2006 at 10:11am
Had previously tried without setting EnableOffice2007Frame to true.  Doesn't help...still seeing the standard windows controls.


Posted By: DDJJ
Date Posted: 02 October 2006 at 10:16am
Here's an image if that would help.  Note both the standard controls on the right, and the faint line which is drawn all the way across the control box.
 


Posted By: Oleg
Date Posted: 02 October 2006 at 12:27pm
Hmm :(   We need it on our side to test why it happen. Can you try to reproduce it with new project with same code you have now?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: DDJJ
Date Posted: 02 October 2006 at 1:42pm
Oleg, let me play with this for a bit.  I may come upon the fix while working on other changes, but if not, I'll probably have to put together a new project as you mention.
 
Dan
 
 


Posted By: Oleg
Date Posted: 03 October 2006 at 1:45am
Hello,
 
Looks like this problem:
https://forum.codejock.com/forum_posts.asp?TID=4854 - https://forum.codejock.com/forum_posts.asp?TID=4854
 
please check you don't use Form.Caption property


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: DDJJ
Date Posted: 03 October 2006 at 9:37am
That did it!  Thank you, Oleg.  Don't think I would have ever figured that one out...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net