proc CreateSpin {form} { set spin [VxSpinButton spin 15 0 "" 100 "" 2 50 "" "" + -]# widget name = spin # width = 15 # lower bound = 0 # lower callback = blank ("") # upper bound = 100 # upper callback = blank ("") # increment = 2 # default value = 50 # user callback = blank ("") # position = blank ("") # up operation = + (default, may be omitted) # down operation = - (default, may be omitted) }
set app [VtOpen Spin]
set mainform [VtFormDialog $app.form -title "Spin button example"]
CreateSpin $mainform
VtShow $mainform VtMainLoop