Print Page | Close Window

Office2007 Theme and MDI Child Windows

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=10892
Printed Date: 03 May 2024 at 4:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2007 Theme and MDI Child Windows
Posted By: AndyWilton
Subject: Office2007 Theme and MDI Child Windows
Date Posted: 03 June 2008 at 12:37pm
Hi,
 
I've currently experiencing a problem with with the Calendar control when using the Office2007 theme. (v11.2.0)
 
Basically, my app has a Main Frame and a child procedure (window) that displays the calendar etc.  If I call the window on the same Thread as the Main App Frame the Theme is applied correctly.  If I call the exact same child procedure, but initiate a new Thread when calling it, the Theme is ignored.
 
Has anybody got any ideas?
 
My development environment is a language called Clarion (v6.3).
 
Regards,
 
Andy Wilton
 



Replies:
Posted By: sserge
Date Posted: 09 July 2008 at 6:04pm
Hi Andy,

Calendar control doesn't really support working in multithread environment. It heavily depends on a flow of Win32 messages sent and received (draw messages, buttons and mouse notifications, etc). So far, I'd recommend you to run Calendar procedures in synchronized mode.

In Clarion as far as I can see, the most proper way would be to use POST/EVENT functions for thread synchronization. If you'd like to update a Calendar's window from another thread, use POST method there; in the meantime catch this EVENT in Main thread, and call Calendar's refresh method, or theme change, or any other operation. I suppose this trick will make it working.


--
WBR,
Serge



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