o_par parentBox
funcnam callback-function for Keypress & FocusIn-Events (none: NULL)
mode 0 = do not wrap lines; 1=yes, wrap lines
opts options; (HorSiz,VertSiz)
HorSiz,VertSiz: size in characters; default is automatic size.
negative values: size in pixels.
'e' = expand widget; default is fixed size.
Examples: "" or "10" or "10e,e"
"10e,e" horiz. size 10 chars, hor. and vert. expandable.
prototyp funcnam:
int funcnam (
MemObj *mo,
void **data);
GUI_DATA_I1 =*(int*)data[1]=keyvalue; eg 'a'
GUI_DATA_I2 =*(int*)data[2]=state of modifierkeys;
&1=shift; &4=ctrl; &8=alt.
Example without callback-function:
Example with callback-function:
..
int ed1_cb (
MemObj *mo,
void **data) {
printf(" key=%d modi=%d\n",GUI_DATA_I1,GUI_DATA_I2);
}
o_par parentBox
funcnam callback-function for Keypress & FocusIn-Events (none: NULL)
mode 0 = do not wrap lines; 1=yes, wrap lines
opts options; (HorSiz,VertSiz)
HorSiz,VertSiz: size in characters; default is automatic size.
negative values: size in pixels.
'e' = expand widget; default is fixed size.
Examples: "" or "10" or "10e,e"
"10e,e" horiz. size 10 chars, hor. and vert. expandable.
prototyp funcnam:
int funcnam (
MemObj *mo,
void **data);
GUI_DATA_I1 =*(int*)data[1]=keyvalue; eg 'a'
GUI_DATA_I2 =*(int*)data[2]=state of modifierkeys;
&1=shift; &4=ctrl; &8=alt.
Example without callback-function:
Example with callback-function:
..
int ed1_cb (
MemObj *mo,
void **data) {
printf(" key=%d modi=%d\n",GUI_DATA_I1,GUI_DATA_I2);
}