Page 1 of 1

Select non-english data in a combobox

Posted: Thu Jun 14, 2007 2:30 am
by vraju
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

Posted: Thu Jun 14, 2007 11:31 pm
by webops
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

Posted: Sat Jun 16, 2007 12:22 pm
by vraju
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.

Posted: Sun Jun 17, 2007 7:55 pm
by webops
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