summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-03-21 11:38:52 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-03-21 11:38:52 +0000
commit562198fa3131684e7911ce8c8b0082bbbc617671 (patch)
tree79cb3b5834ef7cc9996e1298e1ca157769bdbb78 /src/fl_ask.cxx
parent05766857c4312da280154361eb80c65cb14b3bfd (diff)
Polygon drawing fixed #765, fl_message wrapped in Fl_Group::current(0), so it doesn't end up inside some current group #253. Undefined 'check' in Fl_Menu_Item_, so it will compile as an Apple XCode project (to be delivered later)..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_ask.cxx')
-rw-r--r--src/fl_ask.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index 5e75fab42..016b52495 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -59,6 +59,11 @@ static Fl_Window *makeform() {
message_form->size(410,103);
return message_form;
}
+ // make sure that the dialog does not become the child of some
+ // current group
+ Fl_Group *previously_current_group = Fl_Group::current();
+ Fl_Group::current(0);
+ // create a new top level window
Fl_Window *w = message_form = new Fl_Window(410,103,"");
// w->clear_border();
// w->box(FL_UP_BOX);
@@ -82,6 +87,7 @@ static Fl_Window *makeform() {
w->resizable(new Fl_Box(60,10,110-60,27));
w->end();
w->set_modal();
+ Fl_Group::current(previously_current_group);
return w;
}