Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:08 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite v5.1 LCD Background colour

Author Message
rogersan
Regular Member

Joined: 10/04/2015
Location: Australia
Posts: 79
Posted: 05:36pm 10 Apr 2016
Copy link to clipboard 
Print this post

I have bee trying out the TEXT command with the drawing colour=RGB(white), and with the background colour=RGB(red). The background colour only extends as far as the text, leaving black space at the end of the text.

I would like the red background to cover the black areas. I tried COLOUR RGB(white),RGB(red) to set the background to red but it made no difference.

Does anyone know how to force the background all to red?



 
rogersan
Regular Member

Joined: 10/04/2015
Location: Australia
Posts: 79
Posted: 06:00pm 10 Apr 2016
Copy link to clipboard 
Print this post

You can force the black area at the end of a line of text to be the same background colour as the text, by adding space characters at the end of the line.

The colour command does not force the whole background to a colour, so areas not used on the screen are left black.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:47pm 10 Apr 2016
Copy link to clipboard 
Print this post

Use the BOX command to draw the area that you want in the colour you want then print the TEXT over the top.

That way you can colour the whole background or just a part of it.

Jim
VK7JH
MMedit
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1993
Posted: 11:32pm 10 Apr 2016
Copy link to clipboard 
Print this post

Use the command CLS RGB(red)

Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025