![]() |
Ribbon frame theme dissapear |
Post Reply ![]() |
Author | |
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() Posted: 13 April 2008 at 5:31am |
Hello All,
I was using commandbar ver: 10.4 and also the skinframework to develop a main window for our application.
I install commandbars ver: 11.2.2 and I upgrade the application and few things appear.
The window ribbon frame dissaper whenever a dialog open (response dialog), or even when the ribbon loas focus.
I didn't express this in the examples installed.
What could be the problem .... ?!
Best regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Works for me. :(
Try to add
SkinFramework1.RemoveWindow me.hWnd
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
Hello Oleg,
I can't see why it doesn't work for me.
SkinFramework1.RemoveWindow me.hWnd didn't work either :(
Regards,
/edit
How is it working, did you change any of the code, it doesn't work on any other PC as well...
Regards,
/edit
I just want to mention that I am using the unicode dll.
regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Please send screenshot to support@codejock.com
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
younicke ![]() Senior Member ![]() ![]() Joined: 11 March 2005 Status: Offline Points: 107 |
![]() ![]() ![]() ![]() ![]() |
i tried running your attached project and unfortunately like you said it doesnt work also. in your code you wrote: ' Ribbon Settings ' ===================================== RibbonBar.EnableFrameTheme CommandBars.EnableOffice2007Frame True RibbonForm.Caption = "Ribbon Issue" you enabled the themeframe and then you again set another caption. when put the ribbonform.caption statement before calling enableframetheme, it worked. you could try this and tell me what happened. ' Ribbon Settings ' ===================================== RibbonForm.Caption = "Ribbon Issue" RibbonBar.EnableFrameTheme CommandBars.EnableOffice2007Frame True |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
it is working no kidding
![]() You make my day ....
Best regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
RedFin ![]() Groupie ![]() ![]() Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
In this 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. |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
Can you post the definition of that API, please so I can test it
Best regards,
/Edit
Works like charm ....
Best,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Did you ever face a problem with skinframework, it cause the application to close on some PC's, Have you ever face somthing like that.
Best regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
RedFin ![]() Groupie ![]() ![]() Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
For anyone interested, the declaration is ...
Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long |
|
![]() |
|
RedFin ![]() Groupie ![]() ![]() Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Sorry to say, but I haven't tried the Skin Framework yet.
However, I do get the occassional crash in the VB6 IDE since using the CodeJock control suite. Initially it was happening every 10 min or so. My solution was - 1. removed my use of WinXP Visual style for the VB constituent controls (not needed anyway now that I have the codejock suite) 2. re-applied VB6 SP6 3. found out that the CodeJock tree control causes a crash if you use the .Clear method (which I was using, and obviously don't anymore) Since doing those things, my crashes have become very infrequent and I wouldn't be surprised if there's something on my PC contributing. But this is all talking about the develoment PC. I'm still in development of my software and haven't yet done any extended testing on other PCs. Rohan |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
Hello Rohan, I have only this problem on some PC's, and I trace the problem and found that this line causes the problem: SkinFramework1.LoadSkin App.Path + "\Styles\Vista.cjstyles", "NormalBlue.ini" I add this line after I enable the theme for the ribbon bar here is the last script of the function, just to get the whole picture: SetWindowText Me.hwnd, App_title(Language) SetFont The strange thing is that; I make available to the end-user to change the theme by putting the same code in the execute event of the ribbon bar and I use the same line of code, but the application doesn't crash when this line executed and the theme changes Here is the script: Case ID_OPTIONS_STYLEBLACK: Could be the flow and the order of the commands I have...!! Best regards, |
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
RedFin ![]() Groupie ![]() ![]() Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Hi Waleed,
I really have to say that I'm still just a beginner when it comes to programming, and as I said above I haven't even tried the SkinFramework yet :-| The only thing I can offer, and I really have no idea whether it should make a difference or not (eg. I don't know which programming language you are using, but the syntax looks like VB), but you are using a "+" as your concatentation operator ... should you be using "&" (which I notice you are using in the other parts of the code)??? ie.... SkinFramework1.LoadSkin App.Path & "\Styles\Vista.cjstyles", "NormalBlue.ini" Just a thought. As I say, I'm no expert really, but I have fallen foul of little things like that in the past. Regards, Rohan |
|
![]() |
|
WaleedSeada ![]() Groupie ![]() ![]() Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
![]() ![]() ![]() ![]() ![]() |
Thanks Rohan for your reply
Best regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
![]() |
|
evidica ![]() Newbie ![]() ![]() Joined: 31 March 2008 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Anyone have a C# example for this? |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |