Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Title bar issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Title bar issue

 Post Reply Post Reply
Author
Message
crucio View Drop Down
Newbie
Newbie
Avatar

Joined: 07 February 2009
Location: Philippines
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crucio Quote  Post ReplyReply Direct Link To This Post Topic: Title bar issue
    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


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: 08 February 2009 at 1:24pm
Hi,
 
Try remove main window from skinning:
 
SkinFramework.RemoveWindow me.hWnd
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
crucio View Drop Down
Newbie
Newbie
Avatar

Joined: 07 February 2009
Location: Philippines
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crucio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
crucio View Drop Down
Newbie
Newbie
Avatar

Joined: 07 February 2009
Location: Philippines
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crucio Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.