LB Booster
« Programming language's "simplicity" »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:03am



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: Programming language's "simplicity"  (Read 342 times)
Rod
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 110
xx Re: Programming language's "simplicity"
« Reply #3 on: Jun 27th, 2017, 8:00pm »

You have to question why the language does not support the simple colouring that you desire. Answer, nobody used to use colour, colour was the choice of the user, the user decided on the colour scheme and all controls were supposed to be displayed in the colour contrast and font size of the users preference.


You see many multi coloured web and browser pages because that language was designed to support it. Step behind an office or retail screen and you will see few colours.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Programming language's "simplicity"
« Reply #4 on: Jun 27th, 2017, 8:30pm »

on Jun 27th, 2017, 8:00pm, Rod wrote:
You have to question why the language does not support the simple colouring that you desire.

There's a particular oddity that led me to make LBB work differently from LB. In LB 4, the TextboxColor$, TexteditorColor$, ListboxColor$ and ComboboxColor$ variables are position-dependent, that is you can make different textboxes (etc.) have different background colors simply by setting the related variable before the statement that creates the control. This is explicitly illustrated in the LB docs with the following example:

Code:
  WindowWidth = 550
  WindowHeight = 410
  TextboxColor$ = "red"
  textbox #main.textbox1, 26, 16, 100, 25
  TextboxColor$ = "blue"
  textbox #main.textbox2, 30, 61, 100, 25
  TextboxColor$ = "yellow"
  textbox #main.textbox3, 30, 121, 100, 25
  open "untitled" for dialog as #main
  wait 

Yet, in LB 4, the BackgroundColor$ variable, which sets the background color of the other controls, isn't position-dependent: you can't make different (e.g.) statictext controls have different background colors.

This seemed illogical to me, and in addition - given that LBB implements all the various controls using basically identical code - it would actually have been difficult not to make BackgroundColor$ position-dependent in the same way as the other variables, so it is!

Richard.
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