OWBasic for Pocketviewer

Home INTRO Group FORM Alphabetical Index

Checkboxes in Forms

A checkbox allows to switch an option on ore of. The return value for the a changed checkbox contains the main value of the selector combined with the subvalue 0, if the checkbox is switch off, or with 1 if the checkbox is switched on.

The type number for a radiobutton is 1.

Example:
	forminit

	! several checkboxes
	formentry "italic", 5,30,95,44, 1, 10
	formentry "bold", 5,50,95,64, 1, 20 
	formentry "underlined", 5,70,95,84, 2, 30

	formdisplay
$m1
	formtouch sel
	messagebox "Selected:"+string(sel)
	goto m1


Home INTRO Group FORM Alphabetical Index