Author |
Topic: Programming language's "simplicity" (Read 342 times) |
|
Rod
Full Member
member is offline


Gender: 
Posts: 110
|
 |
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.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


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