Today I moved on to the next task of the "self-help printer" project, today's task is to let the elements of the user interface, the forms and the visual controls of the program scale automatically according to the screen resolution of the PC running the program.
I spent the whole afternoon thinking about the algorithm and writing code to try to implement the work, but by the time I got off, it hadn't be done yet.
In the evening, as I was running on the treadmill at the gym, still thinking about the problem, I thought that the requirement was a common problem, so it must have been done by other programmers, or even that it was an internal function that I could just call it to implement the requirement.
Yes it was, I just wrote a line of code to call a function to do it. The resizing of forms and visual controls is done internally at a ratio calculated by comparing the screen resolution of the development computer to the user computer running the "self-help printer".
What a waste of an afternoon!