Problem with two EditBox in the same row in a Layout
I am trying to put two editbox in the same row, but the listener doesn't see to work properly, as such editbox is not editable.
My test code is shown below. To recreate my problem, just add it into EditBoxScreen.cpp in the MoSync MAUIex example.
*************************************
Layout *rowLayout = new Layout(0, 0, scrWidth, 64, listBox, 2, 1);
label = new Label(0,0, scrWidth/2, 64, rowLayout, "box 1", 0, gFont);
editBox = new EditBox(0, 0, scrWidth/2, 64, label, "", 0, gFont, true, false);
editBox->setDrawBackground(false);
label->setSkin(gSkin);
label->addWidgetListener(rowLayout);
label = new Label(0,0, scrWidth/2, 64, rowLayout, "box 2", 0, gFont);
editBox = new EditBox(0, 0, scrWidth/2, 64, label, "", 0, gFont, true, false);
editBox->setDrawBackground(false);
label->setSkin(gSkin);
label->addWidgetListener(rowLayout);
*************************************
I also tried label->addWidgetListener(this), and label->addWidgetListener(listBox), but none worked. Deso anybody know what I am doing wrong?
Thanks.