Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - EnableOffice2007Frame = True and MSGBOX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

EnableOffice2007Frame = True and MSGBOX

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

Joined: 10 April 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vulture Quote  Post ReplyReply Direct Link To This Post Topic: EnableOffice2007Frame = True and MSGBOX
    Posted: 12 April 2008 at 5:49am
If I set EnableOffice2007Frame equal to True for a Commandbar in a VB6 form and show a MSGBOX then the drawing of the nice Office2007 frame disappers from the form and instead the standard form frame is shown. This looks a little wierd. Is there a work-around for this?

Btw. I am using XtremeSuite ActiveX version 11.2.2

Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2008 at 8:05am
At some point in your app, you've probably set the caption of your form. Replace it with SetWindowText.
Took me a while to figure that one out myself, too
Back to Top
Vulture View Drop Down
Newbie
Newbie
Avatar

Joined: 10 April 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vulture Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2008 at 8:12am
You are absolutely right 

I change the caption of the form when a new file is loaded to show the title of the file.

I will go right back and replace it with SetWindowText API instead :)

Thank you for your help! It worked like a charm.
Back to Top
RedFin View Drop Down
Groupie
Groupie
Avatar

Joined: 26 March 2008
Location: Australia
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedFin Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2008 at 10:27pm
Thanks for the SetWindowText tip ... I was using ribbon.RedrawBar to repaint the ribbon, but you could still see the standard title bar for an instant ... SetWindowText works perfectly!

Thanks
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.188 seconds.