1. Edit box routine
- Posted by Ben Logan <wbljr79 at HOTMAIL.COM>
Oct 23, 1999
-
Last edited Oct 24, 1999
Hi, all.
I recently wrote a routine (edit.e) that allows editing of a string. It
limits the cursor to a single line, allowing the usual edit functions within
the confines of specified columns. It works well for short one-line
strings; but I also need a routine which will confine the cursor to a
box...basically like an edit box in Windows. In edit.e, I re-printed the
string every time an edit occurred. That works fine for the relatively
short strings it will edit, but would cause a lot of flickering with an edit
box.
So, I was just wondering how to go about handling everything, particularly
word wrap.
Thanks,
Ben
----
Some people write a program and work the bugs out of it. I write bugs and
sometimes work a program out of 'em.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
2. Re: Edit box routine
- Posted by David Cuny <dcuny at LANSET.COM>
Oct 23, 1999
-
Last edited Oct 24, 1999
Ben Logan wrote:
> So, I was just wondering how to go about handling
> everything, particularly word wrap.
What platform are you talking about? DOS text, DOS graphics, Win32?
-- David Cuny
3. Re: Edit box routine
------=_NextPart_000_3604324a_75262226$44e0419d
Sorry, I should have specified :)
DOS text. The routine I'm talking about doesn't generate any boxes or
anything, it simply confines the editing to a certain area of the screen.
That way, I can (optionally) add graphics whether in text mode or graphics
mode.
I've attached my single-line edit routine and a program to that uses it to
give an idea of what I'm talking about. There is a list of supported
editing functions in edit.e. The edit box routine I'd like to write is just
a two dimensional version of the routine in edit.e.
Regards,
Ben
>From: David Cuny <dcuny at LANSET.COM>
>Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Edit box routine
>Date: Sat, 23 Oct 1999 20:31:43 -0700
>
>Ben Logan wrote:
>
> > So, I was just wondering how to go about handling
> > everything, particularly word wrap.
>
>What platform are you talking about? DOS text, DOS graphics, Win32?
>
>-- David Cuny
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
------=_NextPart_000_3604324a_75262226$44e0419d