diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-07-19 12:12:15 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-07-19 12:12:15 +0000 |
| commit | f64d694799dce27c44858d2b2c7d80b203d83ed3 (patch) | |
| tree | e3402904af00009421f12cd222aaffea120e9057 /fluid/Fl_Group_Type.cxx | |
| parent | d1808c6165626f5ee5c9664f0c61da57b5475307 (diff) | |
Better support for Live mode in Fluid. Most Widget attributes are now supported including pulldown menus (in a very simple, but working way).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Group_Type.cxx')
| -rw-r--r-- | fluid/Fl_Group_Type.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx index d68a96b8b..c8c89a60d 100644 --- a/fluid/Fl_Group_Type.cxx +++ b/fluid/Fl_Group_Type.cxx @@ -249,6 +249,7 @@ Fl_Widget *Fl_Tabs_Type::enter_live_mode(int top) { } grp->end(); } + grp->value(((Fl_Tabs*)o)->value()); return live_widget; } @@ -280,12 +281,26 @@ Fl_Menu_Item scroll_type_menu[] = { Fl_Scroll_Type Fl_Scroll_type; // the "factory" +void Fl_Scroll_Type::copy_properties() { + Fl_Group_Type::copy_properties(); + Fl_Scroll *s = (Fl_Scroll*)o, *d = (Fl_Scroll*)live_widget; + d->position(s->xposition(), s->yposition()); + d->type(s->type()); // TODO: get this flag from Fl_Scroll_Type! + d->scrollbar.align(s->scrollbar.align()); + d->hscrollbar.align(s->hscrollbar.align()); +} + //////////////////////////////////////////////////////////////// const char tile_type_name[] = "Fl_Tile"; Fl_Tile_Type Fl_Tile_type; // the "factory" +void Fl_Tile_Type::copy_properties() { + Fl_Group_Type::copy_properties(); + // no additional properties +} + // // End of "$Id$". // |
