This chapter describes built-in functions that allow dynamically manipulating the contents of a combo box at runtime:
removes the items of a combo box specified by their index: CALL fgl_list_clear("f1", x, y) |
|
returns the number of items in the combo box: CALL fgl_list_count("f1") |
|
returns the index of the item that has the specified value: CALL fgl_list_find("f1", x) |
|
returns the text of the item specified by its index: CALL fgl_list_get("f1", x) |
|
adds an item to the combo box taking the future index as a parameter: CALL fgl_list_insert("f1", x, y) |
|
sorts the items in the ascending or descending order by their text: CALL fgl_list_sort("f1") |
|
adds all the original items (and not only removed ones) to the combo box: CALL fgl_list_restore("f1") |
|
changes the text of the specified item: CALL fgl_list_set("f1", x, y) |
The example showing how to use these functions to manipulate combo boxes at runtime is here:
GIT repository: lycia_doc_examples
Project: lycia_form_designer/widgets
Programs: combobox_02_functions
Link for downloading: https://gitlab.com/Querix_examples/lycia_doc_examples.git