IliTableComboBox

The IliTableComboBox Hierarchy and Example Gadget

The defines a combo box gadget that opens a pull-down menu when the user clicks on the combo button. The pull-down menu displays a column of the foreign table of the field.

IliTableComboBox* combo;

combo = new IliTableComboBox(display, IlvRect(20, 30, 150, 21));

panel->addObject(combo);

 

// Connect the combo to EMP(DEPTNO).

combo->f_setDataSourceName(“EMP”);

combo->f_setDataSourceColumnName(“DEPTNO”);

 

// Specify the mapping as DEPT(ID -> NAME).

combo->f_setForeignDataSourceName(“DEPT”);

combo->f_setForeignValueColumnName(“ID”);

combo->f_setForeignDisplayColumnName(“NAME”);