diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
| commit | 80b1529ef4d69d9e34a48a419a018d7f4d64054b (patch) | |
| tree | 7c743dc2f7f17654f1535314f6b0e6c5eadfc21b /FL/fl_ask.H | |
| parent | 60399e3945dcfe9a2bb9f00f794d9e8634dd6bd9 (diff) | |
Multiple patches from Bill:
- Double-buffered window fixes.
- Tabs fixes.
- X/WIN32 fixes.
- Fl_Input fixes.
- Support for vsnprintf and friends.
- Support for printf-style arguments in utility functions.
git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/fl_ask.H')
| -rw-r--r-- | FL/fl_ask.H | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/FL/fl_ask.H b/FL/fl_ask.H index db337b398..720d93ba2 100644 --- a/FL/fl_ask.H +++ b/FL/fl_ask.H @@ -1,5 +1,5 @@ // -// "$Id: fl_ask.H,v 1.3 1998/10/21 14:19:44 mike Exp $" +// "$Id: fl_ask.H,v 1.4 1998/11/05 16:04:39 mike Exp $" // // Standard dialog header file for the Fast Light Tool Kit (FLTK). // @@ -28,15 +28,13 @@ class Fl_Widget; -void fl_message(const char *); -void fl_alert(const char *); -int fl_ask(const char *); -int fl_choice(const char *q,const char *b0,const char *b1,const char *b2); -const char *fl_input(const char *label, const char *deflt, unsigned char type); -const char *fl_input(const char *label, const char *deflt = 0); -inline const char *fl_password(const char *label, const char *deflt = 0) { - return fl_input(label, deflt, 5); -} +void fl_message(const char *,...); +void fl_alert(const char *,...); +int fl_ask(const char *,...); +int fl_choice(const char *q,const char *b0,const char *b1,const char *b2,...); +const char *fl_input(const char *label, const char *deflt = 0, ...); +const char *fl_password(const char *label, const char *deflt = 0, ...); + Fl_Widget *fl_message_icon(); extern unsigned char fl_message_font_; extern unsigned char fl_message_size_; @@ -49,27 +47,8 @@ extern const char* fl_yes; extern const char* fl_ok; extern const char* fl_cancel; -// back compatability and XForms compatability functions: - -inline int fl_show_question(const char *c) {return fl_ask(c);} -void fl_show_message(const char *,const char *,const char *); -void fl_show_alert(const char *,const char *,const char *); -int fl_show_question(const char *,const char *,const char *); -inline const char *fl_show_input(const char *l,const char*d=0) {return fl_input(l,d);} -/*const*/ char *fl_show_simple_input(const char *label, const char *deflt = 0); - -// all are implemented using this: -int fl_show_choice( - const char *m1, - const char *m2, - const char *m3, - int numb, - const char *b0, - const char *b1, - const char *b2); - #endif // -// End of "$Id: fl_ask.H,v 1.3 1998/10/21 14:19:44 mike Exp $". +// End of "$Id: fl_ask.H,v 1.4 1998/11/05 16:04:39 mike Exp $". // |
