Print Page | Close Window

Problems with Office2007theme showing a MessageBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15144
Printed Date: 23 November 2024 at 2:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems with Office2007theme showing a MessageBox
Posted By: Jarry666
Subject: Problems with Office2007theme showing a MessageBox
Date Posted: 10 September 2009 at 8:09am
Hi,

I have an application that uses the style Office2007Black using:

CommandBarsGlobalSettings.Office2007Images = App.Path & "\Styles\Office2007Black.dll"

But when i show a MessageBox this style is not applied to the window, staying as shown in the picture below.

I managed to change the style of its child windows using:

CommandBars.EnableOffice2007FrameHandle FormWhatever.hWnd

, but not the MessageBox one.

I have discovered TaskDialog control, but i canīt do it neither.

What can I do?

Thanks and regards!













Replies:
Posted By: jpbro
Date Posted: 10 September 2009 at 12:17pm
You should use the SkinFramework control with the Office2007.cjstyles file (see SkinFramework sample) for skinning other windows. Just make sure to remove your main commandbars window handle from the SkinFramework control using the RemoveWindow method.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Jarry666
Date Posted: 11 September 2009 at 3:35am
Thanks jpbro! The problem is fixed.

It seems easy to apply, but now I have another question:

Like I say you, Iīm using a Ribbonbar with Office2007Black.dll style, and i donīt see this style available for the SkinFramework control:

Here are the styles available.

Office2007.cjstyles:
-NORMALAQUA.INI
-NORMALBLUE.INI

For now, I will use Office2007black.dll style for RibbonBar, and normalaqua.ini style for the Skinframework, because they are similar, but Is there any way to be equal to Office2007black.dll style?

Regards!


Posted By: Jarry666
Date Posted: 11 September 2009 at 5:16am
Sorry, Iīve just seen that exist "normalblack.ini"!

Thanks!


Posted By: Oleg
Date Posted: 14 September 2009 at 7:14am
 
btw if you use both SkinFramework and Ribbon call
 
SkinFramework.RemoveWindow me.hWnd for main form to prevent conflicts.


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



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