diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-17 21:57:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-17 21:57:17 +0000 |
| commit | 1e742cc41f169d97790bba4f63b7a56db8a66455 (patch) | |
| tree | 0c6d40593dedc9351dd89de24df5311c381d7d7f /fluid/Fl_Window_Type.cxx | |
| parent | 8fcd08ffaac998385489dc202bba379280612990 (diff) | |
Use check items for overlays and the widget bin, and track their state.
Add Edit/Duplicate to duplicate the current selection; this functions
independently of the cut/copy/paste buffer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 230b52b05..f77a0ffd7 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -893,8 +893,12 @@ void Fl_Window_Type::draw_overlay() { fl_rectf(mybx,mybt-5,5,5); } +extern Fl_Menu_Bar *main_menubar; + // Calculate new bounding box of selected widgets: void Fl_Window_Type::fix_overlay() { + Fl_Menu_Item *item = (Fl_Menu_Item *)main_menubar->find_item("&Edit/O&verlays"); + if (item) item->set(); overlays_invisible = 0; recalc = 1; ((Overlay_Window *)(this->o))->redraw_overlay(); |
