1. Word Wrap can work

Hi folks!

I was looking for some appreciable solutions for the "word wrap" problem, 
but I met some more people with the same questions and no answer, it seems:

Date: 2005 Jul 6 23:58
 From: Pete Lomax <petelomax at blueyonder.co.uk>
If you fancy a bash at doing something better, knock yourself out. blink)
.. ..

Date: 2005 Feb 13 17:17
 From: Greg Haberek <ghaberek at gmail.com>
Subject: Toggling Word Wrap?
Derek (or anyone versed in RichEdit controls),
.. ..
 
 # 6  exact match 2/2 
Date: 2005 Feb 13 17:46
 From: Mario Steele <eumario at trilake.net>
However, is there a way to alter this programatically? I tried
> using addStyle() and removeStyle() but that doesn't have any effect,
.. ..

Date: 27 Jun 2001
 From: Derek Parnell <ddparnell at bigpond.com>
Subject: RE: How to set Wrap in Richedit in runtime
Hi Aku,
this can't be done unfortunately
.. ..


Well, it's all true, but two years ago at my beginning with Euphoria, 
I started out with an enough trivial approach, allowing me to continue 
with the development of my project and related analysis.
It may not be an "elegant" solution, but switches the text in a RichEdit 
window according to the user command, i.e. in every kind of document 
I'm loading lines wrap, do-not-wrap in runtime, and still it happens.

Is someone concerned by that question yet?
antonio

new topic     » topic index » view message » categorize

2. Re: Word Wrap can work

> Is someone concerned by that question yet?

Please elaborate, this has been bugging me for years.

~Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Word Wrap can work

Greg Haberek wrote:
> 
> > Is someone concerned by that question yet?
> 
> Please elaborate, this has been bugging me for years.
> 
> ~Greg
> 
> 

Ok, while preparing to extract a demo, I remembered that such a Rich Edit 
window was completely structured into my last dEbUg_magic_box tool.
http://www.myway.it/EU/dEbUg_magic_box.zip

Although still a buggy program, due to the complexity of its applicability,
that one had to be a general suggestion on how to face certain debug 
situations (and many more with other experienced contributions; 
but no feedback). Me too I have neglected him, not before getting 
a definitive aid in restructuring the enormous help package of my application
though. However the word wrap effect was already implemented there 
and its hardheaded efficience can be checked, despite to the forcing method.
___________

Btw Greg, I did successfully replace the dir() and walkdir() routines with your
windir(). Optimizing it I found that so many peek.. were not necessary for small
integers (a lot of work for hundreds of files): 
e.g. want you speed the SYSTEMTIME( ) function?

try it replacing:
atom ptr, wYear, wMonth, wDayOfWeek, wDay,
        wHour, wMinute, wSecond, wMilliseconds    
    if atom( st ) then
        -- read structure
        ptr = st
        
        wYear           = peek2( ptr ) -- +  0 )
        wMonth          = peek2( ptr +  2 )
        wDayOfWeek      = peek2( ptr +  4 )
        wDay            = peek2( ptr +  6 )
        wHour           = peek2( ptr +  8 )
        wMinute         = peek2( ptr + 10 )
        wSecond         = peek2( ptr + 12 )
        wMilliseconds   = peek2( ptr + 14 )

return {wYear, wMonth, wDayOfWeek, wDay, wHour, wMinute, wSecond,
        wMilliseconds}

with:
st = peek( {st, 16})
        return {st[1] +1792, st[3], st[5], st[7], st[9], st[11], st[13], st[15]}


antonio

new topic     » goto parent     » topic index » view message » categorize

4. Re: Word Wrap can work

On Wed, 13 Sep 2006 11:53:17 -0700, Antonio Alessi
<guest at RapidEuphoria.com> wrote:

>Hi folks!
>
>I was looking for some appreciable solutions for the "word wrap" problem, 
>but I met some more people with the same questions and no answer, it seems:
>
>Date: 2005 Jul 6 23:58
> From: Pete Lomax <petelomax at blueyonder.co.uk>
>If you fancy a bash at doing something better, knock yourself out. blink)
btw, Edita does not use RichEdit controls.
<snip>
>It may not be an "elegant" solution, but switches the text in a RichEdit 
>window according to the user command, i.e. in every kind of document 
>I'm loading lines wrap, do-not-wrap in runtime, and still it happens.

Just now in Google I found the EM_SETTARGETDEVICE message,
no matches in EUforum search, so fingers crossed (not tried). See:
http://www.vba-programmer.com/Snippets/Code_VB/Word_Wrap_Toggle_for_RichTextBox.html

