OPTION multi column combo boxes


CONTROL 37,47, 57, 67,77 - Multi column combo boxes

type:                    37 (Multi column text combo)
 

parent:                panel

 

TAB file entry:
opt,x,y,w,h,f,b,37,'opt#<columns>':<action>
where aopt is an array of options #<columns> is  the number of text only columns
 

values returned:
MN=panel number
BN=button number
RN=index (line) of the selected
ST=string of the selected row with each column separated by '#' character

 

   

 

type:                    47 (Multi column combo with checkbox, image and text)
 

parent:                panel

 

TAB file entry:
opt,x,y,w,h,f,b,47,'&@Text#Icon_index':<action>
The field contains the name of an Eagle’s array of strings and Icon’s array, between single quotes and separated by a “#” character.  The icon’s array defines a list of the complete paths of image resources “*.bmp” or “*.ico”. The size of the array of strings define the number of elements in the combo list and the default element is identified using the “&” character as first; the syntax for these strings is :

&@Text#Icon_index

Where :

& (optional) = default item

@ (optional) = check box checked

Text = string in the text cell

Icon_index = 1-based index in the array of icon

values returned:

• MN = panel number;

• BN = button number;

• RN = index (1 based) of the item selected;

• LN = 0;

• ST = 1 if the check box is checked, otherwise -1;

 

Instead, if an image or a text is selected, the grid switch off and the polling returns these values :

• MN = panel number;

• BN = button number;

• RN = index (1 based) of the item selected;

• LN = 1 if the check box is checked, otherwise -1;

• ST = string of the item selected.

 

 

 

type:                    57 (Multi column combo with image and text)
 

parent:                panel

 

TAB file entry:
opt,x,y,w,h,f,b,57,'&Text#Icon_index':<action>
The field contains the name of an Eagle’s array of strings and Icon’s array, between single quotes and separated by a “#” character.  The icon’s array defines a list of the complete paths of image resources “*.bmp” or “*.ico”. The size of the array of strings define the number of elements in the combo list and the default element is identified using the “&” character as first; the syntax for these strings is :

&Text#Icon_index

Where :

& (optional) = default item

Text = string in the text cell

Icon_index = 1-based index in the array of icon

values returned:

When an image or a text is selected, the grid switch off and polling returns these values :

• MN = panel number;

• BN = button number;

• RN = index (1 based) of the item selected;

• LN = 0;

• ST = string of the item selected.

 

 

 

type:                    67 (Multi column combo with checkbox and text)
 

parent:                panel

 

TAB file entry:
opt,x,y,w,h,f,b,67,'&@Text':<action>
The field contains the name of an Eagle’s array of strings, between single quotes. The size of the array of strings define the number of elements in the combo list and the default element is identified using the “&” character as first; the syntax for these strings is :

&@Text

Where :

& (optional) = default item

@ (optional)= checkbox checked

Text = string in the text cell

values returned:

When a check box state is changed, the grid stays open, the polling returns the following values :

• MN = panel number;

• BN = button number;

• RN = index (1 based) of the item selected;

• LN = 0;

• ST = 1 if the check box is checked, otherwise -1;

 

If a text cell is selected instead, the grid switches off and the polling returns these values :

• MN = panel number;

• BN = button number;

• RN = index (1 based) of the item selected;

• LN = 1 if the check box is checked, otherwise -1;

• ST = string of the item selected.

See also

panel, options, UI Framework, Theme