MV> Hi Tim Hutzler, hope you are having a nice day
TH> Ever hear that joke about computers and women?.....
MV> Which one?
TH> capibility, auto-wordwrap capibility (wraps as you type), and
> some other custom goodies that I don't see in other editors.
MV> I started that once, but never finished it... How do you do that
> so quickly?
I'm damn good!....????
Well, the wordwrap sub is only about 20 lines of code. It's not that
hard, and it's working pretty good. But there is one little bug that
is a bugger. Also, I want it to wrap a block right of quote markers,
like the kind you see in FIDOmail. "MV>"
TH> I *thought* the word wrap coding would be easy, but I'm not
> thinking that now.
MV> Hey, that's what totally screwed up my editor and I gave up
> hope..
Well, I did it by converting the graph to a single string, then
breaking it up again. This occurs for each character inserted, or
deleted. There is additional logic that adds or deletes lines as
needed. There is a small bug that doesn't delete a line when it should
in mine. It is somewhat rare, so I haven't gotton around to fixing it.
I don't have that bug in my PowerBASIC-Editor, since it works line by
line. However, I would like to add it someday. Have you ever wanted to
make a multi-line commented entry, or edit a long string that is
broken up by the underscore to continue it on the next line? I would
like to implement that.
TH> I just about have it working as it should, but it took me over a
> day slaving over it.
MV> Just ONE day? to use word-wrapping and after a week, it still didn't work..
> Before that, I used my own editor for a while...
Yea, that happens. But, I wasn't dogged too badly. The WordWrap SUB
was easily inserted into the code with minor changes. Now, the block
wordwrap needed to accomodate the quote markers, ie. the "xx>", at the
beginning of those lines, that's a different matter. Nearly all of the
cursor control and edit primitives need to be updated. Yuck!
And, I still have'nt finished the docs...
BTW, do you have any neat compression/expansion code. Someone posted a
pairing compressor several months ago, I get about 40% compression.
But, I would like something that can do better, but still run fast.
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|