Bonjour,

Je voudrais ajouter des label dans une table :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
GtkWidget *pLabel[6];
 
 
pVBox = gtk_vbox_new(FALSE, 0);
	gtk_container_add(GTK_CONTAINER(pWindow), pVBox);
	pTable=gtk_table_new(5,4,TRUE);
    gtk_container_add(GTK_CONTAINER(pWindow), GTK_WIDGET(pTable));
 
        pLabel[0]=gtk_label_new("Date du : ");
	pLabel[1]=gtk_label_new("Au : ");
	pLabel[2]=gtk_label_new("Projet : ");
	pLabel[3]=gtk_label_new("Numero : ");
	pLabel[4]=gtk_label_new("Etat : ");
	pLabel[5]=gtk_label_new("Service : ");
	pLabel[6]=gtk_label_new("Responsable : ");
 
gtk_table_attach(GTK_TABLE(pTable), pLable[0], 0, 1, 0, 1,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0, 0);
 
 
	gtk_widget_show_all(pWindow);
Lorsque je lance le pogramme mon IDE (VC) me dit que pLabel n'existe pas alors que si.

Auriez vous une idée. Merci