May 10, 2024, 04:31:40 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Word wrap in Richedit control

Started by Jerry Muelver, February 08, 2008, 02:53:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jerry Muelver

I'm not getting word-wrap in my Richedit control:
CONTROL d1,@RICHEDIT,"",7,35,570,294,@CTEDITMULTI|@CTEDITRETURN|@CTEDITAUTOV|@VSCROLL,1

Letters pile up on the right margin, instead of wrapping to the next line.  :(

Jerry Muelver

Ah! Set line length in twips. Of course.
CONTROLCMD  window | dialog, ID, @RTSETLINEWIDTH, width

And if user resizes, recount the twips, I suppose....

LarryMc

Jerry,
I'm beginning to think you have "dual" personalities!
You post a question and then you post the answer. :D

Did I see you on the "Twilight Zone"? ;)

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

GWS

I think Jerry works at light speed Larry ..  :)

Before anyone can even comprehend the question, he's found an answer .. and onwards he goes ..... ::)

He! .. he!  ..  :)

Graham
Tomorrow may be too late ..

LarryMc

The only thing I can do at the "speed of light" is foul up! :D

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Jerry Muelver

I'm not so sure about your "foul up" assertion, Larry. I've been looking at your Whizzywig hybrid editor implementation. There's more than a germ of an idea there.... More like a blooming tumor on my ambitions. I may have to pull the plug on my RichEdit adventures and do a fork off your editor instead.

A couiple more asked-and-answered questions, and my plans will crystallize... or maybe ossify.  ::)