Sets the direction that it will be layed out, using the DOCK enum.
Currently only TOP and LEFT are supported.