lots of resize/min size fixes, margins for window

now onto titlebar dragging
example of using minWidth,Height for setting smallest size of window

titlebar dragging works
guarantee that resizing win can never go smaller than min size
progress in buttonstyle..