Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Problems with Office2007theme showing a MessageBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems with Office2007theme showing a MessageBox

 Post Reply Post Reply
Author
Message
Jarry666 View Drop Down
Newbie
Newbie


Joined: 10 September 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jarry666 Quote  Post ReplyReply Direct Link To This Post Topic: Problems with Office2007theme showing a MessageBox
    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!










Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Jarry666 View Drop Down
Newbie
Newbie


Joined: 10 September 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jarry666 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Jarry666 View Drop Down
Newbie
Newbie


Joined: 10 September 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jarry666 Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2009 at 5:16am
Sorry, Iīve just seen that exist "normalblack.ini"!

Thanks!
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: 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
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.220 seconds.