Fixed window movement for windows without header and some small wrong calculation inside the panel layout code. In addition I added another example implementing a simple calculator.