diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-11-20 15:42:25 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-11-20 15:42:25 +0000 |
| commit | 696e2d32191aee9cb0fc8d1a2d8c9f63eb3aacd2 (patch) | |
| tree | e43e5ad7ea2c45cb1a311e343e3977dd3eaf1ce8 /fluid/Fl_Window_Type.cxx | |
| parent | 7a2e635a8edf28322ba01dcdcf67aab69bb2cf89 (diff) | |
- Moving or resizing widgets in FLUID didn't always update the
widget panel (STR #600)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 0ce220c6d..cc8415eba 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.9 2004/04/11 04:38:56 easysw Exp $" +// "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.10 2004/11/20 15:42:24 easysw Exp $" // // Window type code for the Fast Light Tool Kit (FLTK). // @@ -527,6 +527,16 @@ extern void fix_group_size(Fl_Type *t); extern Fl_Menu_Item Main_Menu[]; extern Fl_Menu_Item New_Menu[]; +// Update the XYWH values in the widget panel... +static void update_xywh() { + if (current_widget && current_widget->is_widget()) { + widget_x_input->value(((Fl_Widget_Type *)current_widget)->o->x()); + widget_y_input->value(((Fl_Widget_Type *)current_widget)->o->y()); + widget_w_input->value(((Fl_Widget_Type *)current_widget)->o->w()); + widget_h_input->value(((Fl_Widget_Type *)current_widget)->o->h()); + } +} + // move the selected children according to current dx,dy,drag state: void Fl_Window_Type::moveallchildren() { @@ -558,6 +568,8 @@ void Fl_Window_Type::moveallchildren() ((Overlay_Window *)(this->o))->redraw_overlay(); modflag = 1; dx = dy = 0; + + update_xywh(); } int Fl_Window_Type::handle(int event) { @@ -795,5 +807,5 @@ int Fl_Window_Type::read_fdesign(const char* propname, const char* value) { } // -// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.9 2004/04/11 04:38:56 easysw Exp $". +// End of "$Id: Fl_Window_Type.cxx,v 1.13.2.10.2.10 2004/11/20 15:42:24 easysw Exp $". // |
