windowState example
The following code restores a form to normal size if it has been minimized:
form.windowState := iif( form.windowState = 1, 0, form.windowState )