| SUPERGUI | A comprehensive gui automatic builder. This function help to create GUI very fast without bothering about the positions of the elements. After creating a geometry, elements just place themselves into the predefined locations. It is especially usefull for figure where you intend to put text button and descriptions. |
| Usage: | >> [handlers, width, height ] = supergui( 'key1', 'val1', 'key2', 'val2', ... ); |
| Inputs: | |
'fig' |
figure handler, if not given, create a new figure. |
'geomhoriz' |
integer vector or cell array of numerical vectors describing the geometry of the elements in the figure. - if integer vector, vector length is the number of rows and vector values are the number of 'uilist' elements in each row. For example, [2 3 2] means that the figures will have 3 rows, with 2 elements in the first and last row and 3 elements in the second row. - if cell array, each vector describes the relative widths of items in each row. For example, { [2 8] [1 2 3] } which means that figures will have 2 rows, the first one with 2 elements of relative width 2 and 8 (20% and 80%). The second row will have 3 elements of relative size 1, 2 and 3 (1/6 2/6 and 3/6). |
'geomvert' |
describting geometry for the rows. For instance [1 2 1] means that the second row will be twice the height of the other ones. If [], all the lines have the same height. |
'uilist' |
list of uicontrol lists describing elements properties { { ui1 }, { ui2 }... }, { 'uiX' } being GUI matlab uicontrol arguments such as { 'style', 'radiobutton', 'String', 'hello' }. See Matlab function uicontrol() for details. |
'title' |
optional figure title |
'userdata' |
optional userdata input for the figure |
'inseth' |
horizontal space between elements. Default is 2% of window size. |
'insetv' |
vertical space between elements. Default is 2% of window height. |
| Hint: | use 'print -mfile filemane' to save a matlab file of the figure. |
| Output: | |
handlers |
all the handler of the elements (in the same order as the uilist input). |
height |
adviced widht for the figure (so the text look nice). |
height |
adviced height for the figure (so the text look nice). |
| Example: | figure; supergui( 'geomhoriz', { 1 1 }, 'uilist', { { 'style', 'radiobutton', 'string', 'radio' }, { 'style', 'pushbutton' , 'string', 'push' } } ); |
| Author: | Arnaud Delorme, CNL / Salk Institute, La Jolla, 2001- |
| See also: | eeglab() |