Print Page | Close Window

MultiLanguage Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=7298
Printed Date: 15 June 2024 at 5:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MultiLanguage Problem
Posted By: Kenneth
Subject: MultiLanguage Problem
Date Posted: 04 June 2007 at 2:54pm
I have an application that uses the CXTPStatusBar which contains various controls such as text panes, images and a progress control.  When this statusbar is displayed upon program start, regardless of language type, everything is perfect.
 
If I change the language type from a left to right language style to a right to left language style (such as English to Saudi Arabia) all the extra items are not displayed correctly.  If I exit and restart the application, everything is then displayed correctly.
 
Is there some special function that must be called for the CXTPStatusBar when the language display type is changed?   I checked the MultiLanguage and ScribbleMultiLang examples, however neither has additional controls.



Replies:
Posted By: Oleg
Date Posted: 05 June 2007 at 2:42am
Hi,
 
How do you switch RTL mode? Do you set WS_EX_LAYOUTRTL for all items in statusbar?


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


Posted By: Kenneth
Date Posted: 05 June 2007 at 8:35am
Oleg
 
I use the same logic as the toolkit MultiLanguage langManager.cpp and the respective code in mainfrm.cpp.  I did verify that WS_EX_LAYOUTRTL was set in all child windows by a routine in the langManager.cpp.
 
You can see this problem by simply adding a few panes, etc. from the toolkit Statusbar example to the MultiLanguage sample.
 
 



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