home *** CD-ROM | disk | FTP | other *** search
- // ok - I've included 2 methods by which you can list as many items as you want
- // the first is the listbox, the second is a html element
- // at the moment, the html element is set to display, and the listbox is
- // off. to check the action of the listbox, set it and 'init_listbox'
- // element ON, and the html_listbox OFF
- // the nice thing about the html element is that its see-thru, unlike the
- // listbox
-
- init_listbox:
- // you can do this, or just fill in the selections in the element itself
- h_listbox = get_element "list box 1"
- h_listbox.choices = "item1\nitem2\nitem3"
- display element h_listbox
-
-
- select_game:el_handle,el_message
- switch el_message
- case NOTIFY_SELECT
- selected_game = el_handle.get(el_handle.selected_pos())
- debug selected_game
-
- // now, if you're going to be updating this stuff often,
- // you'd want a method of displaying the appropriate
- // html element simply. I'd suggest you call the html
- // element the same name (or a derivative of) the listbox
- // item. eg. if your html element was called
- // "html_item1" you could call the following:
-
- display element "html_" & selected_game
-
- break
-
-
- html_select_game:selected_game
- debug selected_game
-
- // and this produces the same result as above
- display element "html_item" & selected_game