Print Page | Close Window

Ribbonbar misbehaviour?

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=10138
Printed Date: 08 October 2024 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbonbar misbehaviour?
Posted By: b4gn0
Subject: Ribbonbar misbehaviour?
Date Posted: 08 April 2008 at 4:36am
Hello, finally i found out what was causing this strange behaviour:

Normal




Wrong



Our application has the need to dinamically change the menu during runtime, but this strange behaviour occurs when i call the RemoveAllTabs method.
The blue bar doesn't stay always there, it just shows up sometimes when the form loses the focus.

Is there a fast workaround for this?
OS: Win2000, XP, Vista

Thank you for your time,
b4gn0



Replies:
Posted By: Oleg
Date Posted: 08 April 2008 at 7:36am
Hi,
if you set .Caption property after you enable ribbonframe, it can restore system frame.

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


Posted By: WaleedSeada
Date Posted: 13 April 2008 at 12:07pm

Hello All,

I have the same behavuior when I open a dialog, I guess that the form need re-paint again to draw correctly the winodw title bar

any advice ...

Regards,



-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada


Posted By: Oleg
Date Posted: 14 April 2008 at 12:50am
Hi,
Can you try beta 12.0 version ?


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


Posted By: b4gn0
Date Posted: 14 April 2008 at 3:08am
Works in 12.0
When will them be released as stable?


Posted By: WaleedSeada
Date Posted: 14 April 2008 at 3:15am

Is there any work arround in 11.2.2

 

Regards,

 



-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada


Posted By: Oleg
Date Posted: 14 April 2008 at 4:02am

See my answer from 08 April



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


Posted By: RedFin
Date Posted: 22 April 2008 at 8:49pm
Hi,

In this https://forum.codejock.com/forum_posts.asp?TID=10206&PID=33789#33789 - forum post JantjeKeizer provided the tip to use the SetWindowText API.

Can use it at any time and so far I haven't had any more problems with the ribbon bar theme.

The declaration is ...

Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long


Posted By: JantjeKeizer
Date Posted: 23 April 2008 at 4:06am
You can place something like this in your MDI parent window.
This way changing the caption is similiar to the 'normal' caption property.

You only need it in the MDI parent anyway, as you can change captions of MDI children without problems.

Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long


Private Property Let Title(ByVal NewVal As String)
    SetWindowText Me.hwnd, NewVal
End Property

Private Property Get Title() As String
    Title = Me.Caption
End Property


Just a suggestion.



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