Title bar issue |
Post Reply |
Author | |
crucio
Newbie Joined: 07 February 2009 Location: Philippines Status: Offline Points: 3 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Try remove main window from skinning:
SkinFramework.RemoveWindow me.hWnd
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
crucio
Newbie Joined: 07 February 2009 Location: Philippines Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 |
|
crucio
Newbie Joined: 07 February 2009 Location: Philippines Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |