From a32453e68093718f88cf6f17a165e4b8fe2a784f Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sun, 5 Mar 2000 06:51:07 +0000 Subject: Moved FL_LEFT_MOUSE, FL_MIDDLE_MOUSE, and FL_RIGHT_MOUSE from forms.h to Enumerations.H so they are available to any fltk programs. More fixes to the fake-overlay code in Fl_Gl_Window (it did not work on Win32 when there were 2 different-sized windows) Fix to Fl_compose to not quote the Delete key fixed to allow the right- control key to still be the compose prefix and to allow it to quote control characters. OSF1 used the same parameters for scandir as SGI and unlike Linux and apparently most other Unix's fl_ask, message, etc windows are resizable, which is useful if you use them to display arbitrary output from a program. On Win32 non_modal (but not modal) windows have close and size boxes, as per popular demand at Digital Domain. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_ask.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/fl_ask.cxx') diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 36c28b463..90a41ef95 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_ask.cxx,v 1.8.2.2 1999/12/30 17:37:05 mike Exp $" +// "$Id: fl_ask.cxx,v 1.8.2.3 2000/03/05 06:51:07 bill Exp $" // // Standard dialog functions for the Fast Light Tool Kit (FLTK). // @@ -55,7 +55,10 @@ uchar fl_message_font_ = 0; uchar fl_message_size_ = FL_NORMAL_SIZE; static Fl_Window *makeform() { - if (message_form) return message_form; + if (message_form) { + message_form->size(410,105); + return message_form; + } Fl_Window *w = message_form = new Fl_Window(410,105); // w->clear_border(); // w->box(FL_UP_BOX); @@ -72,6 +75,7 @@ static Fl_Window *makeform() { (button[0] = new Fl_Button(310, 70, 90, 25))->shortcut("^["); button[1] = new Fl_Return_Button(210, 70, 90, 25); button[2] = new Fl_Button(110, 70, 90, 25); + w->resizable(new Fl_Box(60,10,110-60,22)); w->end(); w->set_modal(); return w; @@ -228,5 +232,5 @@ const char *fl_password(const char *fmt, const char *defstr, ...) { } // -// End of "$Id: fl_ask.cxx,v 1.8.2.2 1999/12/30 17:37:05 mike Exp $". +// End of "$Id: fl_ask.cxx,v 1.8.2.3 2000/03/05 06:51:07 bill Exp $". // -- cgit v1.2.3