Wordwrap in texteditor control

Discussions about the Liberty BASIC language, with particular reference to LB Booster
k6dgw
Posts: 11
Joined: Thu Feb 24, 2022 12:34 am

Wordwrap in texteditor control

Post by k6dgw »

Is there a set of stylebits that I can use to get a texteditor control to word wrap long records? The input files were created in Notepad [or one of the clones] and have {0x0d}{0x0a} characters at the end of the long lines. Searching the MS KB got me lost in the forest of Windows jargon and I barely made it back to civilization. ;)
guest
Site Admin
Posts: 198
Joined: Tue Apr 03, 2018 1:34 pm

Re: Wordwrap in texteditor control

Post by guest »

k6dgw wrote: Tue Apr 05, 2022 7:50 pm Is there a set of stylebits that I can use to get a texteditor control to word wrap long records/

Code: Select all

texteditor #w.te, 10, 10, 280, 280
stylebits #w.te, 0, _ES_AUTOHSCROLL or _WS_HSCROLL, 0, 0
open "Wordwrap test" for window as #w
wait
This is an LBB extension, it doesn't work in LB4.
k6dgw
Posts: 11
Joined: Thu Feb 24, 2022 12:34 am

Re: Wordwrap in texteditor control

Post by k6dgw »

Thanks, that works great.