
76 Appendix A3 Modelbase and OxPack
{ "Student-t", CTL_CHECK, m_bStudent, "student"}
}
Possible values for the control type are:
CTL LABEL text label
CTL
CHECK check box (0 or 1)
CTL
RADIO radio button
CTL
INT integer
CTL
DOUBLE double
CTL
FILE existing file name
CTL
STRING string
CTL
STRMAT matrix, edited as a string
CTL
CHECKLIST drop-down list of check items
CTL
SELECT drop-down list of single-select item
The text label can have leading tabs (\t) to indent the label, and trailing tabs to
outline the edit fields.
The control value gives the current value of the edit field. Radio buttons are
grouped: only the first has a value. The last item is a field label, this can be used
to identify the return value; only entries with a field label have a return value.
CTL
SELECT and CTL CHECKLIST have an array of strings as the fourth argument
listing the options. CTL
SELECT allows only one choice, and the control value is
0or1;CTL
CHECKLIST allows multiple choices, and the initial value is a row
vector of 0 and 1’s, with the same number of elements as specified in the array of
strings.
text label control type control value label
string CTL LABEL string
string CTL
CHECK int string
string CTL
RADIO int string
string subsequent
string CTL
INT int string
string CTL
DOUBLE double string
string CTL
FILE string string
string CTL
STRING string string
string CTL
STRMAT matrix string
text label control type control value control content label
string CTL CHECKLIST matrix array of strings string
string CTL
SELECT int array of strings string
If the user presses OK in the dialog, the results are returned in the remaining two
arguments. For asOptions this is the list of field labels. in the above example it
would be
{ "p", "q", "init", "student" }
The selected values are returned in asValues. For the example it could be:
{ 1,1,2,0 }
Komentarze do niniejszej Instrukcji