Flows
11-28-2013, 04:51 AM
Hi,
I need to insert in a combo box two labels at the top of the list. The combo box is not empty before my insertion.
For these labels, I do not specify any data. As a consequence, data are the same for both labels. When I call the function whichSelected(), it returns -1 instead of 0 or 1 (my labels are at the top of the combo box list).
I tried to figured out how to find a solution of my issue but I didn't succeed. If I insert only one label, it works how it should.
Do you know if it as a normal behavior and/or how to correct it ?
Here is the the flow I use
Init function
ComboBox->insertLabel(0,"label1");
ComboBox->insertLabel(0,"label2");
When I click on a label in the combo (user side), a callback is called
IlShort idx = ComboBox->whichSelected();
//work using idx
//But in my case, idx=-1 if label1 or label2 is selected
Thanks a lot
Note:
I am using Version 5.5
I need to insert in a combo box two labels at the top of the list. The combo box is not empty before my insertion.
For these labels, I do not specify any data. As a consequence, data are the same for both labels. When I call the function whichSelected(), it returns -1 instead of 0 or 1 (my labels are at the top of the combo box list).
I tried to figured out how to find a solution of my issue but I didn't succeed. If I insert only one label, it works how it should.
Do you know if it as a normal behavior and/or how to correct it ?
Here is the the flow I use
Init function
ComboBox->insertLabel(0,"label1");
ComboBox->insertLabel(0,"label2");
When I click on a label in the combo (user side), a callback is called
IlShort idx = ComboBox->whichSelected();
//work using idx
//But in my case, idx=-1 if label1 or label2 is selected
Thanks a lot
Note:
I am using Version 5.5