Author |
Topic: Maximising the main window (Read 1099 times) |
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: Maximising the main window
« Reply #11 on: Oct 15th, 2015, 12:52pm » |
|
Alyce Your comments are noted and understood.
Richard The sort of formatting that I am thinking about requires the positioning of text on a page, which I do using the old fashioned TAB and USING. I tend to use mono fonts and there are several that are quite good looking these days. They make it easier to line up numbers, for example and I don't normally have a need for different colours. However, I can see that for some purposes graphics window could be the way to go.
is there a way to control the position of text and numbers in a graphics window?
Ray
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Maximising the main window
« Reply #12 on: Oct 15th, 2015, 4:27pm » |
|
on Oct 15th, 2015, 12:52pm, RNBW wrote:| is there a way to control the position of text and numbers in a graphics window? |
|
Far more easily than you can using LPRINT! I listed a code example which automatically centres a string, by calculating the coordinates at which it needs to be drawn. You can use a similar technique to draw subscripts and superscripts, align text in columns (even when it is proportional spaced) etc.
Whenever accurate positioning is important a graphics window is the way to go. Even if you can get close to what you want using LPRINT, the chances are that switching to a different printer will upset your careful alignment (for example if the resolution or page margins are different, which will almost certainly be the case).
Really the only good use of LPRINT I can think of is when you want the text to 'flow' from one line to the next and/or from one page to the next when necessary. In other words rather than determining the page layout yourself you want the PC to do it automatically according to the sizes of the paper, margins and text.
Richard.
|
|
Logged
|
|
|
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: Maximising the main window
« Reply #13 on: Oct 15th, 2015, 7:26pm » |
|
Richard I hear what you are saying, but we will have to agree to disagree on this. I've been using the LPRINT method from DOS and, although it may now seem old fashioned I know it works using mono fonts and with TAB and USING. I can print out exactly as I want to whatever printer I want and I have used dot matrix, ink jet and laser printers.
What is not always possible its changing the sizes of the print.
Many years ago (good god it's over 30 years ago), I wrote a program for my employer designing structural beams. It was designed in such a way that the hard copy output (to a dot matrix printer) would be the same as if it had been produced by hand. This avoided having to have the program approved by countless Building Control Departments. This was done using LPRINT, etc. At that time there was no other way and I've used it ever since.
It should be said the program outlasted me by several years as I left structural design behind and went into project management.
I hope that explains why I am such a 'stick-in-the-mud' on this subject.
Ray
|
|
Logged
|
|
|
|
|