Project

General

Profile

Notebooks » History » Version 3

iri, 03/03/2011 09:23 PM

1 1 iri
h1. Notebooks
2
3 2 iri
A tabbed notebook container.
4 1 iri
5 2 iri
{{toc}}
6
7 1 iri
h2. _gtkNotebookNew
8
9
Create a new Notebook.
10
11
Prototype : *fun [Chn] ObjGtkWidget*
12
Return the new object or nil if error.
13 2 iri
14
h2. _gtkNotebookAddPage
15
16
Add/insert a new tab.
17
18
Prototype : *fun [ObjGtkWidget ObjGtkWidget S I] [ObjGtkWidget ObjGtkWidget ObjGtkWidget I]*
19
20
table.
21
|*notebook*|ObjGtkWidget|any notebook already created|
22
|*child*|ObjGtkWidget|any widget to include in the tab. Can be nil.|
23
|*title*|S|a title for the tab. If nil, the title will be "Page N" (N the number of the pages)|
24
|*pos*|I|the position where the tab is inserted. If nil, the tab will be added to the end, if negative, it will be inserted from the end, if positive, it is inserted from the begin.|
25
26
+Return :+
27
28
table.
29
|*notebook*|ObjGtkWidget|the same notebook|
30
|*label*|ObjGtkWidget|the label object (the title of the tab). So it can be modified ...|
31
|*child*|ObjGtkWidget|the child of the tab. By default, it's a text (GtkTextView)|
32
|*id*|I|the index (starting from 0) of the inserted page in the notebook|
33
34 3 iri
h2. _gtkNotebookRemovePage
35
36
Remove a page from a notebook
37
38
Prototype : *fun [ObjGtkWidget I] ObjGtkWidget*
39
40
The integer is the index of the page.
41
42 2 iri
43
Return [[Api]]