06-04-2013 09:59 AM
Hi,
we are using UI-classes of Measurement Studio in our software.
Kind regards,
Alex
06-18-2013 02:42 AM
Hi alexM_,
localization isn't always easy, and often needs aditional configuration besides changing the language of the operating system. Wich controls are you using specifically and can you give us some example code, we would like to test this?
Regards
06-24-2013 08:48 AM
hi,
sorry for late feedback due to my vacation.
We use e.g. class "CNiButton". Example:
A line in our localization document:
Import = "Импортировать"
std::string name = GetText("Import");
CNiButton myNIButton;
CButton myMFCButton;
...
myNIButton.SetOnText( name.c_str( ) );
myMFCButton.SetWindowText( name.c_str( ) );
The MFC Control works fine, the NI Control displays wrong characters.
We do not have UNICODE-project.
In the OS-Settings, we switched display language to russian and we switched to russian for "UNICODE - incompatible" software.
Regards and thanks in advance,
Alex
06-26-2013 05:30 AM
Hi alexM,
could you send us a screenshot of the behaviour you are seeing? That would greatly help us to reproduce the issue at hand.
Regards
06-26-2013 05:58 AM
Hi,
for sure.
First picture shows a NiButton and its control properties.
Second one shows a Frame (MFC-CButton) and its control properties.
Regards,
Alex
07-15-2013 03:04 AM
I fear this will take longer to acchieve. You could circumvent the problem by loading a picture of this font into the button.
http://forums.ni.com/t5/Measurement-Studio-for-VB6/Loading-a-picture-in-button/td-p/136253
In the meantime I will still have a closer look at that problem.
07-24-2013 03:08 AM
Hi,
Unfortunately, the source of the problem is that a multibyte string (such as the Russian characters) cannot be set programmatically with the C++ API that allows us to access the ActiveX controls. The controls themselves can handle multibyte strings, however.
The best approach right now would be to not do it programmatically. Instead of the c++ api you could use satellite resource DLLs to represent different languages. We found a few links online about doing this; the first one looks like it's for Visual C++ 6, and might be harder to translate to Visual Studio 2005 and later. The second is a bit more clear, but contains less information.
http://support.microsoft.com/kb/198846
http://www.codeproject.com/Articles/11731/Resource-DLLs-and-Language-Selection-Menu
07-24-2013 03:36 AM
Hi,
thanks for your answer.
We already use satellite DLLs in our project. But i cant go this way here, since user is able to change the text during runtime (see picture above).
I think i will try out the workaround with the bitmap button.
Regards,
Alex