ctl[n]: COMBOBOX(Class Specific Properties), Other Properties
Comboboxes are good for drop-down lists, also known as "pull-down menus". The items in the listbox are specified in the Text string, separated with the new-line escape sequence (\n). Each item has a unique integer value, starting at 0 and increasing.
ctl[0]: COMBOBOX(VSCROLL, DISABLENOSCROLL), Text="U.S.A.\nGermany\nRussia\n" "Brazil\nSpain\nEgypt", Val=1, Size=(*,60)
%ffp ctl[0]: COMBOBOX(VSCROLL), "Algorithm 1\nAlgorithm 2\n" "Algorithm 3\Algorithm 4", Val=0, Size=(130,60), Action=PREVIEW ForEveryTile: { // Loop through all rows for (y = y_start; y < y_end; y++) { // Loop through all columns for (x = x_start; x < x_end; x++) { switch (ctl(0)) { case 0: //Algorithm 1 ... Your code break; case 1: //Algorithm 2 ... Your code break; case 2: //Algorithm 3 ... Your code break; case 3: //Algorithm 4 ... Your code break; } } } // Tile has been completely processed return true; }
When using the INTEGRALHEIGHT and Size=(x,y) properties, the y value refers to the height of the list displayed after the combobox is clicked. The height is automatically rounded-off to display a whole number of textlines. You cannot extend the height of the combobox beyond the length of the combobox list (FilterMeister will round down values that are too high). This behaviour can be overridden using the NOINTEGRALHEIGHT property.
Everyone can add their comments about their experiences with this function here. Tips for using it are welcome, too.