Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I manage displaying variable text of unkown length without line breaks on an LCD pad?

0
Posted

How can I manage displaying variable text of unkown length without line breaks on an LCD pad?

0

There are two methods that will allow for sizing. One will return the current LCD size, and the other (based on the text you pass in, and also on your current LCDSetFont() settings) provides the size in px you will need for that text. GetLCDSize() Function: Returns the XSize and YSize (in LCD coords) of the tablet currently specified in the SigPlus.ini. Return Value: unsigned long – (YSize upper 16 bits, XSize lower 16 bits) GetLCDTextSize(str StringToBeDisplayedOnLCD) Function: Returns the XSize and YSize (in LCD coords) necessary to display on the LCD the string argument, based on the font parameters (see LCDSetFont() method for details). Use to determine the LCD size necessary for your display Text.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123