fix #42 Updating section statement

Removing deprecated section statement from samples and snippets.
Adding a new sample to show the allowInvalidText property of a Selectbox widget