Go to the source code of this file.
|
MemObj | GUI_frame__ (MemObj *o_par, char *ltxt, int border) |
|
MemObj | GUI_toolbox__ (MemObj *o_par) |
|
MemObj | GUI_notebook__ (MemObj *o_par, void *funcnam) |
|
MemObj | GUI_notebook_add (MemObj *o_ntb, char *title) |
|
int | GUI_notebook_get (MemObj *o_ntb) |
|
void | GUI_notebook_set (MemObj *o_ntb, int pgNr) |
|
MemObj | GUI_box_paned__ (MemObj *box1, MemObj *box2, MemObj *o_par, int mode, int resi, int siz1) |
|
int | GUI_notebook_CB (void *ntb, void *nbp, int pgNr, MemObj mo) |
|
MemObj GUI_frame__ |
( |
MemObj * |
o_par, |
|
|
char * |
ltxt, |
|
|
int |
border |
|
) |
| |
draws a frame around 1-n widgets. Parent & child must be a box.
ltxt no Text: set to NULL
border outside frame in pixels
Example:
draws a frame around 1-n widgets. Parent & child must be a box.
ltxt no Text: set to NULL
border outside frame in pixels
Example:
parent and child must be a box.
Example:
tb = GUI_toolbar__ (&parentBox);
GUI_toolbar__ can be used after activating its parent-window (
GUI_Win_go)
GUI_toolbar__ removable container for widgets parent and child must be a box.
Example: tb = GUI_toolbox__ (&parentBox); box0 = GUI_box_h (&tb, ""); GUI_button__ (&box0, ..); GUI_set_show (&tb, 1);
hide / restore toolbox: GUI_set_show GUI_toolbox__ can be used after activating its parent-window (GUI_Win_go)
Create a new Notebook.
funcnam is called when noteBook-pages change; first Page has Nr 0.
Input:
o_par parentBox
funcnam callbackfunktion for noteBook-pages changes.
funcnam prototyp:
int funcnam (
MemObj *mo,
void **data);
GUI_DATA_I1 = pageNumber
Example:
..
int my_Notebook_CB (
MemObj *mo,
void **data) {
int iTyp;
printf(" page %d selected\n",GUI_DATA_I1);
}
}
change page:
Create a new Notebook.
funcnam is called when noteBook-pages change; first Page has Nr 0.
Input:
o_par parentBox
funcnam callbackfunktion for noteBook-pages changes.
funcnam prototyp:
int funcnam (
MemObj *mo,
void **data);
GUI_DATA_I1 = pageNumber
Example:
..
int my_Notebook_CB (
MemObj *mo,
void **data) {
int iTyp;
printf(" page %d selected\n",GUI_DATA_I1);
}
}
change page:
create new page in Notebook.
returns a VBOX in the new Notebook-Page.
Notebook-Page cannot be disabled (all its widgets are disabled)
only hidden
create new page in Notebook.
returns a VBOX in the new Notebook-Page.
Notebook-Page cannot be disabled (all its widgets are disabled)
only hidden
int GUI_notebook_get |
( |
MemObj * |
o_ntb | ) |
|
GUI_notebook_get query active page
GUI_notebook_get query active page
void GUI_notebook_set |
( |
MemObj * |
o_ntb, |
|
|
int |
pgNr |
|
) |
| |
activate notebook-page; first=0, next=1 ..
activate notebook-page; first=0, next=1 ..
Input:
o_par parentBox
mode 0 = vertical separation-line, returns 2 horizontal boxes
1 = horizontal separation-line, returns 2 vertical boxes
resi 0 = make box1 fixed, box2 resizable
1 = make box1 resizable, box2 fixed.
siz1 initial size of box1 in pixels
Output:
box1
box2
Input:
o_par parentBox
mode 0 = vertical separation-line, returns 2 horizontal boxes
1 = horizontal separation-line, returns 2 vertical boxes
resi 0 = make box1 fixed, box2 resizable
1 = make box1 resizable, box2 fixed.
siz1 initial size of box1 in pixels
Output:
box1
box2
int GUI_notebook_CB |
( |
void * |
ntb, |
|
|
void * |
nbp, |
|
|
int |
pgNr, |
|
|
MemObj |
mo |
|
) |
| |
INTERNAL callback of switch-notebook-page
INTERNAL callback of switch-notebook-page