diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-05-13 20:03:20 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-05-13 20:03:20 +0000 |
| commit | d5b47034a7575151963f1fc85a4630f68208e73a (patch) | |
| tree | 023ff7f35eeda76f2343cd895b4e2ea2101319b8 /FL/Fl.H | |
| parent | 2d826eb564160432259480504537e5797eced931 (diff) | |
Added Fl::first_window(window) to change which window is at the top of
the window list. This window is used as the "parent" of any modal
windows you create so it is a good idea to be able to change it.
Normally it is whatever window got the last event.
Fixed Fl_Menu::global handler to use first_window so if a modal window
pops up in response it is parented to the window containing the
menubar rather than the current top window. This was an annoying bug!
Copied fl_line_style() and the line_style demo over from fltk 2.0
because I am tired of mailing this code to people. Better to advertise this
as "added fl_line_style() function to set line thickness, dash patterns,
and end caps".
Fixed the documentation for these changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl.H')
| -rw-r--r-- | FL/Fl.H | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ // -// "$Id: Fl.H,v 1.8.2.4 2000/04/25 22:15:43 mike Exp $" +// "$Id: Fl.H,v 1.8.2.5 2000/05/13 20:03:14 bill Exp $" // // Main header file for the Fast Light Tool Kit (FLTK). // @@ -105,6 +105,7 @@ public: static FL_EXPORT void (*error)(const char*, ...); static FL_EXPORT void (*fatal)(const char*, ...); static FL_EXPORT Fl_Window* first_window(); + static FL_EXPORT void first_window(Fl_Window*); static FL_EXPORT Fl_Window* next_window(const Fl_Window*); static FL_EXPORT Fl_Window* modal() {return modal_;} static FL_EXPORT Fl_Window* grab() {return grab_;} @@ -210,5 +211,5 @@ public: #endif // -// End of "$Id: Fl.H,v 1.8.2.4 2000/04/25 22:15:43 mike Exp $". +// End of "$Id: Fl.H,v 1.8.2.5 2000/05/13 20:03:14 bill Exp $". // |
