Jeff,
When you get a chance, could you adjust the combobox so multiple combos can be used ?
Already implemented. I have modified the previous combobox implementation and now the combobox value
is to be accessed this way:
document.getElementById( "oCbx.at" ).value.trim() // Notice
.atwhere oCbx is the used variable name in the PRG. Here is your example modified:
- Code: Select all Expand view
#include "FiveWeb.ch"
function Main()
local oDlg, oCbx, cValue := "two"
local oFld
DEFINE DIALOG oDlg TITLE "Using a combobox"
@ 0, 0 FOLDER oFld PROMPTS "One","Two" SIZE 500, 560 OF oDlg
@ 300, 300 COMBOBOX oCbx VAR cValue ITEMS "one", "two", "three" OF oFld:aDialogs[1]
@ 200, 120 BUTTON "Ok" OF oFld:aDialogs[1] ACTION alert( document.getElementById( "oCbx.at" ).value.trim() )
ACTIVATE DIALOG oDlg NOWAIT
return nil
Please download FiveWeb again from here:
https://bitbucket.org/fivetech/fiveweb/downloads