Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Paint error using Ribbon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Paint error using Ribbon

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

Joined: 15 January 2004
Location: Brazil
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jairo Quote  Post ReplyReply Direct Link To This Post Topic: Paint error using Ribbon
    Posted: 09 August 2007 at 3:20pm
Hi all,
 
I thing that there is a bug in CommandBars 11.1.3 using  Ribbon theme.
 
Use the steps below to reproduce the error:
 
1. Create a MDIForm;
2. Put a CommandBars control inside MDIForm;
3. Cut and past the code below;
4. Run the prog. After press the Ok button, click in title bar. Look at The Minimize, Maximize and Close buttons.
5. This always happen if use Me.Caption = "Test MDI Form"
6. I need to change the Caption of the MDIForm in my project in code. Please somebody know a workaround?
 
Private Sub MDIForm_Load()
    Set RibbonBar = CommandBars1.AddRibbonBar("The Ribbon")
    RibbonBar.EnableFrameTheme
    Me.Caption = "Test MDI Form"
    Me.Show
    MsgBox "After this message, click on title bar and see the error paint"
End Sub
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: 10 August 2007 at 1:11am
Hello,
 
Yes it was discussed in this forum already .
Form.Caption property also restores styles of frame. Please use API SetWindowText instead.
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.063 seconds.