TEXT LINE-WRAP

© 2002 by Bill Jennings

Home

Use of Color in Graphics

Bitmap Graphics Tutorial

Bitmap Color Formats

Bmp Dimensions

SCAN vs WAIT

Text Input Boxes

An Easy Calendar Control

Shareware Marketing

Date/Time Picker

Text Line-Wrap

Combining Commands

Newsletter help

Index


Bill has devised a clever method for breaking lines to the length desired in a texteditor, using the stringwidth graphics function. Thanks for sharing, Bill! See the attachment wrapText.bas included with this newsletter.

'   wrapText.bas

'LB3x required.
'Word wrap text in a scrollable LB textEditor
'using 'stringWidth' in a graphicbox to
'find the wrap point.
'Works with TXT files too. See [getFile].
'In addition to wrapping at the nearest space,
'the code will also wrap at hyphens, and replace
'tabs with spaces.
'   Bill Jennings, Aug 2002.


Home

Use of Color in Graphics

Bitmap Graphics Tutorial

Bitmap Color Formats

Bmp Dimensions

SCAN vs WAIT

Text Input Boxes

An Easy Calendar Control

Shareware Marketing

Date/Time Picker

Text Line-Wrap

Combining Commands

Newsletter help

Index