1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| princi :-
new(D, dialog('projet')),
send(D, append, new(BTS, dialog_group(buttons, group))),
send(BTS, gap, size(10, 10)),
% Affichage d'une image dans le bouton
new(Button, button(chaine, and(message(@prolog,chain),message(D,destroy)))),
send(Button, selection, image('e:/prolog/graphique/button1.bmp')),
send(BTS, append, Button, below),
send(BTS, append, button(arbre, and(message(@prolog,arbr),message(D,destroy))),below),
send(BTS, append, button(ruban, and(message(@prolog,rub),message(D,destroy))),below),
send(BTS, append, button(quitter, message(D, destroy)),below),
send(BTS, layout_dialog),
send(D, layout),
% on affecte le spider à la boite de dialogue
send(D, cursor, 'spider'),
send(D, open). |
Partager