LB Booster
« Maximising the main window »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 05:00am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Maximising the main window  (Read 1099 times)
RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx 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
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx 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
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »


This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls