(SOLVED) RibbonBar overwritten |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 27 February 2009 at 5:09am |
I am using RibbonBar and SkinFramework. The top line of the screen keeps going wrong (see pics). If I resize or change window, it corrects itself. But later it will go wrong again.
Here is correct screen: and this is when it goes wrong: Any ideas??? |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Remove main window from skinning
SkinManager.RmeoveWindow me.hwnd
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Thanks Oleg. That seems to fix it.
Remember I had another problem of double Form Titles, reported a few days ago? Well the above change fixes this also. :-) But I do not understand........ When I change the visual Theme, the main Form does still change to match it. Even though I have put SkinManager.removeWindow Me.Hwnd Why is this?? (I am not complaining. Everything now works OK. ) |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Because you have CommandBars + EnableFrameTheme. So its CommandBars work.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
Hi,
Does this mean that we should remove any window with a commandbar on it from skinning? Will skinning still work on those forms if the commandbar EnableFrameTheme is then called, particularly if the theme is changed while the window is open?
|
|
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP6 |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Thank you for reply. Please can you explain a bit more.
|
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
From the previous comments, if you have a commandbar and skinframework controls in the main form, the titlebar goes wrong (see first comment), the workaround is to remove the main form from skinning (second comment), but a theme change after the main window has loaded and activated from applying to the main window still works (according to the third and fourth comments).
I was asking if a commandbar is being used on a form launched from the main form, should that new form be removed from skinning as well, and will a theme change after that form is opened still work?
|
|
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP6 |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Thanks jads. I was asking if Oleg could explain more. Please can CodeJock answer the above question, to make things more clear for us. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
It looks like removing a subform from skinning, when that sub form has a commandbar on it, puts the command bar inside the frame of the window, thus showing two title bars.
Only the main form has a SkinFramework control on it, commandbar.EnableFrameTheme and SkinFramework.RemoveWindow are called on both forms
|
|
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP6 |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Hi Oleg;
I am also facing the same issue. I have skinned my application . Now added Ribbo also . Redraw problem comesup. You suggest: SkinManager.RemoveWindow(HANDLE) I used: XTPSkinManager.Remove(m_hwnd); in the last on the CMainFrame constructor , but nothing happens. Why ? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, move it to first lines of OnCreate before you create CommandBars
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |