Print Page | Close Window

Title bar issue

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=13358
Printed Date: 07 October 2024 at 6:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Title bar issue
Posted By: crucio
Subject: Title bar issue
Date Posted: 07 February 2009 at 10:43pm
i am developing an application that uses the commandbar with ribbon.
i have successfully created the ribbonbar style on my MDI form i am also using SkinFramework
the problem is that i have inserted a code on the unload of MDI so that whenever the user tries to close the form it would always ask if he/she wants to close it. i am using msgbox, whenever the msgbox pops out to ask the user the title bar seems revert to the theme of the operating

please help me...

here is the mdi form without the msgbox



here is the mdi form with the msgbox as you can see the bibbin was been broken and the old title bar is shown





Replies:
Posted By: Oleg
Date Posted: 08 February 2009 at 1:24pm
Hi,
 
Try remove main window from skinning:
 
SkinFramework.RemoveWindow me.hWnd


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


Posted By: crucio
Date Posted: 09 February 2009 at 8:07am
the ff: line of code is from my main mdi form

    createRibbon

    
    Dim StatusBar As StatusBar
    Set StatusBar = CommandBars.StatusBar
    StatusBar.Visible = True
    
    StatusBar.AddPane 0
    StatusBar.AddPane 901
    StatusBar.AddPane 902
    StatusBar.AddPane 903
    
    'RibbonBar.EnableFrameTheme
    
    CommandBars.Options.KeyboardCuesShow = xtpKeyboardCuesShowWindowsDefault
    'RibbonBar.CommandBars.EnableOffice2007Frame True
    'CommandBars.EnableCustomization True
    CommandBars.EnableOffice2007Frame True
    SkinFramework.RemoveWindow Me.hWnd
    
    'CommandBars.SetMDIClient Me.hwnd

i really dont know what is happening. i thought is was the effect of the bricopack i have installed for my pc but ive tried it on other computer it works just as the same

the ff codes are from my skin on the main function

    Dim Descriptions As SkinDescriptions
    Set Descriptions = MDIMain.SkinFramework.EnumerateSkinDirectory(App.Path + "..\..\..\Styles", True)

    Dim Des As SkinDescription
    For Each Des In Descriptions
        Debug.Print Des.Name & " - " & Des.Path
    Next


    MDIMain.SkinFramework.LoadSkin App.Path + "\Vista.cjstyles", ""
    MDIMain.SkinFramework.LoadSkin App.Path + "\Office2007.cjstyles", ""
    MDIMain.SkinFramework.ApplyWindow MDIMain.hWnd
    MDIMain.SkinFramework.ApplyOptions = MDIMain.SkinFramework.ApplyOptions Or xtpSkinApplyMetrics

i also tried disabling the skin but i didn't work

thank you so much for your help


Posted By: crucio
Date Posted: 10 February 2009 at 7:59am
i actually solved the program.
the problem was i was accessing the mdi form before it is shown / visible that was why the frame theme wasn't working properly.

thank you for the help.



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