TexteditorColor$: Difference between revisions

From Liberty BASIC Family
Jump to navigation Jump to search
m (Text replacement - "Building Blocks Categories" to "Building Blocks")
 
m (1 revision imported)
 

Latest revision as of 03:04, 11 October 2023

Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Sets the background color of a text-editor to one of the named colors.

Syntax

The variable is case sensitive.
  1. TexteditorColor$ = "named Color"

Hints

Placing the statement. The TexteditorColor$ value can be changed between each control statement. A text-editor will be colored according to the last color statement issued before the command to create the text-editor. Background colors are set before the GUI window is opened and cannot be changed after the window is opened.
Colors. The color variables used for GUI controls can only use named colors.

Example

nomainwin
a$(1) = "one"
a$(2) = "two"
a$(3) = "three"
a$(4) = "four"

TexteditorColor$ = "yellow"
texteditor #win.txted, 10, 10, 220, 200

open "Texteditor Demo" for window as #win
#win "trapclose [Quit]"
#win.txted "This is a yellow text editor!"

wait

[Quit] close #win:end

Useful Procedures

' Place a useful function or sub using this keyword here