Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » ResourceManager in a dialog application Collapse All
Subject Author Date
Emmanuel Verguet Aug 25, 2006 - 9:03 AM

Hi,

I’m using g_ResourceManager in a CExtResizableDialog with a menu where the user can select its language. I read your sample testLanguageMDI, but I don’t know how to refresh dynamicaly my dialog.
In my dialog I have a button which open another dialog. When language is set to english, the dialog opened from my button is in english. When I select an another language, the dialog is opened whith the correct new language, but my main dialog is never refreshed (always in english).
Can you convert your MDI sample to a CDialog application sample please ?

Thanks.

Technical Support Aug 26, 2006 - 8:04 AM

If you want to see the result of changing the preferred language, you should recreate the dialog window. The dialog version in one language differs from its version in some other one. The differences deal not only with the text itself but. There are may be changes in positions of child windows, window sizes, tab order and even in the number of child windows and their dialog control identifiers. In the simplest case when the number of child windows does not change and their dialog control identifiers are the same, it is possible to recreate the dialog window on the fly. To make this process smooth, the dialog with a new language should be created over the existing dialog and then, the existing one should be destroyed. Ideally it would be to use a dialog based application with a non-modal dialog window as the main window. Please let us know if this suitable for you?

Emmanuel Verguet Aug 28, 2006 - 1:13 AM

Thanks for your reply.
I will give up the dialog version, and make a SDI application ;-)

Technical Support Aug 28, 2006 - 6:58 AM

Please do not give up so easily. If you switch to an SDI project with a child dialog window as the main view window inside the main SDI frame window, you will have to go through absolutely the same steps relating the dialog creation, but the dialogs will be child dialogs instead of popup dialog windows. The dialog localization will be exactly the same in both cases.