GLCD - Writing and Clearing Text of varying length

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jay_dee
Posts: 132
http://meble-kuchenne.info.pl
Joined: Sun Dec 20, 2020 6:06 pm
Has thanked: 47 times
Been thanked: 31 times

GLCD - Writing and Clearing Text of varying length

Post by jay_dee »

Hi,
I am writing a string to a GLCD, I have the Transparency set to 0 so any new text cleanly overwrites the old text.
However if the the length of the string is shorter then the previous text, the last few characters of the old text remain.

With a conventional LCD I would simply preceed any new text by writing a block of spaces to blank out any old text.
This does not seem to work with my GLCD. :?

Do I have to write a solid square of back ground? as this seems quite slow to do in hardware.
Thoughts? :)

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: GLCD - Writing and Clearing Text of varying length

Post by medelec35 »

Hi Jay.
Have you tried using the gLCD TextField component?
Using the components Search icon enter textf
You will need to select your display from the gLCD object properties of the textFied component.
You can then use the display the same way as you do with an alphanumeric LCD. i.e. pad out with some spaces.
If you are stuck, you can post or pm your project if you want to keep it private.
Martin

Post Reply