1442 ActiveX, OCX, OleAuto: ActiveX combobox

VERSIONS: P7 and later
SUBJECT: Why the ActiveX combobox should be avoided
BY: RICHARD DAVIS and BERTIL ISBERG
We have found the functionality of the ActiveX combobox inacceptable, and anyone trying to use it, should be aware of the issues we haven't been able to resolve.
  1. How get a vertical scrollbar in the combo list?

  2. How set a value for combo box?

  3. How show the values on open for a combobox? As the list-part of the object always is visible, why is it empty?

  4. Although the combo box allows you to type a value in, it does no validation one way or the other. If you try to get the ItemIndex property for the combo box, it just returns -1. It seems the only way to get a valid value in the combo box is to select from the drop down. -1 is when no value has been selected from the drop down. Leaving the combo blank will also get you -1. The combo box doesn't have a changeValue(), it has OnSelChange(), but that only seems to fire when you select from the list. You just don't seem to have much control over what the user types as compared to the PW drop-down.



To index