|Century Embedded Technologies Nano-X SDK and Developer's Guide|
|Prev||Chapter 9. Common Widgets and Attributes||Next|
The size and position of widgets is usually set when you create them. You can access them with the x(), y(), w(), and h() methods.
You can change the size and position by using the position(), resize(), and size() methods:
button->position(x, y); group->resize(x, y, width, height); window->size(width, height);
If you change a widget's size or position after it is displayed you will have to call redraw() on the widget's parent.