LB Booster
« Mainwin Font »

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



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 2  Notify Send Topic Print
 hotthread  Author  Topic: Mainwin Font  (Read 2028 times)
Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx Re: Mainwin Font
« Reply #11 on: Jan 21st, 2015, 05:30am »

I read in another thread that the following BBC Basic command can be used to change the font in MainWin.
Code:
font$ = "Courier New, 14"
!OSCLI "font " + font$
 

You can search your system for LBB.ini, but it's not user-friendly. On XP it is in C:Documents and Settings\(myusername)\Programdata

And it's ok to write programs that run only in MainWin. In the old days that's how they all ran. Do what seems best for you.

« Last Edit: Jan 21st, 2015, 05:33am by Jack Kelly » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Mainwin Font
« Reply #12 on: Jan 21st, 2015, 08:22am »

on Jan 21st, 2015, 05:30am, Jack Kelly wrote:
You can search your system for LBB.ini

There's no reason why you should need to view or edit that file, since it only records settings that you can easily see and change in the IDE, but there's an easier way to find it should you want to: use the environment variable %APPDATA% (either in Windows Explorer or at a Command Prompt)

Quote:
And it's ok to write programs that run only in MainWin.

There are differing opinions on that! Some LB enthusiasts will argue that the mainwin should be used only for 'little programs' and for debugging GUI applications (which is certainly its principle use as far as I'm concerned). They would discourage its use as the main or only UI in a large program.

I won't take sides on that issue, but it's worth mentioning that LBB's mainwin does not have the high degree of compatibility with LB4 that the GUI features do. For example there is no menu, and you can only 'scroll back' a limited distance. On the other hand you can change the colour and even use graphics in the LBB mainwin, which you can't in LB4.

Richard.
User IP Logged

Monkfish
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Mainwin Font
« Reply #13 on: Jan 21st, 2015, 12:35pm »

Thanks Jack smiley

I wondered if LBB had an ini file. Changing the font within the program seems to work fine, but it's handy to know.

My program only uses text input because it's intended to be used by people who might not be confident in using a computer. If issues arise from using Mainwin, I will just have to shift all my input statements over to a separate window. Not sure what the benefits would be though?

I prefer to allow LBB to compile my code because the program it creates just feels more professional and produces a single executable... and it's faster wink
« Last Edit: Jan 21st, 2015, 12:38pm by Monkfish » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Mainwin Font
« Reply #14 on: Jan 21st, 2015, 2:06pm »

on Jan 21st, 2015, 12:35pm, Monkfish wrote:
I wondered if LBB had an ini file. Changing the font within the program seems to work fine, but it's handy to know.

I'm not sure if there's been some misunderstanding. The LBB.INI file sets the font used in the IDE (program editor), but it has no influence at all on the font used in the mainwin. They are totally independent, as one would (hopefully) expect.

In LB 4.04 the font used in the mainwin of a compiled program is linked in some way with the font used in the IDE. Why? It reminds me of the 'spooky action at a distance' that so upset Einstein, and it's almost as strange. But then I find many things about LB 4 inexplicable! shocked

Richard.
User IP Logged

Monkfish
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Mainwin Font
« Reply #15 on: Jan 21st, 2015, 5:26pm »

Oh I understand now. Must admit that I hadn't looked at the LBB ini file.

I get the impression Richard, that your expertise and many years of experience with BASIC is a little more advanced than Carl's.

I am only happy that both of you are helping to keep the flag flying for BASIC, which is how I was introduced to programming back on my Atari 800... ignoring my old programmable Sinclair calculator wink
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Mainwin Font
« Reply #16 on: Jan 21st, 2015, 5:56pm »

on Jan 21st, 2015, 5:26pm, Monkfish wrote:
I get the impression Richard, that your expertise and many years of experience with BASIC is a little more advanced than Carl's.

I don't know Carl's background. He is obviously an extremely skilled and experienced SmallTalk programmer, but I get the impression that his knowledge of BASIC is (or at least was when he designed LB) a bit weak, and I don't think he's as familiar with some aspects of Windows as might be desirable.

I don't claim to be an expert in anything, but with more than 40 years of software and hardware engineering experience, and more than 30 years associated with BBC BASIC, I've acquired a certain degree of knowledge about a whole lot of things - and forgotten a whole lot more!

Richard.
User IP Logged

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


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