diff options
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/Makefile | 6 | ||||
| -rw-r--r-- | documentation/events.html | 12 | ||||
| -rw-r--r-- | documentation/index.html | 6 | ||||
| -rw-r--r-- | documentation/opengl.html | 12 | ||||
| -rw-r--r-- | documentation/preface.html | 4 |
5 files changed, 30 insertions, 10 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index 632979614..62e8c46ff 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -1,5 +1,5 @@ # -# "$Id: Makefile,v 1.9.2.1 1999/05/01 15:08:11 mike Exp $" +# "$Id: Makefile,v 1.9.2.2 1999/06/12 13:53:23 mike Exp $" # # Documentation makefile for the Fast Light Tool Kit (FLTK). # @@ -134,7 +134,7 @@ fltk.d/index.html: $(HTMLFILES) fltk.ps: $(HTMLFILES) @echo "Generating PostScript documentation..." - @$(HTMLDOC) -f fltk.ps -t ps2 --jpeg --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) + @$(HTMLDOC) -f fltk.ps -t ps2 --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) fltk.pdf: $(HTMLFILES) @echo "Generating PDF documentation..." @@ -142,5 +142,5 @@ fltk.pdf: $(HTMLFILES) @$(HTMLDOC) -f fltk.pdf --jpeg --compression=9 --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) # -# End of "$Id: Makefile,v 1.9.2.1 1999/05/01 15:08:11 mike Exp $". +# End of "$Id: Makefile,v 1.9.2.2 1999/06/12 13:53:23 mike Exp $". # diff --git a/documentation/events.html b/documentation/events.html index e43066dd5..88ec9b9f3 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -28,6 +28,10 @@ The mouse has moved with a button held down. The current button state is in <a href="#event_state"><tt>Fl::event_state()</tt></a>. The mouse position is in <a href="#event_x"><tt>Fl::event_x()</tt></a> and <a href="#event_y"><tt>Fl::event_y()</tt></a>. + +<P>To receive <CODE>FL_DRAG</CODE> events you must also respond to the +<CODE>FL_PUSH</CODE> and <CODE>FL_RELEASE</CODE> events. + <H3>FL_RELEASE</H3> A mouse button has been released. You can find out what button by calling <A href=#event_button><TT>Fl::event_button()</TT></A>. @@ -68,10 +72,14 @@ widget when another widget gets the focus. be found with <A href=functions.html#event_text><TT>Fl::event_text()</TT> </A> and its length is in <A href=functions.html#event_length><TT> Fl::event_length()</TT></A>. If you use the key <TT>handle()</TT> - should return 1. If you return zero then FLTK assummes you ignored +should return 1. If you return zero then FLTK assummes you ignored the key. It will then attempt to send it to a parent widget. If none of them want it, it will change the event into a <TT>FL_SHORTCUT</TT> - event. +event. + +<P>To receive <CODE>FL_KEYBOARD</CODE> events you must also respond to the +<CODE>FL_FOCUS</CODE> and <CODE>FL_UNFOCUS</CODE> events. + <H3>FL_SHORTCUT</H3> If the <A href=functions.html#focus><TT>Fl::focus()</TT></A> widget is zero or ignores an <TT>FL_KEYBOARD</TT> event then FLTK tries sending this diff --git a/documentation/index.html b/documentation/index.html index 14c5e38e0..ad42728b5 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -1,6 +1,6 @@ <HTML> <HEAD> - <TITLE>FLTK 1.0.3 Programming Manual</TITLE> + <TITLE>FLTK 1.0.4 Programming Manual</TITLE> </HEAD> <BODY> @@ -8,8 +8,8 @@ <TR> <TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=FL.gif ALIGN=ABSMIDDLE></TD> <TD ALIGN=CENTER VALIGN=MIDDLE> -<H1>FLTK 1.0.3 Programming Manual</H1> -Revision 10 by Michael Sweet, Craig P. Earls, and Bill Spitzak<BR> +<H1>FLTK 1.0.4 Programming Manual</H1> +Revision 11 by Michael Sweet, Craig P. Earls, and Bill Spitzak<BR> Copyright 1998-1999 by Bill Spitzak and others.<BR> </TD> </TR> diff --git a/documentation/opengl.html b/documentation/opengl.html index 5ed567992..8a5ab0aa7 100644 --- a/documentation/opengl.html +++ b/documentation/opengl.html @@ -283,9 +283,15 @@ void OptimizerWindow::draw() { // This is the first time we've been asked to draw; create the // Optimizer context for the scene... +#ifdef WIN32 + context_ = new csContext((HDC)fl_getHDC()); + context_->ref(); + context_->makeCurrent((HDC)fl_getHDC()); +#else context_ = new csContext(fl_display, fl_visual); context_->ref(); context_->makeCurrent(fl_display, fl_window); +#endif // WIN32 ... perform other context setup as desired ... @@ -296,6 +302,12 @@ void OptimizerWindow::draw() { draw_action_->setCamera(camera_); camera_->draw(draw_action_); } + } else { +#ifdef WIN32 + context_->makeCurrent((HDC)fl_getHDC()); +#else + context_->makeCurrent(fl_display, fl_window); +#endif // WIN32 } if (!valid()) { diff --git a/documentation/preface.html b/documentation/preface.html index a9b789332..de053541b 100644 --- a/documentation/preface.html +++ b/documentation/preface.html @@ -2,8 +2,8 @@ <HEAD> <META CONTENT="Written by Michael Sweet, Craig P. Earls, and Bill Spitzak" NAME=Author> <META CONTENT="Copyright 1998-1999 by Bill Spitzak and Others." NAME=Copyright> - <META CONTENT="Revision 10" NAME=DocNumber> - <TITLE>FLTK 1.0.3 Programming Manual</TITLE> + <META CONTENT="Revision 11" NAME=DocNumber> + <TITLE>FLTK 1.0.4 Programming Manual</TITLE> </HEAD> <BODY> <H1 ALIGN=RIGHT><A NAME=preface>Preface</A></H1> |
