Select non-english data in a combobox

Class library usage, coding and language questions.
vraju
Posts: 5
Joined: Thu Jun 14, 2007 2:25 am

Select non-english data in a combobox

Post by vraju » Thu Jun 14, 2007 2:30 am

I select an item from a combo box based on data rather than index (basic requirement for me).
The issue I have is now the contents of combo box has non-English or Wide Char characters.
The API RxComboBoxSetSelectedText will not work as it does not support non-English/Wide Char characters.

I use only Ranorex Core in C/C++ environment. I can not switch to .Net.
Is there any workaround?

-Venkat

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Thu Jun 14, 2007 11:31 pm

We have some functions in RanorexCore with unicode support (undocumented at the moment).

Which functionality do you exactly need?
Only selecting a unicode item in a combo?

Jenö
Ranorex Team

vraju
Posts: 5
Joined: Thu Jun 14, 2007 2:25 am

Post by vraju » Sat Jun 16, 2007 12:22 pm

Yes. I have to select an item from a COMBO box, which can be either Korean, Japanese, Thai, Spanish or any other world language.

My current code:
[i]hComboBox = RxFormFindChildControlId(Parent, ControlID);
if( hComboBox == GNTF_NULL)
{
return ERR_NotFound;
}

if(-1 == RxComboBoxSetSelectedText(hComboBox, szItemName))
{
return ERR_NotFound;
}[/i]

RxComboBoxSetSelectedText however only takes char * as argument.

-Venkat.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Sun Jun 17, 2007 7:55 pm

I will export some functions with unicode support in RanorexCore and send you a V1.2.0 Beta next week.
You can then try it with your combo boxes.

Jenö
Ranorex Team