Hecl Builder

Easy Mobile Applications

Test
Download: .jad .jar
no rating Average rating:

MIDP Version: 1.0
Description: Test
Last updated: Mon Oct 06 02:25:05 +0000 2008 by Geminus

# choicegroup.hcl --

# choicegroup example

set langlist {Chinese English French German Italian Spanish}

proc NewLang {} {
    global sel
    global cg
    global langlist
    set lang [getprop $cg selected]
    setprop $sel text [lindex $langlist $lang]
}

set f [form label "ChoiceGroup example" code {
    stringitem label "Chose from one of the following"
    set cg [choicegroup label "Languages" list $langlist callback NewLang]
    set sel [stringitem label "Selected" text ""]
}]

setcurrent $f


Note: If you have trouble with the applets on this site, you might try upgrading your Jave Runtime Environment, in order to get the "Next-Generation Java Plug-In", available for download here: http://download.java.net/jdk6/