Print Page | Close Window

(SOLVED) RibbonBar overwritten

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=13513
Printed Date: 04 May 2024 at 8:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (SOLVED) RibbonBar overwritten
Posted By: chrisABC
Subject: (SOLVED) RibbonBar overwritten
Date 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



Replies:
Posted By: Oleg
Date Posted: 27 February 2009 at 5:58am
Remove main window from skinning
 
SkinManager.RmeoveWindow me.hwnd


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


Posted By: chrisABC
Date Posted: 27 February 2009 at 10:51am
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


Posted By: Oleg
Date Posted: 02 March 2009 at 12:49am
Hi,
Because you have CommandBars + EnableFrameTheme. So its CommandBars work.


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


Posted By: jads
Date Posted: 25 May 2009 at 11:11pm
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


Posted By: chrisABC
Date Posted: 01 June 2009 at 3:48am
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


Posted By: jads
Date Posted: 01 June 2009 at 7:59pm
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


Posted By: chrisABC
Date Posted: 05 June 2009 at 4:09am
Originally posted by jads jads wrote:

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?


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


Posted By: jads
Date Posted: 05 June 2009 at 4:25am
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


Posted By: archies
Date Posted: 14 December 2009 at 7:59am
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 ?


Posted By: Oleg
Date Posted: 15 December 2009 at 5:02am

Hi,

move it to first lines of OnCreate before you create CommandBars


-------------
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