I need to generate a simulation of a printed paper receipt to the screen (in a window or dialog box).
Specific needs: mono-spaced font(s) (varying sizes for each line), possible different fonts per line (same on any single line), maximum 42 chars per line; bold, underline, italic support, varying receipt length (# of lines) with vertical scroll bar, each lines' text could be left/center/right justified and, finally, an option to print the receipt data as seen on the screen to a printer (such that it looks like what is seen on screen).
This is probably pretty easy, but I can't figure what control(s) to use. SynEdit and TMemo don't seem to be good for this. Again, the window (dialog) would be something simple like a TMemo with white background and black text... and scroll bar on the right... and, each line could have a different font and font style. Then, printing that text would be nice (if user clicks Print button).
I hope someone has a great solution for this and/or some sample code that shows how to get started on this. Thanks
