Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

text lcd panel word wrapping

$
0
0
ever think to yourself "why doesn't the text panel word wrap" etc... enter the code loop that can word wrap. This code can be inserted into a function for a string. It's just a way of wrapping heh heh enjoy!
Code:
if (SuccessOutput.Length > 0) {
    int wordPos = 0;
    for (int i = 35; i < SuccessOutput.Length; i += 35) { //word wrap at 35 for text panel.
        if (i<SuccessOutput.Length && SuccessOutput[i] == ' ') { //what's the chance of this line???...
text lcd panel word wrapping

Viewing all articles
Browse latest Browse all 903

Trending Articles