Dialog return value.

Returning a value from a dialog is a very common task when using windows. The example above shows how to open a window on demand, and execute a callback command that will perform some operation on the main page.