OWBasic for Pocketviewer

Home INTRO Group FORM Alphabetical Index

Buttons in Forms

A button in a form simply returns the value of it's selector if pressed. The type number for a button is 0. The special value zero for the selector creates an inactive textbox, which does not react on a touch.

A button is display as a textbox.

Example:
	forminit
	formentry "One",  5,30,65,44, 1, 10
	formentry "Two",  5,50,65,64, 1, 20
	formentry "Three",5,70,65,84, 1, 30
	
	formdisplay
$m1
	formtouch sel
	messagebox "Selected:"+string(sel)
	goto m1


Home INTRO Group FORM Alphabetical Index