Am 12.11.2012 10:49, schrieb Massimo Manghi: > Two questions about form2.tcl > > 1) I realize there 2 methods (checkbox and checkboxes) with very close > names, the latter being obviously equivalent to calling the first as > many times as the number of boxes defined in its arguments. I think it > would be good if we supported only one of them ('checkboxes' since we > have also 'radiobuttons', deprecate the other) being general enough to > bear all the functionalities required.
As far as I remember, I have introduces "checkboxes" in form2.tcl. It is exactly what "radiobuttons" is for "radiobutton". I have no issue to throw "checkboxes" out. checkboxes must be calles with "-labels" and "-values", checkbox with "-label" and -value" > > 2) There are 2 entries for 'checkbox' and no explanation for > 'checkboxes'. The second entry might be further elaborated adding some > examples and be changed to be the manual entry for method 'checkboxes'. > Harald can you provide for a simple code example to be placed there? I > can do it myself but you probably have one at reach. Referencing page: http://tcl.apache.org/rivet/manual/form_package.html - checkbox is explained twice. - the parameters -values and -labels are documented for checkbox (which are AFAIK not supported). They should be documented for checkboxes - As an example, I would just use the example in checkbox and formulate it with checkboxes: myform checkboxes options -values {opt1 opt2 opt3 opt3} -labels {"Option 1" "Option 2" "Option 3" "Option 4"} Thank you, Harald --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org For additional commands, e-mail: rivet-dev-h...@tcl.apache.org