Print Page | Close Window

Paint error using Ribbon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7768
Printed Date: 18 June 2025 at 9:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Paint error using Ribbon
Posted By: Jairo
Subject: Paint error using Ribbon
Date 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



Replies:
Posted By: Oleg
Date 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



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