Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - MultiLanguage Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MultiLanguage Problem

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: MultiLanguage Problem
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.152 seconds.