A custom instruction made to allow easier creating of fields of buttons.
The program will create a specified number of buttons, and fit them to a specified background widget. The button colours, relative sizes, number of columns and rows, and whether buttons are created from left to right or from top to bottom are all customisable.
How to use:
Place the line of the custom instruction into your code. Then set the button name scheme, the colour and background widget, and the number of buttons to make.
The relative scale of each button can then be edited. A relative scale of (1,1) will make all the buttons fit perfectly.
The number of columns and rows of buttons may also be changed (Note: creating more buttons than can be fit in the specified number of rows and columns will result in the buttons being created outside the parent widget [Eg: 50 buttons in a 5 row× 5 column setup will result in 25 buttons outside the parent]. You may possibly use this to create scrolling menus.)