Hi everybody,
I am trying to create a custom LookupForm with one ListBox on it. On
MouseDblClick I am calling closeSelect with currently selected data
in ListBox. But there is a problem when user clicks (single click)
any item the LookupForm, it closes and return value is not correct
because selectionChanged event fires after that.
I tried the following solution. I returned 1 in mouseUp event of
ListBox control as shown below.
public int mouseUp(int _x, int _y, int _button, boolean _Ctrl,
boolean _Shift)
{
int ret;
ret = super(_x, _y, _button, _Ctrl, _Shift);
return 1;
}
Now the form does not close on single click but it somehow supresses
selectionChanged event. The event now does not fire at all. So again
the returned value is not correct.
Any solution to this will be great help.
Thanks in advance for the help.