diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-06-12 13:53:34 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-06-12 13:53:34 +0000 |
| commit | 82eb2381e6e8a733e2b5354047c86fd717bee263 (patch) | |
| tree | 00222e762c98103f9f06b550fba8fc9fd3c3d5d7 /documentation/events.html | |
| parent | 0f3d0290ea27f4e500a3cb8771dcffe4a3afa6c5 (diff) | |
Updates for 1.0.4.
Added changes to event documentation for FL_DRAG and FL_KEYBOARD.
Added WIN32 stuff to Cosmo/Optimizer example code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/events.html')
| -rw-r--r-- | documentation/events.html | 12 |
1 files changed, 10 insertions, 2 deletions
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 |
