mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.8
|
CHANGES IN FLTK 1.1.8
|
||||||
|
|
||||||
|
- Making a child group visible in a Fl_Tabs or Fl_Wizard
|
||||||
|
group now shows that tab or pane.
|
||||||
- Added fl_open_uri() function as proposed on
|
- Added fl_open_uri() function as proposed on
|
||||||
fltk.development.
|
fltk.development.
|
||||||
- Added Fl::has_check() which previously was prototyped
|
- Added Fl::has_check() which previously was prototyped
|
||||||
|
|||||||
@@ -886,6 +886,13 @@ void visible_cb(Fl_Light_Button* i, void* v) {
|
|||||||
n ? q->o->show() : q->o->hide();
|
n ? q->o->show() : q->o->hide();
|
||||||
q->redraw();
|
q->redraw();
|
||||||
mod = 1;
|
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);
|
if (mod) set_modflag(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user