mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Update fl_beep() to use the PC speaker for FL_BEEP_DEFAULT.
Add docos for fl_beep... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.0b13
|
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
|
- The configure script didn't include the -mwindows or
|
||||||
-DWIN32 compiler options in the output of fltk-config
|
-DWIN32 compiler options in the output of fltk-config
|
||||||
when using the Cygwin tools.
|
when using the Cygwin tools.
|
||||||
|
|||||||
@@ -8,13 +8,41 @@ A</A>.
|
|||||||
|
|
||||||
<h2>Functions</h2>
|
<h2>Functions</h2>
|
||||||
|
|
||||||
|
<h3><A name="fl_beep">void fl_beep(int type = FL_BEEP_DEFAULT)</A></h3>
|
||||||
|
|
||||||
|
<P>Sounds an audible notification; the default <CODE>type</CODE> argument
|
||||||
|
sounds a simple "beep" sound. Other values for <CODE>type</CODE> may use
|
||||||
|
a system or user-defined sound file:
|
||||||
|
|
||||||
|
<UL>
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_DEFAULT</TT> - Make a generic "beep" sound.
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_MESSAGE</TT> - Make a sound appropriate for an
|
||||||
|
informational message.
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_ERROR</TT> - Make a sound appropriate for an
|
||||||
|
error message.
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_QUESTION</TT> - Make a sound appropriate for
|
||||||
|
a question.
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_PASSWORD</TT> - Make a sound appropriate for
|
||||||
|
a password prompt.
|
||||||
|
|
||||||
|
<LI><TT>FL_BEEP_NOTIFICATION</TT> - Make a sound appropriate for
|
||||||
|
an event notification ("you have mail", etc.)
|
||||||
|
|
||||||
|
</UL>
|
||||||
|
|
||||||
<h3><A name="fl_color_chooser_func">int fl_color_chooser(const char
|
<h3><A name="fl_color_chooser_func">int fl_color_chooser(const char
|
||||||
*title, double &r, double &g, double &b)
|
*title, double &r, double &g, double &b)
|
||||||
<br>int fl_color_chooser(const char *title, uchar &r, uchar &g, uchar &b)</A></h3>
|
<br>int fl_color_chooser(const char *title, uchar &r, uchar &g, uchar &b)</A></h3>
|
||||||
|
|
||||||
The double version takes RGB values in the range 0.0 to 1.0. The
|
<P>The <CODE>double</CODE> version takes RGB values in the range
|
||||||
uchar version takes RGB values in the range 0 to 255. The <tt>title</tt>
|
0.0 to 1.0. The <CODE>uchar</CODE> version takes RGB values in
|
||||||
argument specifies the label (title) for the window.
|
the range 0 to 255. The <tt>title</tt> argument specifies the
|
||||||
|
label (title) for the window.
|
||||||
|
|
||||||
<p align=center><img src="fl_color_chooser.jpg" ALT="The fl_color_chooser dialog.">
|
<p align=center><img src="fl_color_chooser.jpg" ALT="The fl_color_chooser dialog.">
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -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).
|
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -222,9 +222,12 @@ void fl_beep(int type) {
|
|||||||
case FL_BEEP_NOTIFICATION :
|
case FL_BEEP_NOTIFICATION :
|
||||||
MessageBeep(MB_ICONASTERISK);
|
MessageBeep(MB_ICONASTERISK);
|
||||||
break;
|
break;
|
||||||
default :
|
case FL_BEEP_ERROR :
|
||||||
MessageBeep(MB_ICONERROR);
|
MessageBeep(MB_ICONERROR);
|
||||||
break;
|
break;
|
||||||
|
default :
|
||||||
|
MessageBeep(0xFFFFFFFF);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@@ -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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user