Combo box functions

This chapter describes built-in functions that allow dynamically manipulating the contents of a combo box at runtime:

fgl_list_clear()

removes the items of a combo box specified by their index:

CALL fgl_list_clear("f1", x, y)

fgl_list_count()

returns the number of items in the combo box:

CALL fgl_list_count("f1")

fgl_list_find()

returns the index of the item that has the specified value:

CALL fgl_list_find("f1", x)

fgl_list_get()

returns the text of the item specified by its index:

CALL fgl_list_get("f1", x)

fgl_list_insert()

adds an item to the combo box taking the future index as a parameter:

CALL fgl_list_insert("f1", x, y)

fgl_list_sort()

sorts the items in the ascending or descending order by their text:

CALL fgl_list_sort("f1")

fgl_list_restore()

adds all the original items (and not only removed ones) to the combo box:

CALL fgl_list_restore("f1")

fgl_list_set()

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

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.