diff --git a/CHANGES b/CHANGES index dfc75f845..f5812e467 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.0b13 + - fl_beep(FL_BEEP_DEFAULT) now uses the PC speaker under + Windows (0xFFFFFFFF) rather than an event sound. - The configure script didn't include the -mwindows or -DWIN32 compiler options in the output of fltk-config when using the Cygwin tools. diff --git a/documentation/functions.html b/documentation/functions.html index 4a8f827e9..e999f4214 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -8,13 +8,41 @@ A.
Sounds an audible notification; the default type argument
+sounds a simple "beep" sound. Other values for type may use
+a system or user-defined sound file:
+
+
The double version takes RGB values in the range
+0.0 to 1.0. The uchar version takes RGB values in
+the range 0 to 255. The title argument specifies the
+label (title) for the window.
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index cc83f5a4f..4e1a6ab74 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_ask.cxx,v 1.8.2.8.2.7 2002/04/02 19:30:52 easysw Exp $"
+// "$Id: fl_ask.cxx,v 1.8.2.8.2.8 2002/04/09 09:38:15 easysw Exp $"
//
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
//
@@ -222,15 +222,18 @@ void fl_beep(int type) {
case FL_BEEP_NOTIFICATION :
MessageBeep(MB_ICONASTERISK);
break;
- default :
+ case FL_BEEP_ERROR :
MessageBeep(MB_ICONERROR);
break;
+ default :
+ MessageBeep(0xFFFFFFFF);
+ break;
}
#elif defined(__APPLE__)
switch (type) {
case FL_BEEP_DEFAULT :
case FL_BEEP_ERROR :
- SysBeep( 30 );
+ SysBeep(30);
break;
default :
break;
@@ -340,5 +343,5 @@ const char *fl_password(const char *fmt, const char *defstr, ...) {
}
//
-// End of "$Id: fl_ask.cxx,v 1.8.2.8.2.7 2002/04/02 19:30:52 easysw Exp $".
+// End of "$Id: fl_ask.cxx,v 1.8.2.8.2.8 2002/04/09 09:38:15 easysw Exp $".
//