On 11/12/2012 11:03 AM, Harald Oehlmann wrote:
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"
yes, I think this is the way we should go. After all having a single
checkbox is meaningful (unlike for radiobuttons), so I would simply
stress out the syntax for checkboxes to make clear the analogy with
'radiobuttons' for mnemonic reasons.
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
Thanks Harald, I'm going to wait for Jeff's comments and then I will
change the docs and create the new Rivet release candidate.
thanks
-- Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org