//Debug.write("validateCountry: ",str);
this.cblist.addItem(txt,id);
this.currentValue = id;
this.setAttribute('text',txt);
this._selected = obj;
this.currentValue = obj.value;
this.setAttribute('text',obj.text);
this.setOpen(false,true);
this.onselect.sendEvent();
return this.currentValue;
if (!this.isinited) {
this.isopen = open;
return;
}
if (open) { // open combox
if (this.isopen) return; // tends to get called more than once, esp when
this.cblist.bringToFront();
this.cblist.setVisible(true);
this.isopen = true;
if (this['onisopen']) this.onisopen.sendEvent(true);
} else { // close combox
if (!this['isopen']) return;
this.isopen = false;
this.cblist.setVisible(false);
if (this['onisopen']) this.onisopen.sendEvent(false);
if ( lz.Focus.getFocus() == this.cblist ) {
lz.Focus.setFocus(this, withkey);
}
}
if (kc == 27) { // escape needs to close floating list
this.owner.setOpen(false);
}
for (var eg in _contentview.subviews){
_removeitem(_contentview.subviews[eg]);
}
////Debug.write("obj: ",obj);
this.owner.setSelection(obj);