An interesting link I found for the problems I face in Edita is: 
http://aeditor.rubyforge.org/softwrap.html Certainly clarifies a few
ideas, for instance I would display line 75 column 190 in the status
bar when the screen shows cursor on line-75-part-2-column-10, and
hence say downarrow would not be line+1 but col+80(ish) sometimes.
Plus wordwrap [show additional virtual lines] would need to be bolted
into the existing fold [hide selected real lines] mechanism, which I
knew already, but I now realise that a fold [clash] on a wordwrapped
line is no matter - folds disable wordwrap completely [and if you edit
a fold line, you'll get what you get]. Still a huge commitment I
cannot undertake at this time though.

Regards,
Pete

new topic     » goto parent     » topic index » view message » categorize

5. Re: Word Wrap can work

On Wed, 13 Sep 2006 11:53:17 -0700, Antonio Alessi
<guest at RapidEuphoria.com> wrote:

[repost as no show after 7 hours]
>Hi folks!
>
>I was looking for some appreciable solutions for the "word wrap" problem, 
>but I met some more people with the same questions and no answer, it seems:
>
>Date: 2005 Jul 6 23:58
> From: Pete Lomax <petelomax at blueyonder.co.uk>
>If you fancy a bash at doing something better, knock yourself out. blink)
btw, Edita does not use RichEdit controls.
<snip>
>It may not be an "elegant" solution, but switches the text in a RichEdit 
>window according to the user command, i.e. in every kind of document 
>I'm loading lines wrap, do-not-wrap in runtime, and still it happens.

Just now in Google I found the EM_SETTARGETDEVICE message,
no matches in EUforum search, so fingers crossed (not tried). See:
http://www.vba-programmer.com/Snippets/Code_VB/Word_Wrap_Toggle_for_RichTextBox.html

An interesting link I found for the problems I face in Edita is: 
http://aeditor.rubyforge.org/softwrap.html Certainly clarifies a few
ideas, for instance I would display line 75 column 190 in the status
bar when the screen shows cursor on line-75-part-2-column-10, and
hence say downarrow would not be line+1 but col+80(ish) sometimes.
Plus wordwrap [show additional virtual lines] would need to be bolted
into the existing fold [hide selected real lines] mechanism, which I
knew already, but I now realise that a fold [clash] on a wordwrapped
line is no matter - folds disable wordwrap completely [and if you edit
a fold line, you'll get what you get]. Still a huge commitment I
cannot undertake at this time though.

Regards,
Pete

new topic     » goto parent     » topic index » view message » categorize

6. Re: Word Wrap can work

Pete Lomax wrote:
> 
> Still a huge commitment I cannot undertake at this time though.

Did you say it twice just to rub it in? :P

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

7. Re: Word Wrap can work

On Thu, 14 Sep 2006 17:49:50 -0700, cklester <guest at RapidEuphoria.com>
wrote:

>Did you say it twice just to rub it in? :P
Yes. 1st msg definitely got stuck somewhere, 8 hrs 50 mins after
posting and no show, 2nd dislodged it, apparently.

Cheers,
Pete
PS: [POLL] Who really wants full-blown wordwrap in Edita anyway?

new topic     » goto parent     » topic index » view message » categorize

8. Re: Word Wrap can work

Pete Lomax wrote:
> 
> PS: [POLL] Who really wants full-blown wordwrap in Edita anyway?

I do! (Plus FTP capability.) :)

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

9. Re: Word Wrap can work

> PS: [POLL] Who really wants full-blown wordwrap in Edita anyway?

I've never used word wrap in a code editor. Lines should be clearly
defined in any programming language IMHO. In a text editor/word
processor word wrap is a plus, so a paragraph looks like a paragraph
and not one continuous line of text.

~Greg

new topic     » goto parent     » topic index » view message » categorize

10. Re: Word Wrap can work

Greg Haberek wrote:
> 
> > PS: [POLL] Who really wants full-blown wordwrap in Edita anyway?
> 
> I've never used word wrap in a code editor. Lines should be clearly
> defined in any programming language IMHO.

I don't know what that means, but Crimson Editor allows for word wrap, and
it's very handy for long lines of Euphoria code. :)

-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

11. Re: Word Wrap can work

Greg Haberek wrote:
> 
> > PS: [POLL] Who really wants full-blown wordwrap in Edita anyway?
> 
> I've never used word wrap in a code editor. Lines should be clearly
> defined in any programming language IMHO. In a text editor/word
> processor word wrap is a plus, so a paragraph looks like a paragraph
> and not one continuous line of text.
> 
> ~Greg

I always use wordwrap in Kate (a very nice text editor that comes with KDE which
supports euphoria syntax highlighting smile). However, it automatically aligns the
wrapped text with the indentation and has very obvious wrapping symbols in the
line number area on the left. This makes it very nice to use.


~Ryan W. Johnson

Fluid Application Environment
http://www.fluidae.com/

[cool quote here, if i ever think of one...]

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu