Created
August 31, 2012 13:02
-
-
Save smathot/3552414 to your computer and use it in GitHub Desktop.
Form example 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Margins are defined as "top;right;bottom;left". Each value corresponds to a | |
| # margin in pixels. | |
| set margins "50;100;50;100" | |
| # The spacing is simply a value in pixels. | |
| set spacing "25" | |
| # The sizes of the rows are relative. "1;2;1" means that there are three rows, | |
| # where the middle one is twice as large as the bottom and top ones. So "1;2;1" | |
| # means exactly the same thing as "3;6;3". Please note that simply "3" does not | |
| # mean that there are two rows. | |
| set rows "1;2;1" | |
| # Columns are defined in the same way. "1;1" simply means that there | |
| # are two columns of the same size. | |
| set cols "1;1" | |
| # Widgets are defined as follows: | |
| # widget [column] [row] [column span] [row span] [widget type] [keywords] | |
| # | |
| # The columns and rows start counting at 0. If you do not want to have your widget | |
| # span multiple columns and rows, you simply set the column and row span to 1. | |
| widget 0 0 2 1 label text="Question" | |
| widget 0 1 2 1 label center="no" text="A bat and a baseball together cost $1.10. The bat costs one dollar more than the ball. How much does the ball cost?" | |
| widget 0 2 1 1 button text="$0.10" | |
| widget 1 2 1 1 button text="$0.05" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment