-
[FLTK] Boite de dialogue
Bonjour
Est-ce qu'il y aurais quelqu'un qui à trouver comment faire une boite de dialogue type "warning" "information" "erreur" etc...
(voir un exemple ici au chapitre 2 "Les boîtes de messages.")
Car j'ai beau chercher dans la documentation, je n'arrive pas à trouver! QUelqu'un aurait il un indice?
Merci d'avance
-
J'ai trouvé ceci, ce qui répond partiellement à ma demande. Je voudrais juste quelque chose de plus... sophistiqué:yaisse2:
fl_alert
Include Files
#include <FL/fl_ask.H>
Prototype
void fl_alert(const char *, ...);
Description
Same as fl_message() except for the "!" symbol.
fl_ask
Include Files
#include <FL/fl_ask.H>
Prototype
int fl_ask(const char *, ...);
Description
Displays a printf-style message in a pop-up box with an "Yes" and "No" button and waits for the user to hit a
button. The return value is 1 if the user hits Yes, 0 if they pick No. The enter key is a shortcut for Yes and
ESC is a shortcut for No.