guides:o4w:o4w_api:o4wlistbox

O4WListBox routine

Creates an entry in the listbox named <name> which will return <value> when selected.

O4WListBox(text, value, name, group, id, style)

The function has the following parameters:

ParameterDescription
textThe text of the list item.
valueThe data to be returned when the item is selected.
nameThe name of the list item.
groupThe name of the group in which to group the text and value.
idIf specified, the control can be addressed through style sheets individually.
styleIf specified, the style is applied to the text that is generated.

Note that <style> may be either the name of a style (as created by one of the O4W style functions, or as defined in an included style sheet), or it can be the returned value from one of the O4W style functions.

If the O4WMarkedOptions "checked" flag is set, then that specific item will be selected.

If O4WListboxStyle passed in with a listbox ID, then this will be used as the listbox ID, otherwise it will perform the default behavior of using the 'name' of the listbox as the id.

If O4WMarkedStyle passed in with list of selected values, then those values will be shown as selected.

  • guides/o4w/o4w_api/o4wlistbox.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1