If I write a line of characters to the display that is wider than the length of the display, it wraps to the next line (AutoScroll on) or to the top of the display (AutoScroll off). Is there a way with the GLK12232 to just truncate the excess characters extending past the line?
I'm using a non-monospace font so the only solution I can see is to determine the width of each character one by one and truncating the line myself before writing to the display.
Any suggestions would be appreciated. Thanks.
disable line wrapping with GLK12232-25 ?
Hi Flip,
Thanks for your question, sorry to hear that you have been having some trouble writing truncated text to your GLK12232 display. Unfortunately, the display is set up to display all the text that comes to it in some form or another. However, I understand manually truncating your text may be difficult to do. You may want to try drawing a white rectangle under a line of your text to clear part of the screen, essentially preforming a poor man's truncation. This way you'll only have to keep track of the height of your text, which is constant, rather than the ever changing width. Hope that has given you a few more ideas, you can always check out the drawing section of your manual for more details.
Thanks,
Troy
Thanks for your question, sorry to hear that you have been having some trouble writing truncated text to your GLK12232 display. Unfortunately, the display is set up to display all the text that comes to it in some form or another. However, I understand manually truncating your text may be difficult to do. You may want to try drawing a white rectangle under a line of your text to clear part of the screen, essentially preforming a poor man's truncation. This way you'll only have to keep track of the height of your text, which is constant, rather than the ever changing width. Hope that has given you a few more ideas, you can always check out the drawing section of your manual for more details.
Thanks,
Troy
Troy Clark
Design & Development
Matrix Orbital
Design & Development
Matrix Orbital