Print Page | Close Window

ribbon and skin initial startup notification

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6055
Printed Date: 12 November 2025 at 3:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ribbon and skin initial startup notification
Posted By: artsd
Subject: ribbon and skin initial startup notification
Date Posted: 09 January 2007 at 10:30pm
I have a fairly complicated startup procedure that is causing me some intermittent crashes due to threading issues. I have several threads being created at startup, each with a window.
 
If I try to enable skinning in my mainframe create logic, I sometimes get crashes I think due to creation of child threads/windows. If i disable either the threading or skinning, my problems go away. If I delay the skinning until well after the application and all its threads are fully running (ie, through a user button click) then skinning works fine.
 
QUESTION: Is there any way to know when the skinning has been fully applied? Any message sent to mainframe or anything I can poll?
 
Also have a similar question relating to the ribbon.
 
QUESTION: Is there a way to know when the ribbon is done being actually created (rendered) the first time?
 
I have a long startup process involving reading 100 files (for a module based application) and I would like to delay the loading of these files until the application looks nice with the ribbon. If I don't delay, I see the traditional GUI and then a few seconds later, see it revert to the ribbon.
 
If a put a PeekMessage/DispatchMessage loop right after my ribbon creation but before the file loads, it helps but is not perfect.
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 10 January 2007 at 1:24am
Hello,
Ribbon Must be created after you add it, and frame enabled after you cal pRibbpn->EnableThemeFrame();
 
What version you have? In 10.4 we added support of multithreaded for SkinFramework.


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


Posted By: artsd
Date Posted: 10 January 2007 at 1:37am
I am using 10.4.
 
The ribbon painting is not my main concern. It is working ok.
 
But I do have a problem with the skins.
 
When is it safe to enable the skins?
 
What if other threads were being created (and those threaded created windows) while the main thread was still in the process of skinning?


Posted By: Oleg
Date Posted: 10 January 2007 at 9:46am
Hello,
I recommend enable it in constructor of CMainframe.


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