diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-01-04 15:06:30 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-01-04 15:06:30 +0000 |
| commit | 68e1aa97579af78ed6f9681f9288a7bdf0323398 (patch) | |
| tree | f410679ffe6e96a99bcc4b41bab29c256f435a17 /fluid | |
| parent | 5456a2b8fc5b1d1121a8b80d6f190147c3f89f45 (diff) | |
Making a child group visible in a Fl_Tabs or Fl_Wizard widget now
selects that tab/pane.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 69c7dc07c..910f332d7 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -886,6 +886,13 @@ void visible_cb(Fl_Light_Button* i, void* v) { n ? q->o->show() : q->o->hide(); q->redraw(); mod = 1; + if (n && q->parent && q->parent->type_name()) { + if (!strcmp(q->parent->type_name(), "Fl_Tabs")) { + ((Fl_Tabs *)q->o->parent())->value(q->o); + } else if (!strcmp(q->parent->type_name(), "Fl_Wizard")) { + ((Fl_Wizard *)q->o->parent())->value(q->o); + } + } } } if (mod) set_modflag(1); |
