Summary

VLF Windows Application Development

Summary

VFW050 – Basic Combo Box Processing

Important Observations

  • All list components such as combo box, grid, list view and tree view are handled in a similar way.
  • The order of the data is controlled by the sort position and not the order the data is added to the list.
  • If you change the SortPosition property for CBCL_1 equal to 1, the departments will be displayed in ascending order.

Tips & Techniques

  • This exercise shows typical simple combo box processing. You must ensure that the combo box is filled and correctly positioned.
  • If the department's combo box was being used for the New Employee command handler, you would need to initially populate the combo box and then position it to the first entry. For example by adding this logic:

     Get_Entry Number(1) From_List(#CMBX_1)
     #CMBX_1.CurrentItem.Focus := true
 

What You Should Know

  • How to implement a simple combo box.