Separately Lock height, width, location of a widget

It would be useful to be able to lock the dimensions and location of a widget separately.
e.g. I want to create a panel with a header. So I draw a box and put another box at the top with is the panel header with some text. maybe the header is a different colour. I group them. Now I want to resize the panel. If I stretch it downwards I don’t want the header to e stretch. If I stretch it side ways I want the header to widen with the box.
This is an example … I don’t wan the title bar to change in height.