sets control size
from version 4.0
to change size you need to change the parent's size and then to call setSizes()