diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-04-18 19:17:03 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-04-18 19:17:03 +0000 |
| commit | 816393d2d4aef5293e6acb8bc2c1344a53206a75 (patch) | |
| tree | 816991e7afc7c70b2de28281193b8109bb1d4166 /fluid | |
| parent | 923aa16100771ca4cbcdb2e575f3fe17753d5d1f (diff) | |
Updated patch version to 2 (1.0.2)
Fixed missing fdsets variable in Fl_win32.cxx
Removed unused maxfd variable in Fl_win32.cxx
FLUID now outputs the window constructor with x,y arguments if
the class name is Fl_Group (this allows you to setup classes
using FLUID) Add extra code after all the widgets to move them
to the desired offset within the window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index fa5a813eb..f815a98ec 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget_Type.cxx,v 1.15.2.2 1999/04/18 14:10:53 gustavo Exp $" +// "$Id: Fl_Widget_Type.cxx,v 1.15.2.3 1999/04/18 19:17:00 mike Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -1323,7 +1323,12 @@ void Fl_Widget_Type::write_code1() { if (varused) write_c("{ %s* o = ", t); if (name()) write_c("%s = ", name()); if (is_window()) { - write_c("new %s(%d, %d", t, o->w(), o->h()); + // Handle special case of Fl_Group class type within a window - + // output constructor using x, y, w, h... + if (strcmp(t, "Fl_Group") == 0) + write_c("new %s(0, 0, %d, %d", t, o->w(), o->h()); + else + write_c("new %s(%d, %d", t, o->w(), o->h()); // prevent type() code from being emitted: ((Fl_Widget_Type*)factory)->o->type(o->type()); } else { @@ -1745,5 +1750,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) { } // -// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.2 1999/04/18 14:10:53 gustavo Exp $". +// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.3 1999/04/18 19:17:00 mike Exp $". // |
