|Century Embedded Technologies Nano-X SDK and Developer's Guide|
|Prev||Chapter 13. Extending and Adding Widgets||Next|
The resize(int x, int y, int w, int h) method is called when the widget is being resized or moved. The arguments are the new position, width, and height. x(), y(), w(), and h() still remain the old size. You must call resize() on your base class with the same arguments to get the widget size to actually change.
This should not call redraw(), at least if only the x() and y() change. This is because composite widgets like Fl_Scroll may have a more efficient way of drawing the new position.