Go to demos  to base your GUI development on the demos. You can see the code and modify it to your needs.

More on scilab.io.