Changing lengths of sub Components that has 45 degree cuts on the ends

The only probl;em with that solution is that I want the frame width and thickness to both be changable according to the wishes of the user. So the fized corner still would not work. It would also need to change.