Office2007 Theme and MDI Child Windows |
Post Reply |
Author | |
AndyWilton
Groupie Joined: 03 June 2008 Status: Offline Points: 82 |
Post Options
Thanks(0)
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
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
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 |